Skip to content

Multiple entry/exit actions #60

@walkie

Description

@walkie

Frame has a single enter and exit event for each state, which can be handled to perform work when the state is entered or exited, respectively. However, state charts allow multiple entry/exit actions to be defined.

If we solve #59, then this functionality could be recovered with "internal events" by writing something like:

$Foo
  |>|
    action1 ()
    action2 ()

Where action1 and action2 are two different entry actions (represented in Frame as internal events) for state Foo.

However, there is still the challenge of how to show these entry actions in visualizations. A visualization of the above state Foo should include a label like entry/ action1, action2 (for example, see the description of action notation here).

As a special case, we could list all internal events called from enter/exit event handler as entry/exit actions in visualizations.

Another possible (but more complex) solution would be to provide direct support for registering multiple enter/exit events to be triggered for a given state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions