Canceling a workflow through ProcessWorkflow
To cancel a workflow, the action code,
ProcessWorkflow/DataArea/Process/ActionCriteria/ActionExpression/@actionCode, must be "Change".
This table shows the elements you can use in the noun instance, ProcessWorkflow/DataArea/Workflow:
| Element | Note |
|---|---|
| DocumentID/ID | Required. Unique identification of the workflow instance that must be canceled. |
| WorkflowDefinitionCode | Required. This is the name of the workflow definition as modeled in ION. |
| Status/Code | Must be "Cancelled". |
The resulting AcknowledgeWorkflow BOD contains the actionCode="Accepted" if cancelation was performed, or actionCode="Rejected" if the cancelation was not possible. The other elements included are similar to those described for AcknowledgeWorkflow BODs.