Article: AN0002071Updated: 16.10.2018
This method returns status of the selected workflow. In order to find out workflow status via web service there has to be set Enable access via web services in the workflow definition. Furthermore, the user that calls the method has to have access rights on the operation Start workflow.
This method enables regular check of the workflow from an external application and responding to it.
Definition
OGWorkflowSeqResult GetWorkflowSeqState(int workflowSeqRunId)
In order to find out workflow status you have to know its workflowSeqRunId. This is returned by calling a method RunWorkflowSeq in the property WorkflowSeqRunId.
Workflow in whatever status can be queried about its status. The status is returned in the property WorkflowSeqRunState.
Status overview
Value |
Name |
Description |
0 |
Running |
Workflow is running at the moment. |
1 |
Finished |
Workflow was successfully finished. |
2 |
Canceled |
Workflow was finished. It was cancelled by a user. |
3 |
Failed |
Workflow was finished. It was terminated with an error. |
6 |
Paused |
Workflow is suspended at the moment. |