WorkflowInstance represents a workflow instance.
| JSON representation | 
|---|
|  { 
 "caseId" 
 : 
 string 
 , 
 "workflowDefinitionIdentifier" 
 : 
 string 
 , 
 "indicatorIdentifier" 
 : 
 string 
 , 
 "triggerIdentifier" 
 : 
 string 
 , 
 "workflowName" 
 : 
 string 
 , 
 "status" 
 : 
 enum (  | 
| Fields | |
|---|---|
| caseId |   Required. CaseId is the identifier of the case. | 
| workflowDefinitionIdentifier |   Required. WorkflowDefinitionIdentifier is the identifier of the workflow definition. | 
| indicatorIdentifier |   Optional. IndicatorIdentifier is the identifier of the indicator. | 
| triggerIdentifier |   Required. TriggerIdentifier is the identifier of the trigger. | 
| workflowName |   Required. WorkflowName is the name of the workflow. | 
| status |   Required. Status is the status of the workflow instance. | 
| priority |   Required. Priority is the priority of the workflow instance. | 
| nestedInputParameters |   Optional. NestedInputParameters is a map containing the nested input parameters. | 
| parentWorkflowStepInstanceName |   Optional. ParentWorkflowStepInstanceName is the name of the parent workflow step instance. | 
| assignedUsers[] |   Optional. AssignedUsers is a list of assigned users. | 
| pendingStepTimeUnixTimeInMs |   Optional. PendingStepTimeUnixTimeInMs is the time when the step became pending. | 
| runCount |   Optional. RunCount is the number of times the workflow has been run. | 
| parentInstanceId |   Optional. ParentInstanceId is the identifier of the parent instance. | 
| id |   Required. Id is the unique identifier of the workflow instance. | 
| tenantId |   Required. TenantId is the identifier of the tenant. | 
| blockStepId |   Optional. BlockStepId is the identifier of the block step. | 
| forMigrationValue0 |   Optional. ForMigrationValue0 is a migration value. | 
| forMigrationValue1 |   Optional. ForMigrationValue1 is a migration value. | 
| terminatedBySystem |   Optional. TerminatedBySystem indicates if the workflow was terminated by the system. Deprecated - use Status==Terminated instead | 
| isDebug |   Optional. IsDebug indicates if the workflow ran in debug mode. | 
| isSimulated |   Optional. IsSimulated indicates if the instance was manually created by running the simulator. | 
| isNested |   Optional. IsNested indicates if the instance is a nested instance. | 
| pendingStepIdentifier |   Optional. PendingStepIdentifier is the identifier of the pending step. | 
| pendingStepExpirationTimeUnixTimeInMs |   Optional. PendingStepExpirationTimeUnixTimeInMs is the time that after reaching it the pending step will get expired. | 
| pendingStepLoopIteration |   Optional. PendingStepLoopIteration is the loop iteration of the pending step. | 
| originalWorkflowDefinitionIdentifier |   Optional. OriginalWorkflowDefinitionIdentifier is the identifier of the original workflow definition. | 
WorkflowInstanceStatusValue
WorkflowInstanceStatusValue is the status of the workflow instance.
| Enums | |
|---|---|
| WORKFLOW_INSTANCE_STATUS_VALUE_UNSPECIFIED | The status of the workflow instance is unspecified. | 
| IN_PROGRESS | The workflow instance is in progress. | 
| COMPLETED | The workflow instance is completed. | 
| FAILED | The workflow instance is failed. | 
| TERMINATED | The workflow instance is terminated. | 
| PENDING_IN_QUEUE | The workflow instance is pending in the queue. | 
| PENDING_FOR_USER | The workflow instance is pending for the user. | 

