Skip to content

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

Open

Description

@gjongenelen

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.

Activity

  1. 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[/+] on Dec 18, 2019
  2. 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[/+] on Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions