FerricStore.Workflow (ferricstore_sdk v0.1.0)

Copy Markdown View Source

State-machine workflow convenience API.

This layer keeps workflows explicit: start a flow in a state, claim due work, transition to the next state, or finish with complete/fail/retry.

Summary

Functions

claim(workflow, state, opts \\ [])

complete(workflow, id, opts)

fail(workflow, id, opts)

new(client, type, opts \\ [])

retry(workflow, id, opts)

start(workflow, id, opts \\ [])

transition(workflow, id, from_state, to_state, opts)