WORKFLOWS / CONNECTED DATA AND ACTIONS
Use record triggers, conditions, and ordered steps to turn a business rule into application behavior. Start with a rule you can test and explain.
A SMALL RULE WITH A VISIBLE RESULT
A before_create workflow can update the record context before it is stored. This example keeps the existing orders status values.
01
The before_create trigger receives the incoming order record.
02
The workflow checks record.status with the supported is_empty condition. Orders with an explicit status do not take this path.
03
A set_record step writes draft into the current record context before persistence.
INCOMING RECORD
{
"orderNumber": "A-1042",
"total": 184.5
}RECORD CONTEXT AFTER THE RULE
{
"orderNumber": "A-1042",
"total": 184.5,
"status": "draft"
}Worked configuration example. Define the orders fields and allowed status values in your own project, then test the workflow with an authorized request.
THE RULE AS CONFIGURATION
The trigger, condition, and action are explicit in the definition. Use the workflow editor to configure and inspect the behavior in your project.
Use this supported definition as a starting point, then inspect its execution with a test order in your project.
{
"name": "default-draft-status",
"trigger": "before_create",
"mode": "transactional",
"isActive": true,
"stopOnError": true,
"conditions": [
{
"field": "record.status",
"operator": "is_empty"
}
],
"steps": [
{
"name": "set-draft",
"type": "set_record",
"order": 10,
"isActive": true,
"config": {
"values": {
"status": "draft"
}
}
}
]
}MATCH THE MODE TO THE WORK
Data mutations and external side effects have different failure and retry needs.
01
Use supported transactional steps for the data changes that must follow the request boundary.
02
Use outbox execution for supported follow-up operations that need durable delivery and configured retry behavior.
03
Keep the immediate data work and the deferred side effects in their intended execution modes. Verify the resulting execution and error behavior with your own records.
YOUR NEXT STEP
Begin with a small record rule, inspect the result, and add more behavior only when the first path is understood.
A connected foundation for the things you want to build.