Configuration data

Enabling an event to enact a process requires an event-process association to be configured. Every event raised in the application checks to see if any processes have been associated and are required to be enacted. The latest released version of a process will always be enacted for an associated event.

The registration of an event to trigger a process is stored as a record on the ProcEnactmentEvt table. The process enactment event handler searches a cached representation of this table for matching entries when an event is raised in the application and enacts any matching processes. The following table describes the data required to populate the ProcEnactmentEvt table.

Table 1. Description of the ProcEnactmentEvt Table

Entity Field Name

Description of Field

procStartEventID

The unique identifier of the event-process association.

eventClass

The event class of the event that has been specified to enact the workflow process.

eventType

The event type of the event that has been specified to enact the workflow process.

processToStart

If an event containing the specified event class and type describe above is raised, the latest released version of the workflow process specified by this name will be enacted.

enabled

This boolean flag indicates if the event-process association is enabled. This allows the enactment of a workflow process by a specified event to be enabled/disabled at runtime.

The ProcEnactEvtData table stores the data to be mapped from a business event to a the workflow being enacted when that specified event is raised. The following table describes the data required to populate the ProcEnactEvtData table.

Table 2. Description of the ProcEnactEvtData Table

Entity Field Name

Description of Field

procEventMappingID

The unique identifier of the process enactment event data mapping.

procStartEventID

The unique identifier of the event-process association. This field is the unique key on the associated ProcEnactmentEvt table and is used to associate all of the data required to enact the workflow process when a specified event is raised.

eventField

This indicates which of the three fields of an event will be used to populate the workflow data object attribute. The values for this field are taken from the EventField codetable and are described in more detail below.

wdoAttribute

The fully qualified name of a workflow data object attribute to populate with data from the given event field when a process is enacted. This table will include an entry for each workflow data object attribute that has been marked as required for enactment in the process being enacted by the raised event.

There are three fields of an event may be used as enactment mappings. These are enumerated in the EventField codetable and are described below.

primary event data
A unique identifier related to the event class from which the event is raised. For example, where the business object type specified for an event is equal to 'Case', the event data could be case identifier.
secondary event data
This can be any numeric value and is intended for events that must represent an association between two entities.
raised by user
The Cúram username of the user who raised the event.