| Previous | Next |  | Contents | Index | Glossary

## XML Compare Tag Value Activities

Use the XML Compare Tag Value activities to compare data from an event message received through the Business Event System with a test value. These activities compare the data contained within a particular XML tag set in the event message with the test value that you specify.

XML Compare Tag Value (Date) | Use this activity to compare date values.
XML Compare Tag Value (Number) | Use this activity to compare number values.
XML Compare Tag Value (Text) | Use this activity to compare text values.

All the XML Compare Tag Value activities call the external Java function named oracle.apps.fnd.wf.XMLCompareTag.

> Note: When the Workflow Engine encounters an external Java function activity, it places an entry on the 'Outbound' queue. To continue executing the activity, you must run the Java Function Activity Agent, which calls the appropriate Java function and places the result on the 'Inbound' queue. You must then run a background engine to process the 'Inbound' queue and complete the function activity. See: Setting Up the Java Function Activity Agent and Setting Up Background Engines.

#### Activity Attributes

Each XML Compare Tag Value activity has three activity attributes:

- Event--choose the item attribute of type event that contains the event message whose data you want to compare.

- Tag--the tag set within the event message that contains the data you want to compare to a test value. Specify the tag set in XPath notation. For example, for an XML document containing an order, the XML path for the order number tag could be specified in the following format:

    		/order/header/ordernumber

The following example path locates the ITEMNO node on the third line of the purchase order document:

    		/order/orderlines/line[3]/itemno

The following example path locates the COST node on the second line of the purchase order document whose currency attribute is set to "AUD." The notation // indicates that the specified node is located among the descendants of the root node.

    		//line[2]/cost[@currency="AUD"]

For more information, see the W3C Recommendation XML Path Language (XPath).

- Value--the test value of type date, number, or text with which to compare the event message data.

The XML Compare Tag Value activities use the Comparison lookup type for a result code. Possible values are "Greater Than," "Less Than," "Equal," or "Null," if the test activity attribute value is null. You can guide your workflow process based on how the event message data compares to the test value. See: To Define Activity Attribute Values.

| Previous | Next |  | Contents | Index | Glossary