The Cancel Process Smart Service allows you to halt all process flow and cancel all tasks associated with a process.
The user running the smart service must have administrator rights to the selected process. Attempting to complete this task without the proper user rights generates an error message for the process administrator and pauses the process.
Category: Process Management
Assignment Options: Unattended/Attended
|Process Id||Number (Integer)||The Id of the process to cancel||Yes||No|
a!cancelProcess(processId, onSuccess, onError)
When this smart service runs, the specified process will be canceled. This matches the behavior as if the user had gone to the process details page and clicked the Cancel button there, which means that all process flow stops, all tasks for the process are removed from user's task lists, and the end events of the process do not execute. The user who executed the smart service will be listed in the process's history as having canceled the process.