WorkflowTestResult
Each step of a Workflow test and the value after the last event (1.59.0): what the Workflow would do with the scripted completions. Ids, codes, the evaluations and the scripted values only.
An object with 9 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
ended_reason | EndedReason or null | yes | How the Call would end: workflow_complete once a hangup or end node was entered, the reason of a scripted session.ended, or null while it runs. |
final | MachineState | yes | |
object | "workflow_test" | yes | |
outputs | object or null | no | The Workflow's declared outputs (1.60.0): the outputs expressions of the hangup or end node the run entered, evaluated over its value; null while it runs or when that node declares none. Content of the scripted values. Absent from an api before 1.60.0. |
path | array of MachineId | yes | Every node the run entered or evaluated, in order. |
steps | array of WorkflowTestStep | yes | The start, then one step per scripted event. |
version | integer or null | yes | The version run; null for the draft. |
waiting_on | MachineId or null | yes | The node whose completion the run waits for after the last event; null when it ended. |
workflow_id | WorkflowId | yes |
Used by
The operations whose parameters, request body or responses name this shape directly.