Critical Section groups are used to synchronize process instances. At runtime multiple process instances can be executed concurrently. You can use Critical Section groups to synchronize the set of actions performed in the process across multiple process instances. Only one process instance can execute the critical section group and its contents at any specified time. Other concurrently running process instances that are associated with the corresponding critical section group wait at the start of the critical section group, until the process instance that is currently executing complete the critical section group.
General tab has the following fields.
||The name to be displayed as the label for the group in the process.
||The type of the group. The default is
|| The maximum time (in milliseconds) that a process instance waits at the start of the critical section group while another process instance is executing the critical section. When a timeout occurs, the process instance that is waiting to execute the critical section fails with an Activity Timeout Exception.
The timeout field can be used to avoid deadlock situations.
||Select this check box to synchronize multiple critical section groups that use the same shared variable as a lock.
|Shared Variable Type
Shared Lock option can be defined using a
Module Shared Variable or a
Job Shared Variable. When a module shared variable is used against job shared variable to define
Shared Lock, it has different implications.
||Name of the
Module Shared Variable or
Job Shared Variable.
Provide a short description for the group in this field.
Variables tab provides a way to declare variables that are only limited to the scope of this group.
You can select from the following available
Variable Type options:
Fault tab lists the possible exceptions thrown by this activity.
|| The specified timeout is attained.