# `Mobus.Stepwise.Components.StepwiseContextMerge`
[🔗](https://github.com/fosferon/mobus_stepwise/blob/main/lib/mobus/stepwise/components/stepwise_context_merge.ex#L1)

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.

# `call`

```elixir
@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`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
