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

Copy Markdown View Source

Merges inbound payload into runtime.context for stepwise workflows.

Stepwise workflows are wizard-like; user input is typically collected over multiple events. This component ensures that payload updates persist in the in-band runtime context, enabling resume and later step actions.

Summary

Functions

Merges the event payload into runtime.context.

Functions

call(event, opts)

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

Merges the event payload into runtime.context.

This is an ALF pipeline stage. It shallow-merges event.payload into runtime.context, accumulating user input across successive events. Skipped when the event has an error status.

Parameters

  • event — pipeline event map with :runtime and :payload keys
  • opts — ALF stage options (unused)

Returns

  • Updated event map with merged context in event.runtime.context.