Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
Processing order of rules and custom processes
Answer ID 6606   |   Last Review Date 10/22/2024

What is the processing order of rules and synchronous custom processes?

Environment:

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

Resolution:

The processing order is:

a) Rules

b) Synchronously executed Custom Process Model (CPM) - Object Event Handlers

Business rules are run on an object before it is initially inserted to the database on an object create, or before the initial object update on an object update transaction. All business rules are run before any synchronous CPMs, even in the case of rules that trigger synchronous CPMs. The record is committed to the database after rules are complete and before any CPMs are run. CPM customizations can use API commit statements, and there is a database commit of all records modified after CPM customizations runs are complete.

Workspace rules are run on the client side within the object workspace, prior to the record being saved in the editor. On the other hand, the processing of business rules and CPMs is run on the server, after a record create or update message is sent from the client to the server. For this reason, it is generally correct to consider that workspace rules are run before business rules. For further details see

Answer ID 6348: Using Workspace Rules

Answer ID 6388: Workspace rule will not fire