Workflow runtime status
| Status | Description |
|---|---|
NOT_STARTED | Workflow defined but not yet begun |
IN_PROGRESS | Actively executing steps |
COMPLETED | All steps finished successfully |
FAILED | One or more steps failed |
CANCELLED | Execution was explicitly cancelled |
Step runtime status
| Status | Description |
|---|---|
NOT_STARTED | Step has not started |
IN_PROGRESS | Step is currently executing |
COMPLETED | Step finished successfully |
DISABLED | Step is disabled |
FAILED | Step execution failed |
TRuntimeWorkflowExecution
Represents a running workflow instance:| Property | Description |
|---|---|
id | Unique execution identifier |
correlationId | Correlation ID for tracing |
parentWorkflowExecutionId | Parent workflow if spawned as sub-workflow |
rootWorkflowExecutionId | Root workflow in nested hierarchies |
workflowTemplateVersionId | Template version being executed |
runtimeStatus | Current overall status |
startedAt | Execution start timestamp |
completedAt | Completion timestamp (if completed) |
failedAt | Failure timestamp (if failed) |
lastActivityAt | Last step update timestamp |
context | Global workflow context data |
steps | Map of step execution states by ID |
Context usage
Thecontext property serves two purposes:
- Global context - Accessible via
__context__in expressions - Metadata storage - Additional execution information (e.g.,
directorIdfor DSC workflows)
TRuntimeWorkflowStepExecution
Represents a step’s execution state:| Property | Description |
|---|---|
id | Unique step execution ID |
type | Step type |
stepId | Reference to step definition ID |
status | Current step status |
attempt | Attempt number (for retries) |
startedAt | Step start timestamp |
completedAt | Completion timestamp |
failedAt | Failure timestamp |
dueAt | Due date for the step |
outputData | Step output (follows outputSchema) |
childWorkflowExecutions | Child workflows triggered by this step |
Runtime flow
Accessing runtime data
In expressions, access step outputs via the__steps__ variable:
verified field from the verify step’s output.
Child workflow executions
For sub-workflow steps,childWorkflowExecutions contains references to spawned workflows:
Status transitions
Workflow status flow
Step status flow
Next steps
Data models
Database schema reference
Validation rules
Definition validation rules