Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.
This repository was 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

@aivarannamaa

Description

@aivarannamaa

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)

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