Skip Navigation
Expand
Troubleshooting Object Event Handler does not define class errors
Answer ID 12619   |   Last Review Date 05/09/2023

What causes Object Event Handler does not define class errors?

Environment:

Service Process Model (SPM), Process Designer, Custom Processes (CPM)
Oracle B2C Service

Resolution:

When Custom Process (CPM) customizations run, and the condition of the code is not sufficient to parse the PHP code contained, this will produce errors such as the following:
 
SPM Object Event Handler incident_update failed: Object Event Handler incident_update\incident_update does not define class incident_update!
 
It is not possible to promote CPM code using the Process Designer until such errors are resolved. However, these customizations often reference separate customized files that are changeable without making any changes to the code in the Process Designer. Thus, changes made to the referenced code can cause such an error. Another possible cause is that the CPM is configured as asynchronous and the code referenced does not exist (or is otherwise not valid) on all interfaces. For details on this see