Mobus.Stepwise.EngineBehaviour behaviour (mobus_stepwise v0.2.0)

Copy Markdown View Source

Behaviour contract for stepwise engines.

Engines must be deterministic under sync: true execution, enabling reliable unit tests and debugging.

Summary

Callbacks

checkpoint(runtime)

@callback checkpoint(Mobus.Stepwise.Types.runtime()) :: map()

get_state(runtime)

handle_event(runtime, event, payload)

init(spec, runtime_context)

restore(spec, map, runtime_context)