Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Generate boolean methods which tell whether an event makes sense in current state #3164

Open
aivarannamaa opened this issue Jul 7, 2020 · 0 comments

Comments

@aivarannamaa
Copy link

Currently, an event is simply dropped, when raised in a "wrong" state (ie. in a state where it doesn't trigger any outgoing transitions or state reactions).

Some applications would benefit from generated methods which allow querying the state machine whether some event makes sense or not in current state (eg. for disabling some UI buttons or just raising an exception to signal a programmer error)

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

No branches or pull requests

1 participant