Cancel Process Smart Service


The Cancel Process Smart Service allows you to halt all process flow and cancel all tasks associated with a process.

Permissions Needed

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

  • Icon: Cancel Process Icon

  • Assignment Options: Unattended/Attended

Configuration Options

This section contains tab configuration details specific to this smart service. For more information about common configurations see the Process Node Properties page.

Data Tab

Node Inputs

Input Data Type Description Required Multiple
Process Id Number (Integer) The Id of the process to cancel Yes No

Node Outputs

Output Data Type Description
Already Closed Boolean true if the process was already closed prior to execution of this smart service, otherwise false


The Cancel Process smart service is available as an expression function that can be executed inside a saveInto on a Interface Component or as part of a Web API.


a!cancelProcess(processId, onSuccess, onError)


  • processId (Number(Integer)): The id of the process to cancel.
  • onSuccess (Any Type): A list of saves or an HTTP response to execute after the smart service executes successfully. Created with a!save() or a!httpResponse(). The following function variable is available when configuring this input:
    • fv!alreadyClosed (Boolean): Indicates whether or not the process was already canceled prior to execution of this smart service.
  • onError (Any Type): A list of saves or an HTTP response to execute when the smart service does not execute successfully. Created with a!save() or a!httpResponse().

Run-Time Behavior

When this smart service runs, the specified process will be canceled. This matches the behavior as if the user clicked the Cancel button from the Monitoring view, 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. Additionally, for processes that have already been canceled, an error will not be thrown.

Open in Github Built: Fri, Nov 12, 2021 (02:39:09 PM)

On This Page