Skip to content

doActivity that accepts events from its state machine #701

Open

Description

@fgmacedo

Why

Long-running activities that wait for events from the machine are used in practice (XState fromCallback appears in about 3% of machine files; requested here in #521). Five PSSM cases need it (requires:do_activity_accept).

Scope

  • A way for an invoke handler to wait for and receive events dispatched to its machine, offered only while the handler is waiting.
  • Sync and async engines; thread safety of the hand-off.

Acceptance

The five requires:do_activity_accept cases leave the xfail map (those that also need deferral stay coded requires:defer).

Depends on #700. Refs #692

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

    enhancementumlUML state machine semantics, tracked in #692

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions