workflowInstance
The workflowInstance is a GraphQL API schema that retrieves detailed information about a specific instance of a workflow.
Argument | Description |
instanceId | The unique identifier for the workflow instance that is being accessed. |
tenant | The tenant string specifies the client's information for identification purposes. |
attemptId | The unique identifier for a specific attempt to execute the workflow instance. |
The workflowInstance returns a data object with the following fields:
Field | Description |
attemptId | Unique identifier for the specific attempt to execute the workflow instance. |
createdAt | Timestamp of when the workflow instance was created. |
createdBy | User who created the workflow instance. |
dispatchId | Unique identifier for the dispatch job related to the workflow instance. |
id | Unique identifier for the workflow instance. |
inputs | Defines the input parameters that were used for this instance of the workflow. |
jobId | Unique identifier for the job related to the workflow instance. |
lastState | The last recorded state of the workflow instance. |
latestSequenceId | Identifier for the most recent sequence within the workflow instance. |
status | The current status of the workflow instance. |
tenantId | Identifier for the tenant that the workflow instance belongs to. |
updatedAt | Timestamp of when the workflow instance was last updated. |
updatedBy | User who last updated the workflow instance. |
workflow | Detailed workflow object that the instance was created from. |
In addition to retrieving the WorkflowInstance data object, developers will also receive the workflowDetails. The attributes such as createdAt, createdBy, id, inputs, status, tenantId, updatedAt, and updatedBy remain consistent for the workflowDetails. Remaining data objects are defined below:
Field | Description |
canMerge | A boolean indicating if the workflow can be merged. |
conditions | Specifies the conditions for the workflow's execution. |
description | Descriptive text providing more details about the workflow. |
flows | Contains the sequence of steps and paths in the workflow. |
jsonSchema | The JSON schema represents the structure of the workflow. |
meta | Contains additional metadata associated with the workflow. |
name | The name of the workflow. |