https://kotlinlang.org logo
#announcements
Title
# announcements
s

Sam

09/12/2019, 7:33 AM
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

Jacques Smuts

09/12/2019, 7:36 AM
@corneil developed that second one and might be able to provide you with some advice.
s

Sam

09/12/2019, 7:37 AM
yup, I want to implement this in my application. Example: Bookmark feature :)))
j

Jacques Smuts

09/12/2019, 7:37 AM
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

Sam

09/12/2019, 7:47 AM
Thanks @Jacques Smuts. Its really news to me… Need more example to understand this concept
c

corneil

09/12/2019, 8:01 AM
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

corneil

09/12/2019, 8:08 AM
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

Sam

09/12/2019, 9:25 AM
@corneil: Thanks. I will build some example base on your library, Hope it correctly your idea and FSM :))) …
c

corneil

09/12/2019, 9:39 AM
If you send me a diagram I can help you with that
I plan to release 1.0 soon.
c

christiangruber

09/21/2019, 9:16 AM
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

Sam

09/21/2019, 9:26 AM
coolllllll , its importance for future
4 Views