You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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
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.
The text was updated successfully, but these errors were encountered: