Hello everybody , Do you know any open source appl...
# announcements
s
Hello everybody , Do you know any open source application which implement this concept
finite state machine
? I found some libraries implemented this concept but need more information to implementing this .
<https://github.com/Tinder/StateMachine>
<https://github.com/open-jumpco/kfsm>
j
@corneil developed that second one and might be able to provide you with some advice.
s
yup, I want to implement this in my application. Example: Bookmark feature :)))
j
He gave a presentation on it recently but I don’t believe it’s been recorded or made public, otherwise I’d link to that. 🤔
s
Thanks @Jacques Smuts. Its really news to me… Need more example to understand this concept
c
I hope I can help. What kind of application are you building? Do you have a state model in mind?
@corneil: I’m looking for a open source or example to using the FSM….
c
My own use cases aren't in projects where I can share the code. I'll be glad to help you build a model.
👏 1
One of the key differences in implementations is the separation of state, events and actions. Some models combine them. KFSM supports a model that allows for defining which actions are taken when an event is received when in a specific state.
KFSM also provides for default actions and for entry and exit actions.
The statemachine operates by applying actions to a Context class.
s
@corneil: Thanks. I will build some example base on your library, Hope it correctly your idea and FSM :))) …
c
If you send me a diagram I can help you with that
I plan to release 1.0 soon.
c
I should probably mention github.com/square/workflow, which is effectively a finite state machine building library. It's mostly used for UI workflows at Square, but there are folks who use it for different purposes, as the core is quite general.
s
coolllllll , its importance for future