Try OpenEdge Now
skip to main content
BPM Events User's Guide
BPM Events tutorial : Using rules to monitor an application : More about the value field
 

More about the value field

The range of permissible values for the value field is predefined for BP Server events. Table 6 lists the possible events for each BP Server object.
Table 6. BP Server objects and possible events
Object
Possible events
Process Templates (P)
P_CREATED, P_INSTALLED, P_REMOVED, P_SUSPENDED, P_RESUMED, and P_REPLACE
Process Instances (PI)
PI_CREATED, PI_ACTIVATED, PI_SUSPENDED, PI_RESUMED, PI_COMPLETED, PI_REMOVED, PI_PRIORITYSET, PI_CREATORSET, PI_DUEDATESET, PI_ATTRIBUTESSET, and PI_DATASLOTSSET
Worksteps (W)
W_ACTIVATED, W_SUSPENDED, W_RESUMED, W_COMPLETED, W_ACTIVATION_WAIT, W_PRECONDITION_WAIT, W_PRIORITYSET, W_DUEDATESET, W_PERFORMERSET, W_TERMINATED, and W_SKIPPED
WorkItems (I)
I_CREATED, I_ACTIVATED, I_AVAILABLE, I_ASSIGNED, I_COMPLETED, I_SUSPENDED, I_REMOVED, I_WAIT, I_PRIORITY, I_DUEDATE, I_PERFORMER, I_TERMINATED, and I_SKIPPED
Dataslots (S)
S_UPDATED
External Performers (EP)
EP_BROKEN and EP_AFTERBREAK
General Events
WS_DUEDATE, SESSION_OPENED, and SESSION_CLOSED
Table 7 describes some of the most common events.
Table 7. BP Server event descriptions
Event
Description
PI_CREATED
Process instance created. This type of event is generated when the process instance is created in BP Server—but not yet started.
PI_ACTIVATED
Process instance activated. This type of event is generated when the process is initiated. At this time, some predefined initial values are known for some dataslots of the process instance.
PI_COMPLETED
Process instance completed. This type of event is generated when the process is terminated.
W_ACTIVATED
Workstep started. Each workstep of the Assign_A_Task process generates a start event.
W_PRECONDITION_WAIT
Workstep in wait state on a precondition. This event is generated when a workstep goes in a wait state on evaluation of precondition to false.
W_ACTIVATION_WAIT
Workstep in wait state waiting to be activated after a certain duration or at a particular time.
W_DUEDATESET
Due date set for the workstep.
W_COMPLETED
Workstep completed. At the end of each workstep, this event is generated. Values of output dataslots for this step are added to the context of the event as name/value pairs.
S_UPDATED
Dataslot updated.
I_ASSIGNED
Work item assigned.
Imagine assigning John the task of "configure printer" with "medium" priority. The dataslot values for this workstep are as follows:
*"John" – the assignee
*"Configure printer" – the task name
*"Medium" – the priority level
When activating this workstep, BP Server generates a W_ACTIVATED event that reports the value of these dataslots. When the workstep is an Activity workstep, which must be performed by one or more persons, then the workstep generates workitems. A work item is a task unit assigned to a person, as part of a workstep. In such a case, additional events related to workitems are generated: I_CREATED, I_ASSIGNED.