Workflow APIs
Preparing for Development
Before developing workflow APIs, you need to read the Developer's Guide carefully.
APIs List
Workflow APIs mainly include:
API Name | Description |
This API is used to access approval comments of one workflow record. | |
This API is used to query workflow instances. | |
This API is used to end the current workflow instance. | |
This API is used to query the workflow tasks of the current user. | |
This API is used to submit workflow tasks. | |
This API is used to return workflow tasks. | |
This API is used to transfer workflow tasks. |
Workflow Error Code
Error Code | Description |
4008 | The workflow was closed. |
4009 | Do not have permission to approve. |
5003 | The workflow node doesn't exist. |
5004 | No comment for approval. |
5006 | Data can't be transferred to CC node. |
5008 | Can't find the approver. |
5009 | The approver of the returned node is invalid. |
5011 | The target node is invalid. |
5012 | No signature for approval. |
5024 | The current user doesn't have permission to submit data at this node. |
5025 | The current node has been completed. |
5026 | Failed to batch approve workflows at the task node. |
5044 | The child workflow is wrongly configured. For example, no initiator for the child workflow. |
5045 | The number of child workflow exceeds 200. |
5049 | The Transfer feature hasn't been enabled at this node. |
5053 | The initial department is invalid. Can't flow to the node with multi-level approval. |
5056 | Can't perform workflow operations on non-workflow forms. |
50004 | The task doesn't exist. |
50013 | The number of approvers before and after adjustment must remain the same. |
50015 | Approver not changed. |
50016 | The instance_id is invalid. |
50024 | Approver can't be empty after adjustment. |
50025 | The number of approvals in a single batch exceeds the limit. |
50040 | This node can't be returned. |
50041 | Can't return to the current node. |
50046 | There are too many pending tasks (sub-workflows), and activation is not allowed. |
50049 | Can't return to the Start Node without an initiator. |
50052 | Can't add an approver for this node. |
50053 | No approver to add. |
50054 | Can't add nested approval. For example, after approver A has added approver B, approver B can't add approver C. |
50057 | The Add Approver feature hasn't been enabled. |
50059 | The member is added as an approver. |
50060 | The approver is invalid. |
50061 | Can't add more than one approver. |
50062 | The added approver is reviewing the task. |
50063 | Unfinished tasks with added approvers cannot be submitted in batches. |
50064 | The asynchronous sub-workflow forms a loop. Adjust the configuration. |
50070 | Can't return to the plugin node. |
50071 | Plugin nodes are unavailable in the current version. |
50073 | Can't return to the in-progress node. |