uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

6.7 Specifying Node Conditions

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.

To set up node conditions:

  1. 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.
  2. 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.
  3. Choose the node for which to specify a node condition, and click Set Condition.
    The Condition Settings dialog box opens.
  4. 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
  5. 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.
  6. Click OK.
    The condition specified in the Condition Settings dialog box is displayed in Condition in the Set Node Condition dialog box.
  7. To specify node conditions for other nodes, repeat steps 3. to 6.
  8. 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 [Figure] (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.
[Figure]