Setting event action variables from a BOD template
You can use the Event Action Set Variables From BOD form to set any number of variables, session variables, and/or parameter values for a BOD (Business Object Document) template.
- In the Event Actions form, create or select an event action and set the Action Type to Set Values.
- Click Edit Parameters.
- In the Event Action Set Values form, select the Event Specific tab.
-
In the Values From BOD
section, click Edit.
The application launches the Event Action Set Variables From BOD form.
- Optionally, in the Select XML Template From section, load (or reload) the XML template for which you want to set event action variables.
-
In the Tree View section,
select the node from which the value is to be set.
The Tree View displays the template currently being used. If no template is specified, this view displays whatever is specified for the BODXML value.
The Tree View includes several options to make it easier to work with the template for the inbound BOD:
- Expand All: Displays the entire tree hierarchy so that you can see all nodes.
- Collapse
All: Displays only the top level of the tree, hiding all
nodes.
This allows you to select which nodes you actually want to view more easily.
- Enter Name below to Add/Rename: Specify the name of an element or attribute to either add or rename.
- Add
Element: Adds an element node to the tree.
Before you can add the element, you must first select the node under which the node is to be added, and then specify the name of the element to add in the Specify name below to add/rename field.
- Add
Attribute: Adds an attribute node to the tree.
Before you can add the attribute, you must first select the node under which the node is to be added, and then specify the name of the attribute to add in the Specify name below to add/rename field.
- Remove: Removes a selected node from the Tree View.
- Rename: Renames a node selected in the Tree View.
Before you can rename the node, you must first select it in the Tree View, specify the new name in the Specify name below to add/rename field, and then click this button.
-
In the Set
Value section, use the As field to specify how the value is to be used:
- As an event Variable
- As an event Parameter
- As a Session Variable
-
In the Name field, specify a name to be assigned to the value.
You can either select an existing value from the drop-down list or enter the name of a variable or parameter yet to be defined.
- Click Save.
- Repeat these steps to define all the variables and parameters that you require.
The XPath field indicates the XPath of a selected node within the XML hierarchy.