workflowInstanceList
The workflowInstanceList is a GraphQL API schema that retrieves and paginates through a list of workflow instances.
Argument | Description |
tenant | The tenant string specifies the client's information for identification purposes. |
filter | This is a string used to filter out data that meets certain criteria. |
page | This integer specifies the current page in the paginated list. |
size | This integer determines the number of items per page. |
sort | This string is used to specify the sorting order of the items. |
The workflowInstanceList returns a data object that includes 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. |
- pagination: A nested object that contains details for navigating the paginated list.
Field | Description |
currPage | The current page number in the paginated list. |
hasNextPage | A boolean indicating whether there is a next page. |
nextPage | The number of the next page, if it exists. |
pageSize | The number of items per page. |
prevPage | The number of the previous page, if it exists. |
totalCount | The total count of items in the list. |
In addition to retrieving the WorkflowInstanceList 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. The 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. |