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.
- Open the Event Action Set Variables From BOD form.
-
In the Tree View, 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:
- Click Expand All to display the entire tree hierarchy so that you can see all nodes.
- Click Collapse All to display only
the top level of the tree, hiding all nodes
This allows you to select which nodes you actually want to view more easily.
- Click Specify Name below to Add/Rename
to specify the name of an element or attribute to either add or
rename:
- To add an element, specify a name here and click Add Element.
- To add an attribute to a node, specify a name here and click Add Attribute .
- To rename an element or attribute, first, in the Tree View, select the element or attribute you want to rename; specify the new name here, and then click Rename .
- Click Add Element to add 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.
- Click Add Attribute to add 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.
- Click Remove to remove a selected node from the Tree View.
- Click Rename to rename 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.
-
In the Set Value section, use the
As field to specify how the value is
to be used:
- An event Variable
- An event Parameter
- A Session Variable
-
In the Name field, specify a name
to be assigned to the value.
Optionally, you can specify a default-type value from the drop-down list. For convenience, the application supplies several auto-name options, depending on the type selected in the As field: Var1, Var2, and Var3 for variables; Parm1, Parm2, and Parm3 for parameters; and so on. You are not required to use these suggested names, you can enter your own name in this field.
- 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.