Mobus.Stepwise.Components.StepwiseEntryAction (mobus_stepwise v0.2.0)

Copy Markdown View Source

Executes entry-triggered actions for stepwise workflows.

Runs immediately after a state transition when the new state defines an action with an :enter trigger (or equivalent definition).

Summary

Functions

Executes entry-triggered actions after a state transition.

Functions

call(event, opts)

@spec call(map(), map()) :: map()

Executes entry-triggered actions after a state transition.

This is an ALF pipeline stage. When state_changed? is true, delegates to StepwiseAction.run_entry_action/1 to execute any action on the new state that has an :enter trigger. Skipped on error status, when skip_transition is set, or when the state did not change.

Parameters

  • event — pipeline event map with :state_changed?, :status, :skip_transition
  • opts — ALF stage options (unused)

Returns

  • Updated event map, potentially with modified runtime from entry action execution.