You can specify a condition for the transformation-source node and map it only when this condition is satisfied. Specifying a condition for the transformation-source node is called node condition setting. As described below, the method for starting node condition setting differs depending on the mapping destination.
- When the mapping destination is a transformation-destination node
Start node condition setting from the Settings for Mapping Source dialog box. The Settings for Mapping Source dialog box opens when you right--click the transformation-destination node and choose Mapping source.
- When the mapping destination is a function
Start node condition setting from the dialog box for setting up each function. You can use one of the following methods to open the dialog box for setting up each function:
- Right--click each function, and choose Setting.
- Double--click each function.
To set up node conditions:
- In the Settings for Mapping Source dialog box or the dialog box for setting up each function, choose the transformation-source node for which to specify a node condition.
- Click Set Node Condition.
The Set Node Condition dialog box opens.
The Set Node Condition dialog box displays the transformation-source node selected in the Settings for Mapping Source dialog box and its ancestor node. You can specify node conditions for all nodes displayed in the Set Node Condition dialog box.
- Choose the node for which to specify a node condition, and click Set Condition.
The Condition Settings dialog box opens.
- Specify a condition.
From the following radio buttons, choose the condition to be specified in Condition and specify details for that condition.
- Node or function to return the boolean value radio button
- Condition format radio button
- Logical operation of two conditions radio button
The specified condition is displayed in Condition to be generated.
To specify a transformation-source node or function in Condition, specify the following transformation-source node or function:
- Transformation-source node
Node that is a mapping target# and that has a simple content or attribute
- Function
Function that is not a control function and for which no mapping line is specified on the output side
- To specify a condition that is opposite in content from the condition displayed in Condition to be generated, choose the Negate the condition check box.
- Click OK.
The condition specified in the Condition Settings dialog box is displayed in Condition in the Set Node Condition dialog box.
- To specify node conditions for other nodes, repeat steps 3. to 6.
- In the Set Node Condition dialog box, click OK.
The node conditions are set up.
If you specify a transformation-source node or function that is not a mapping source inside a condition specified in the Condition Settings dialog box, a mapping line (condition line) is set up between the transformation-source node or function inside that condition and the mapping destination.
- #
- For mapping targets, see 6.10.1 Mapping Targets and Non--Mapping Targets.
- Hint
- When you choose a transformation-destination node for which a condition was specified, the specified node condition is displayed in Mapping source in the property area. A node condition enclosed inside square brackets "[ ]" is displayed following the node name for which the condition was specified. When the node (specified in Condition of the Condition Settings dialog box) is a descendant node of the node (specified in the Set Node Condition dialog box) for which the condition was specified, a relative path from the node for which the condition was specified is displayed. In all other cases, the absolute path is displayed.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.