Skip to main content

WorkflowExecution

A workflow execution.

type WorkflowExecution {
id: ID!
workflow: Workflow
root: WorkflowExecutionNode!
lifeCycleStatus: WorkflowLifeCycleStatus!
executionStatus: WorkflowExecutionStatus!
variant: WorkflowVariant
startedBy: User
stoppedBy: User
message: String
}

Fields

WorkflowExecution.id ● ID! non-null scalar

This execution's ID.

WorkflowExecution.workflow ● Workflow object

The associated workflow.

WorkflowExecution.root ● WorkflowExecutionNode! non-null object

The root node of this execution.

WorkflowExecution.lifeCycleStatus ● WorkflowLifeCycleStatus! non-null enum

Here are the possible state transitions:

RUNNINGWAITINGFINISHED
RUNNING-YY
WAITINGY-Y
FINISHEDNN-

WorkflowExecution.executionStatus ● WorkflowExecutionStatus! non-null enum

Here are the possible state transitions (X = possible, N = not possible):

INITIALIZEDEXECUTING_STEPCANCEL_REQUESTEDWAITING_ON_PURPOSEWAITING_ON_ERRORFINISHED_SUCCESSFINISHED_FAILEDFINISHED_CANCELLED
INITIALIZED-YNNNNNN
EXECUTING_STEPN-YYYYYN
CANCEL_REQUESTEDNN-NNNYY
WAITING_ON_PURPOSENYY-NNYY
WAITING_ON_ERRORNYYN-NYY
FINISHED_SUCCESSNNNNN-NN
FINISHED_FAILEDNNNNNN-N
FINISHED_CANCELLEDNNNNNNN-

WorkflowExecution.variant ● WorkflowVariant object

The associated variant if this execution was started with a variant.

WorkflowExecution.startedBy ● User object

The user that started this execution if there was any.

WorkflowExecution.stoppedBy ● User object

The user that stopped this execution if there was any.

WorkflowExecution.message ● String scalar

The message output of the workflow execution.

Returned By

workflowExecution query ● workflowExecutionsByWorkflowId query ● workflowExecutionsByWorkflowName query ● workflowExecutionsByWorkflowVariant query

Member Of

ActiveStep object ● ExecuteWorkflowFromStartDialogExecutionPayload object ● ExecuteWorkflowPayload object ● Workflow object ● WorkflowExecutionPage object ● WorkflowVariant object