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

Support conditional transitions #67

Open
PWAlessi opened this issue Apr 22, 2021 · 3 comments
Open

Support conditional transitions #67

PWAlessi opened this issue Apr 22, 2021 · 3 comments

Comments

@PWAlessi
Copy link

In the Javascript implementation, the EventDesc Dst (To in the JS implementation) can accept a function to implement conditional transitions (https://github.com/jakesgordon/javascript-state-machine/blob/master/docs/states-and-transitions.md#conditional-transitions).

FSM should allow conditional transitions with the target state determined via a function call at runtime.

@maxekman
Copy link
Member

Will evaluate this at some point, thanks for suggesting.

@jjauzion
Copy link

jjauzion commented Aug 2, 2022

Any news on this one ?

@maxekman
Copy link
Member

maxekman commented Aug 3, 2022

I’m currently not using FSM myself, but I’m open to review a PR with an implementation and take it from there.

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

No branches or pull requests

3 participants