Try OpenEdge Now
skip to main content
BPM Events User's Guide
Understanding BPM Events : The XML event
 

The XML event

An xml event has two public attributes:
*A set of properties. The properties are set in a hashtable and can be any of the primitive type such as String, int, long.
*An XML body (xml). The xml is a string that contains the XML body of the message.
It also has internal BPM Events attributes such as type and date.
An example of an XML Event is shown in the following section:
properties:
    Origin: server1
    Destination: server2
    Description: Purchase Order based on po.xsd xml:
    <?xml version=\"1.0\"?>
    <purchaseOrder>
        <shipTo type=\"USAddress\">
            <name>Helen Zoe</name>
            <street>47 Eden Street</street>
            <city>Santa Clara</city>
            <state>CA</state>
            <zip>95054</zip>
        </shipTo>
        <billTo type=\"USAddress\">
            <name>Robert Zoe</name>
            <street>47 Eden Street</street>
            <city>Santa Clara</city>
            <state>CA</state>
            <zip>95054</zip>
        </billTo>
        <itemsList>
            <item partNum=\"833-AA\">
                <productName>Lapis necklace</productName>
                <quantity>1</quantity>
                <USPrice>100.00</USPrice>
                <comment>Want this for the holidays!</comment>
                <shipDate>2001-12-15</shipDate>
            </item>
            <item partNum=\"423-AA\">
                <productName>Baby Sound Monitor</productName>
                <quantity>2</quantity>
                <USPrice>49.00</USPrice>
                <comment>Got twins!</comment>
                <shipDate>2001-12-17</shipDate>
            </item>
        </itemsList>
    </purchaseOrder>
* The XML schema definition
* Accessing XML body content
* Accessing message properties