StateMachine icon indicating copy to clipboard operation
StateMachine copied to clipboard

A Kotlin and Swift DSL for finite state machine

Results 30 StateMachine issues
Sort by recently updated
recently updated
newest added

I have a use case where the state machine is governing a long running process that spans over multiple device restarts (android). Is there a way I can start the...

Thank you for your amazing library I have a problem with onEnter at initialState. It's my code : ```kotlin val machine = StateMachine.create { initialState(State.INIT) state { onEnter { println("onEnter...

Consider the following state machine: ```kotlin StateMachine.create { initialState(STATE_A) state(STATE_A) { on(EVENT_1) { transitionTo(STATE_B) } onExit(firstDefinitionOnExitListener) } state(STATE_A) { on(EVENT_2) { transitionTo(STATE_B) } onExit(secondDefinitionOnExitListener) } state(STATE_B) { onEnter(firstDefinitionOnEnterListener) } state(STATE_B)...

I can't see any ways to store and restore states of state machine. Especially I'm interested in restoring state with specific side effects. How do you usually do it?

Hi. First of all, thank you for all of your hard work and effort in putting this library together. A few things: 1) Is this project alive and actively maintained?...

Some of the state will need a timeout to go to idle or something. How do you do that? Can somewhere give an example?

There should be a CircleCI configuration file pushed to the repo. Because there isn't one, the config isn't copied to fork repos and any cross-repo PR will fail unless the...

In my usage of this library, it is very inconvenient to set up unit tests where I want the state machine to be in a certain state. What I've been...

Hi, amazing library. I'm trying to implement it in my own project. These are my states ``` sealed class State { object Loading : State() class Success(val response: SomeDataClass) :...

First of all, thanks for this awesome library. And I have a little question about underlying theory. Is onEnter callback applicable for side effects (in terms of finite state machine...