> #### 6.3.2 Assign UDA from XPath Expression Java Action

> The Assign UDA from XPath Expression Java Action parses data from an XML string coming in to Interstage BPM and assigns the parsed data to the user-defined attributes (UDAs) specified in the editor. This Java Action is usually used in conjunction with the Assign XML to UDA Java Action and an HTTP Agent. This three-component system forms a data-transfer interface to a system external to Interstage BPM.

> Note: If you are using the Interstage Business Process Manager Entry Edition, Agents (in general) will be unavailable. For other Entry Edition considerations, see the Entry Edition User's Guide.

> This section only provides instructions in using the action editor. It provides no information on applications for which they might be used, how to design the XML string expressions, or how to write the XPath expressions.

> To parse incoming data using the Assign UDA from XPath Expression Java Action:

> 1. Follow the instructions in the Assigning Java Actions section. Following these instructions will guide you to the Action List dialog box from which you can select an Action. Double-click Assign UDA from XPath in the Action List dialog box. First, you must expand the Server Actions folder.

> The action editor Assign UDA from Xpath expression appears.

> 2. Enter a name for your Assign UDA from XPath Expression action in the Action Name field. Note that the name ParseCustomerInfo is displayed as the Action Name in Figure 55.

> 3. Select a UDA for your Assign UDA from XPath Expression action from the Source UDA field. Note that the name CustomerDetails is displayed as the Source UDA in Figure 55. This UDA contains an XML string from which your UDA data will be parsed.

> 4. Map the UDAs to which you want to move data to XPath expressions in the Map UDA to XPath Expression area. Cust_Name is mapped to a path containing the customer's name, and Address is mapped to a path containing the customer's address in Figure 55. Then, click OK.

> Figure 62: The Assign UDA from XPath Expression Action Editor
> Your Java Action appears in the Action frame of the properties dialog where you clicked the Add button. In the example, ParseCustomerInfo is set as the process initialization Java Action. At process initialization, this Java Action parses the XML string contained in the source UDA and assigns the parsed data to the specified UDAs.
> In the example, the XML contained in the CustomerDetails UDA is parsed into a customer name and address, and that data is assigned to the Cust_Name and Address UDAs.

> Figure 63: The Action Set pane

> 5. Click OK to close the properties dialog box.

> Your Assign UDA from XPath Expression Java Action is now assigned to the process definition. You can attach these actions to map XML data in any one of the Action type frames.

Business Process Manager Help-Fujitsu Computer Systems Corporation Interstage Website Voice: (888) 248-9273 Interstage BPM Information