The Emit Only If Option

About this task

The Emit Only If condition allows you to map elements conditionally (based on a condition) by evaluating XPath expressions.

This mapping option is available when the target node is a recurrent node with minOccurs="0", which means it is optional. Mapping occurs only if the condition is True.

To select the Emit Only If option:

Procedure

  1. In the Mapping Editor, right-click a destination node that is linked (or mapped). Destination nodes are located in the right pane of the Mapping Editor either in the To Activity or To Orchestration pane.
  2. Select the Emit Only If option from the list. The Emit Condition dialog box is displayed.
  3. Specify an XPath expression in the Left Hand Expression column using the browse button, select the operator, and then specify the value in the Right Hand Expression column.
    For example, bpws:getVariableData('fullName')/fullName/firstName = 'John' and bpws:getVariableData('fullName')/fullName/lastName = 'Smith'
    Note: If the condition compares a STRING to the Right Hand Expression it needs to be specified in single quotes (' ').
    Note: To add multiple conditions, click the Add button. The conditions can be clubbed by AND or OR, and parenthesis is not supported.
    Note: To specify conditions that are more complex than what can be specified in the Enter Condition dialog, click the Advanced button.



Feedback | Notices


Timestamp icon Last updated: Wednesday, 15 June 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/map_the_Emit_Only_if_Option.html