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

Check if an event is applicable to a Stater in current state #13

Open
gjongenelen opened this issue Dec 18, 2019 · 0 comments
Open

Check if an event is applicable to a Stater in current state #13

gjongenelen opened this issue Dec 18, 2019 · 0 comments

Comments

@gjongenelen
Copy link

gjongenelen commented Dec 18, 2019

We need to check if a Stater has a compatible transition for an event before actually calling Trigger(). This because we want to distinguish the 'no suitable transition-error' from actual errors occurring in the transition-callbacks (.before(), .after(), etc). The 'no suitable transition-errors' are actually acceptable in our application (and even expected).
We could not find a suitable solution for this in the project, so currently I created a fork and implemented it there (gjongenelen@c850850). It works, but I would like to know your opinion about this before I create a PR.

@gjongenelen gjongenelen changed the title Check if a event is applicable to a Stater in current event Check if an event is applicable to a Stater in current event Dec 18, 2019
@gjongenelen gjongenelen changed the title Check if an event is applicable to a Stater in current event Check if an event is applicable to a Stater in current state Dec 18, 2019
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

1 participant