Synchronization Options
Critical section groups can be used to synchronize all process instances for a particular process definition in a single process engine, or you can synchronize process instances for multiple process definitions, or you can synchronize process instances across multiple process engines.
Single Group
If you wish to synchronize process instances for a single process definition in a single process engine, perform the following:
Procedure
-
Create a group around the activities you wish to synchronize.
-
Specify Critical Section for the Group Action field.
-
Specify Single Group for the Scope field.
Only one process instance at any given time will execute the activities contained in the Critical Section group.
Multiple Groups
If you wish to synchronize process instances for multiple process definitions, or if you wish to synchronize process instances across multiple process engines, perform the following:
Procedure
-
Create a Lock shared configuration resource and specify a name for the resource.
-
To perform the synchronization across multiple process engines, check the Multi-Engine field of the Lock resource.
When the process instances are executed by the same process engine, locking is performed in memory. When the process instances are executed across multiple engines, the process engines must be configured to use a database for storage, and a database transaction is performed to ensure that only one process instance is executing the critical section group at any given time.
-
Create a group around the activities you wish to synchronize.
-
Specify Critical Section for the Group Action Field.
-
Specify Multiple Groups for the Scope field.
-
Use the Browse button in the Lock Object field to locate the Lock shared configuration resource you created in Step 1.
-
Perform steps 3 to 6 for any process definitions you wish to synchronize. Make sure you specify the same Lock shared configuration object for all Critical Section groups.