Using the Function Argument Mapping Wizard

For functions known as mapper functions you can use the Function Argument Mapping wizard to map inputs from a source to the function arguments.

See Mapping and Transforming Data for a reference to using the Function Argument Mapping wizard.
Note: In the TIBCO BusinessEvents language, array indexes start from zero (0). However, in XSLT and XPath languages, they start from one (1). It’s important to remember this difference when using the rule language in the rule editor, and when working in the XSLT mapper and the XPath builder.

Procedure

  1. Open the Function Argument Mapping wizard n either of the following ways:
    • In the rule editor, type the category of function you want to use and select a mapper function from the list of functions in that category. The function argument area contains the text "xslt://". Ctrl+click the text "xslt://" to open the Function Argument Mapping wizard.
    • Type the name of a mapper function category into the Actions or Conditions areas, then type an open parenthesis ( "(" ) TIBCO BusinessEvents displays "xslt://". Ctrl+click the text "xslt://" to open the Function Argument Mapping wizard.
    • Type the entire string to specify the function category path and name, followed by ("xslt://"). Then control-click the text "xslt://" to open the Function Argument Mapping wizard.
  2. In the Function Argument Mappingwizard, under the Function section, take appropriate action. For example, if you are using Instance.createInstance(), click the Browse button to the right of the Entity Path field and select a concept type so you can create an instance of it.
  3. Under the Input section, on the left side, TIBCO BusinessEvents displays a list of variables associated with the project, and on the right, a list of properties for the selected resource type.
  4. Drill down and expand the lists on both sides to expose the variables and properties.
  5. Drag variables from the left to the appropriate property on the right.
    The Function Argument Mapping Wizard in XPath 1.0 Project
    The Function Argument Mapping Wizard in XPath 2.0 Project
  6. (XPath 1.0) If you want to define the arguments using more complex logic, type the code or click the XPath Formula Builder icon to use the XPath Formula Builder. See XPath Formula Builder.
  7. (XPath 2.0) If you want to define the arguments using more complex logic, type the code in the XPath Expression column or click the Show/Hide Edit Tab icon to display the Edit Statement tab. On the left side, click the Functions tab to see the available mapper functions and then drag and drop the functions to the XPath Expression textbox. See XPath Formula Builder.
  8. Click OK.