You are here:
OM Standard: Platform Events for Orchestration
Starting with the Spring '21 release, new Order Management Standard customers use the PlatformEvents mode by default, instead instead of BatchApex mode. Customers using (or upgrading from) earlier versions have to make a few changes.
The main difference in performance between the default BatchApex mode and PlatformEvents mode is how they perform when orchestrating callouts and autotasks.
-
BatchApex mode: Uses Batch Apex jobs, which means that no more than five jobs can be executed at the same time.
-
PlatformEvents mode: Uses
Asynchronous Apexmethods, so there's no reasonable technical limit to the number of jobs that can be run, though there are daily and hourly allowances provided by Salesforce.
Platform events work to orchestrate callouts and autotasks. For each callout and for each autotask, Order Management generates one platform event and one asynchronous Apex method.
-
Learn about considerations to take into account when considering PlatformEvents mode: See OM Standard: Considerations about PlatformEvents Mode
-
Set up PlatformEvents mode in Order Management: See Order Management Standard: Set Up Platform Events
NoteNew customers as of Spring '21: you do not need to switch to PlatformEvents mode, unless you have previously switched from PlatformEvents to BatchApex.
-
Learn how Order Management handles errors in platform events: See Order Management Standard: Platform Event Error Handling
- OM Standard: Considerations about PlatformEvents Mode
PlatformEvents mode improves performance in OM orchestration. When deciding whether to run PlatformEvents mode, there are a few things to consider, such as Salesforce allowances for certain methods or events. - Order Management Standard: Set Up Platform Events
If you aren't already using Platform Events, and you want to, then you'll first configure the platform event settings, then schedule the Orchestration Recovery job. For certain versions of OM, there's one extra step, as explained in the following steps. - Order Management Standard: Platform Event Error Handling
In Platform Event mode, when items are throttled, or ready without being in the Event Queue, Order Management takes the actions described here.

