uCosminexus Service Platform, Basic Development Guide

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

6.4.2 Processing the Transformation-source Node Values and Mapping Them to the Transformation-destination Node

To process the transformation-source node values and map them to the transformation-destination node, use the functions. For details about the functions, see 6.5 Using Functions to Process Values.

Organization of this subsection
(1) Using tools on the palette
(2) Using a dialog box

(1) Using tools on the palette

To perform mapping by using tools on the palette:

  1. From the palette, select the function to be used.
  2. Click on an appropriate position in the mapping viewer.
    The function is deployed in the mapping viewer. You can move a deployed function by dragging and dropping it.
  3. From the palette, select Mapping.
  4. Click either the node adapter of the transformation-source node or a function that is to become the mapping source.
    For the mapping source, specify the following transformation-source node or function:
    • Transformation-source node
      Transformation-source node used as the mapping target#1
    • Function
      Function that does not have a mapping line set up on the output side
    If you try to specify a node or function that cannot be used as a mapping source, [Figure] appears on the cursor, preventing you from specifying the node or function.
  5. Click either the node adapter of the transformation-destination node or a function that is to become the mapping destination.
    A mapping line [Figure] (assignment line) is set up. If you are using a loop node function, a mapping line [Figure] (looping-compatible line) is set up. You can change the mapping line color. For details about how to change the mapping line color, see 1.12.5 Changing the Mapping Line Color in the manual uCosminexus Service Platform Reference Guide.
    For the mapping destination, specify the following transformation-destination node or function:
    If you try to specify a node or function that cannot be used as a mapping destination, [Figure] appears on the cursor, preventing you from specifying the node or function.

#1
For details about mapping targets, see 6.10.1 Mapping Targets and Non--Mapping Targets.

#2
Mapping in which connections among functions form a closed route, such as mapping from Function A to Function B, from Function B to Function C, and then from Function C back to Function A

Note
If you have set up a mapping line before deploying functions, delete the mapping line, and then start again.
Reference note
When a function is deployed in the mapping viewer, a function type (such as concat) followed by a serial number is assigned as the function name. These serial numbers are assigned as integers to prevent function names from being duplicated. The first number is 1 and subsequent numbers are assigned in the order in which each function is mapped.
The name of each deployed function can be changed by either editing the function name directly or using a dialog box displayed by double-clicking the function name. For details about how to change function names, see 6.11 Editing function name directly.
If a function is deleted, its name can be assigned to another function.

(2) Using a dialog box

As described below, the dialog box to be used for mapping differs depending on the types of mapping source and mapping destination used.

(a) If the mapping source is a transformation-source node and the mapping destination is a function

To perform mapping when the mapping source is a transformation-source node and the mapping destination is a function:

  1. From the palette, select the function to be used.
  2. Click on an appropriate position in the mapping viewer.
    The function is deployed in the mapping viewer. You can move a deployed function by dragging and dropping it.
  3. Use one of the following methods to open the dialog box for specifying a mapping destination function:
    • Right-click a mapping destination function, and then select Setting.
    • Double-click a mapping destination function.
    The dialog box for specifying a mapping destination function opens.
  4. Click Add Node or Select Node.
    The Select Node dialog box opens.
  5. Specify a transformation-source node that becomes the mapping source, and then click OK.
    The transformation-source node that is the mapping-source is set in Input (Base path in the case of a loop node function) in the dialog box for specifying a mapping destination function. The transformation-source node is displayed as a path name. For details about the path name display format, see 6.4.6 Mapping Source Display Format.
    For the mapping source, specify the transformation-source node that is the mapping target# and satisfies the conditions specified in 6.10.2 Correspondences Between Nodes and Functions That Can Be Mapped.
  6. Click OK.
    A mapping line [Figure] (assignment line) is set up. If you are using a loop node function, a mapping line [Figure] (looping-compatible line) is set up. You can change the mapping line color. For details about how to change the mapping line color, see 1.12.5 Changing the Mapping Line Color in the manual uCosminexus Service Platform Reference Guide.

#
For details about mapping targets, see 6.10.1 Mapping Targets and Non--Mapping Targets.
(b) If the mapping source and mapping destination are functions

To perform mapping when the mapping source and mapping destination are functions:

  1. From the palette, select the function to be used.
  2. Click on an appropriate position in the mapping viewer.
    The function is deployed in the mapping viewer. You can move a deployed function by dragging and dropping it.
  3. Use one of the following methods to open the dialog box for specifying a mapping destination function:
    • Right-click a mapping destination function, and then select Setting.
    • Double-click a mapping destination function.
    The dialog box for specifying a mapping destination function opens.
  4. Click Add Function or Select Function.
    The Select Function dialog box opens.
  5. Specify the function that is to become the mapping source, and then click OK.
    The mapping-source function is set in Input in the dialog box for specifying a mapping destination function. For a set constant function, a set constant value enclosed in single quotation marks (') is displayed. For a function that is not a set constant function, the name of the function is displayed.
    For the mapping source, specify a function that satisfies the conditions specified in 6.10.2 Correspondences Between Nodes and Functions That Can Be Mapped and for which no mapping line is set up on the output side.
  6. Click OK.
    A mapping line [Figure] (assignment line) is set up. If you are using a loop node function, a mapping line [Figure] (looping-compatible line) is set up. You can change the mapping line color. For details about how to change the mapping line color, see 1.12.5 Changing the Mapping Line Color in the manual uCosminexus Service Platform Reference Guide.
(c) If the mapping source is a function and the mapping destination is a transformation-destination node
  1. From the palette, select the function to be used.
  2. Click on an appropriate position in the mapping viewer.
    The function is deployed in the mapping viewer. You can move a deployed function by dragging and dropping it.
  3. Right-click the transformation-destination node that becomes the mapping destination in the transformation-destination schema tree viewer, and then select Mapping source.
    The Settings for Mapping Source dialog box opens.
  4. Click Add Function.
    The Select Function dialog box opens.
  5. Specify the function that is to become the mapping source, and then click OK.
    The specified function name is set in Path/Function name.
    For the mapping source, specify a function that satisfies the conditions specified in 6.10.2 Correspondences Between Nodes and Functions That Can Be Mapped and for which no mapping line is set up on the output side. Note that because conditions are specified with a choose node function, you can specify a function for which a mapping line [Figure] (condition line) is set up on the output side.
  6. Click OK.
    A mapping line [Figure] (assignment line) is set up. You can change the mapping line color. For details about how to change the mapping line color, see 1.12.5 Changing the Mapping Line Color in the manual uCosminexus Service Platform Reference Guide.

Note
If you have set up a mapping line before deploying functions, delete the mapping line, and then start again.
Reference note
When a function is deployed in the mapping viewer, a function type (such as concat) followed by a serial number is assigned as the function name. These serial numbers are assigned as integers to prevent function names from being duplicated. The first number is 1 and subsequent numbers are assigned in the order in which each function is mapped.
The name of each deployed function can be changed by either editing the function name directly or using a dialog box displayed by double-clicking the function name. For details about how to change function names, see 6.11 Editing function name directly.
If a function is deleted, its name can be assigned to another function.