Hourglass.Workflow.Behaviour behaviour (hourglass v0.1.0)

Copy Markdown View Source

Callback required by all workflow modules.

The return value is whatever the workflow chooses to expose as its result — Hourglass.Workflow.Evaluator JSON-encodes it into the WorkflowExecutionCompleted event without inspecting the shape. Workflows in this codebase typically return a result map; the callback is intentionally term() so dialyzer doesn't reject those.

Summary

Callbacks

run(input)

@callback run(input :: term()) :: term()