Workflow templates
A workflow template is a reusable definition of a business process. Templates contain:- Name and description - Human-readable identifiers
- Steps - Individual units of work
- Transitions - Connections between steps
- Step groups - Logical groupings for UI organization
Workflow versions
Each template can have multiple versions with different statuses:| Status | Description |
|---|---|
| DRAFT | In development, can be edited |
| PUBLISHED | Ready to be activated, cannot be edited |
| DEPRECATED | No longer recommended for use |
Workflow executions
An execution is a running instance of a workflow template version. Each execution tracks:- Runtime status - Current state (NOT_STARTED, IN_PROGRESS, COMPLETED, FAILED, CANCELLED)
- Step states - Status of each step in the execution
- Context - Data passed into and generated by the workflow
- Timestamps - When the execution started, completed, or failed
Workflow links
Links determine when workflows are triggered automatically:- SERVICE_CATALOG - Triggered when a specific service request type is created
- PRODUCT - Triggered when a specific product is purchased
Expressions and evaluation
Workflow Builder uses JSONata expressions for dynamic values and conditions.Evaluation scope
All expressions are evaluated against an environment with these properties:| Variable | Description | Example |
|---|---|---|
__context__ | Access the global workflow context | __context__.customerId |
__steps__ | Access any step’s output | __steps__.stepId.name |
__datasources__ | Access fetched datasource outputs | __datasources__.dsId.data |
__each__ | Access current item in iterations | __each__.id |
Example expression
Value providers
Value providers define how to produce a value in mappings and configurations:Constant value
A hardcoded value:Field reference
Access a value from context, step output, datasource, or iteration:Expression
Compute a value using JSONata:Mappings
Mappings define how to transform and assign values:| Property | Description |
|---|---|
targetPath | Dot-notation path for the destination |
value | Value provider defining the source |
mode | set (replace) or append (for arrays) |
Datasource calls
Fetch external data during workflow execution:| Property | Description |
|---|---|
dataSourceID | Reference to the datasource definition |
params | Parameters to pass to the datasource |
select | Transform the response (optional) |
scope | per-step or per-item for batch workflows |
Next steps
Step types
Learn about all available step types
JSON schemas
Understand data validation with schemas