The On Close action is an activity callback action that allows you to implement business rules to validate whether an instance of a process activity in the process flow can end its execution. An On Close action can have local variables.

If you want to stop the execution from being ended, raise an exception using the Raise Exception element. This will prevent the process activity from ending its execution (close) and will keep it in its current state. Learn more about how to Explicitly Raise an Exception.

Input parameters


Output parameters



As an example, think of an application to request IT resources from an help desk. The On Close action is used to validate if the allocation due date has been updated: if the due date was updated, the allocation status is changed and the activity instance successfully ends. Otherwise an exception is raised and the activity instance remains open.

In these Scenarios you should use the Abort Activity Change Exception. Once this exception is raised, it is logged in Service Center under the general log. All other exceptions are logged under the error tab.

See Also

Process Activities Callback Actions | Abort Activity Change Exception | Process Activities Life Cycle | Process Callback Actions | Explicitly Raise an Exception | Designing Actions | Designing Processes | Process Flow Toolbox