Skip Navigation
Expand
Stopping an Object Event Handler from running
Answer ID 7125   |   Last Review Date 08/02/2022

How do I stop an Object Event Handler from running?

Environment:

Process Designer, Custom Process Model (CPM) / Service Process Model (SPM)
All product versions

Resolution:

In order to stop a CPM customization from being triggered it must be unmapped. Any modification to mappings made in the Process Designer must be saved and deployed.

Additionally, CPM customizations configured to run asynchronously will continue to run if already triggered and added to the queue but not yet processed. This can be the case even if there are no longer any existing mappings adding new records to the queue.

To stop the processing of these asynchronous CPM records that have already been added to the queue, the CPM itself (vs. the mapping) must be modified so that no code is run in the CPM apply function. Once deployed, the queued CPM processes will run but do nothing, until they are cleared from the queue.

For further information see

Answer ID 6604:  There are two types of execution for Object Event Handlers

Answer ID 8392: SPM/Process Designer Best Practices