uCosminexus Service Platform, Basic Development Guide
(1) Using tools on the palette
To perform mapping by using tools on the palette:
- From the palette, select the function to be used.
- 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.
- From the palette, select Mapping.
- 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, appears on the cursor, preventing you from specifying the node or function.
- Click either the node adapter of the transformation-destination node or a function that is to become the mapping destination.
A mapping line (assignment line) is set up. If you are using a loop node function, a mapping line (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, 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.
- If the mapping source is a transformation-source node and the mapping destination is a function:
Use the dialog box for specifying a mapping destination function.
If the mapping destination is a choose node function, see 6.5.17 Outputting Different Values According to Conditions.
- If the mapping source and mapping destination are functions:
Use the dialog box for specifying a mapping destination function.
If the mapping destination is a choose node function, see 6.5.17 Outputting Different Values According to Conditions.
- If the mapping source is a function and the mapping destination is a transformation-destination node:
Use the Settings for Mapping Source dialog box.
If the mapping source is a loop node function or choose node function#, you can also use the Loop Settings dialog box. For details about mapping using the Loop Settings dialog box, see 6.6.1 Mapping Using the Loop Settings Dialog Box.
- #
- A choose node function that is connected to a loop node function or to nothing. If a choose node function is connected to a function other than a loop node function, you cannot use the Loop Settings dialog box.
(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:
- From the palette, select the function to be used.
- 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.
- 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.
- Click Add Node or Select Node.
The Select Node dialog box opens.
- 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.
- Click OK.
A mapping line (assignment line) is set up. If you are using a loop node function, a mapping line (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:
- From the palette, select the function to be used.
- 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.
- 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.
- Click Add Function or Select Function.
The Select Function dialog box opens.
- 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.
- Click OK.
A mapping line (assignment line) is set up. If you are using a loop node function, a mapping line (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
- From the palette, select the function to be used.
- 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.
- 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.
- Click Add Function.
The Select Function dialog box opens.
- 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 (condition line) is set up on the output side.
- Click OK.
A mapping line (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.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.