First workflow
This example sends orders above a chosen total to a procurement manager before fulfillment continues. Build it in a staging store first, using a product and customer created for testing.
Create the definition
- Open Content > Workflow > Workflow Definitions.
- Click New Workflow.
- Enter a clear name and a stable code. The code cannot be changed after the definition is created.
- Add the Sales Order Place After trigger.
- Add a condition named
Order exceeds approval threshold. - Set the rule to compare the event entity's
grand_totalwith the threshold that matches the test order. - Add an approval task named
Procurement manager reviewand keep only the decisions your process supports. - Add a Comment action that records the approval in the workflow audit trail, then add an End node.
Connect the trigger's NEXT port to the condition. Connect the condition's matching branch to the approval task, the task's decision port to the follow-up action, and that action to End. A condition branch without a connection stops at the condition; use an explicit End node when the canvas should name that outcome.

Validate and simulate
The builder shows Valid only after the graph, node settings and connections pass validation. Click Simulate and provide an event payload whose order total exceeds the threshold. Simulation should reach the approval task and stop there. It does not create a real task or send side effects.

Publish and run the real path
- Save the definition.
- Use More Actions > Publish and confirm the prompt.
- Place a controlled Magento order above the threshold.
- Wait for the event-trigger and run-start consumers to process their queues.
- Open Content > Workflow > Workflow Tasks.
- Review the order context, add a useful decision comment and approve the task.
- Confirm that the task closes and the workflow's latest run becomes Completed after the resumed run is processed.
Publishing makes the version executable. Saving a draft alone does not.