Workflow::cancelWorkflow Method [AX 2012]
Cancels a workflow instance.
Syntax
server public static void cancelWorkflow(WorkflowCorrelationId _workflowCorrelationId, [WorkflowComment _workflowComment])
Run On
Server
Parameters
- _workflowCorrelationId
Type: WorkflowCorrelationId Extended Data Type
The correlation ID of the workflow instance to cancel.
- _workflowComment
Type: WorkflowComment Extended Data Type
The comment associated with canceling the workflow instance; optional.
Exceptions
Exception | Condition |
---|---|
Error | The specified workflow instance could not be found. -or- The root workflow instance could not be found. |