Open amithgeorge opened 1 year ago
No it doesn't support history state at this moment.
History state by its nature is stateful, but the core of clj-statecharts is pure functional so to implement this, we need to add a new key in the fsm to manage the stateful part, much like the :scheduler
key for handling the delayed transitions.
Due to my own experience i don't quite understand the typical use case of history states. Can you educate me on this?
The statecharts website has an article on what are history states. From the article,
Does clj-statecharts support history states? I had a need for this. My states were simple enough that I got by with adding a guarded "always" transition to the initial state that moved it to its sibling state.