← Workflow lessons

1. Define the flow in an OBC

Start with the outcome the process must deliver. The Open Business Contract (OBC) declares a starting step, the work at each step and the conditions that lead to another step or an outcome. It also declares how the result of one operation becomes the input of another.

Step
A unit of work within the flow.
Transition
The path to the next step, with a condition when the route depends on a result.
Operation
Callable work declared in an Open Function Registry (OFR), with its inputs, outputs and effects.
Data mapping
How the workflow supplies inputs and uses outputs, with shared types declared in an OTC.

The state machine runs the OBC. It binds inputs, calls each operation when the applicable policies permit it, and evaluates the transitions using the current state. A database function can focus on saving a record. The OBC tells the engine when to call it and what to do with its result.

Trace a step that has two possible outcomes

Suppose a save operation returns a typed outcome such as saved or failed. Declare a transition to notification for saved and a separate transition for failed. The machine selects the route from that result. A notification function can remain reusable in other workflows.

Explore a workflow in Blueprints →