Event context elements

If you use the ECSEmitter class to send events, two context elements are added automatically to the event information.

These two context elements identify the current and the parent event correlation sphere on behalf of which the event was sent. The following example shows the context elements that are emitted on behalf of a Business Process Execution Language (BPEL) process instance event:
<contextDataElements name="ECSCurrentID"
                     type="ECSID"  
   <contextValue>_PI:900300fd.385c662b.be7d67f6.c600047</contextValue>
</contextDataElements>
<contextDataElements name="ECSParentID"
                     type="ECSID"  
   <contextValue></contextValue>
</contextDataElements>

The names of the context data elements are ECSCurrentID and ECSParentID. The type is a constant string set to ECSID. The value of the contextValue subelement is the identification of the event correlation sphere that is passed to the constructor of the ECSEmitter class. The contextValue element can be empty.

Parent topic: Common Base Event properties


Copyright IBM Corp. 2003, 2005