Sun Worklist Manager Service Engine User's Guide

Using the Task Mapper

The WLM SE Mapper provides a framework for processing and directing worklist task data. The Mapper includes three panels to use for mapping and a menu bar that includes any functions you need to use to process the mapped data.

Use the following three panels to map input and output data for a task action:

The menu bar for the Mapper provides operators, necessary elements, and XPath functions you use to create task mappings. Below the menu bar, you can use the following buttons and menu items to work with function boxes and variables:

Creating Worklist Manager Task Mappings

The mapping feature is only available from the Actions tab of the Task Definition Editor. You can map data directly from the source to the destination with no additional processing by creating a mapping from the source tree pane directly to the destination tree pane without using any of the functions.

You can also create a mapping that uses one or more XPath functions from the Mapper's menu bar. For example, you can use the Get Email (LDAP) function to obtain email addresses from the task input data.

ProcedureTo Create a Mapping Without Using any Functions

  1. In the source tree, expand the tree nodes until the node that you want to map from appears.

  2. If the destination panel contains a tree, expand the tree nodes until the node that you want to map to appears.

  3. Select the node in the source tree and drag the pointer to the node in the destination tree.

    A link connects the nodes.

ProcedureTo Use a Function in a Mapping

  1. In the destination tree, expand the tree and select the node you want to map to.

    A blue area appears on the mapping pane. The functions you select appear here.

  2. Click the drop-down menu that contains the function you want to use.

  3. In the list that appears, click the function.

    A function box appears in the mapping pane.

  4. Map any arguments into the appropriate connector on the left side of the function box.

    The source can be a node in the source tree pane or the output from another function box.

  5. Map the result from the right side of the function box.

    The destination can be a node in the destination tree pane or the input into another function box.

ProcedureTo Delete a Link or Function From a Mapping

  1. Select the link or function to delete.

  2. Press Delete.

XPath Function Reference

A collection of XPath functions are available in the Task Definition Editor Mapper menu bar. These functions are based on the XPath 1.0 specification.

The functions have zero, one, or multiple arguments. Each function returns a single result.

The menu bar contains the following drop-down menus:

Operator Functions

The Operator menu contains the following functions:

Boolean Functions

The Boolean menu contains the following functions:

String Functions

The String menu contains the following functions:

Node Functions

The Nodes menu contains the following functions.


Note –

An expanded name consists of a local part and a namespace URI.


Number Functions

The Number menu contains the following functions:

Date and Time Functions

The Date & Time menu contains the following functions:

WLM Functions

The WLM Functions menu contains the following functions: