Registers a transition rule between two workflow states.
Origin state.
Event triggering the change.
Destination state.
Optionalguard: GuardFunction<TContext>Optional guard function returning a boolean.
Optionalaction: ActionFunction<TContext>Optional action callback.
The state machine instance for chaining.
Performs a transition to a new state if the event matches and the guard function passes.
The triggering event.
A promise resolving to true if the transition succeeded, false otherwise.
Merges new properties into the state machine's execution context.
Partial context to merge.
State machine managing linear forward-only workflows. Handled via explicit events and transitions.