Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to start the machine in a specific state? #20

Open
SemionPar opened this issue Aug 2, 2019 · 3 comments
Open

Is it possible to start the machine in a specific state? #20

SemionPar opened this issue Aug 2, 2019 · 3 comments

Comments

@SemionPar
Copy link

SemionPar commented Aug 2, 2019

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 machine in a specific state (different from default initial state)?

Related to #7

@ovestoerholt
Copy link

+1: Would have been really useful to have this capability.

@RowanG1
Copy link

RowanG1 commented Feb 7, 2020

Instead of using gradle, just download the code, and introduce the following method in StateMachine class:
fun setState(state: STATE) {
stateRef.set(state)
}

@dtbullock
Copy link

Instead of using gradle, just download the code, and introduce [a state setter]

Maybe altering the constructor would be more appropriate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants