uCosminexus Service Platform, Basic Development Guide
Assigns a specified value to a mapping destination. The following value types can be specified:
- Character string
- Number
- Boolean (true or false)
- Special node (empty node or no node output)
- Organization of this subsection
- (1) Function used
- (2) Setup procedure
(1) Function used
To assign a specified value to a mapping destination, you use the set constant function. The value specified in the set constant function can be assigned to multiple mapping destinations. The set constant function does not have a mapping source. Therefore, the value of the set constant function is assigned as is to the mapping destination. The following figure shows an example that uses the set constant function.
Figure 6-19 Usage example of the set constant function
(2) Setup procedure
To assign a specified value to a mapping destination:
- From the palette, choose the set constant function (const), and deploy it in the mapping viewer.
- Set up a mapping line.
- Use one of the following methods to open the Set Constant dialog box:
- Right--click the set constant function, and choose Setting.
- Double--click the set constant function.
The Set Constant dialog box opens.
For details about the Set Constant dialog box, see the manual Cosminexus Service Platform Overview.
- Specify the value to be assigned to the mapping destination.
- To specify a string
Choose the String radio button and specify the value to be assigned in Value.
- To specify a number
Choose the Number radio button and specify the value to be assigned in Value.
- To specify a logical value
Choose the Logical Value radio button, and then choose Positive or Negative in the Logical Value column.
- To specify a special node
Choose the Special Node radio button, and click Do not output the node or Empty node in the Value column.
- Click OK.
- Note
- When specifying a special node, specify a transformation-destination node for the mapping destination.
- When specifying a value other than a special node, specify a node other than a complex-content node for the mapping destination.
- If you select do not output the node for a special node, specify a transformation-destination node whose minimum occurrence count is 0 for the mapping destination.
- When mapping a value to a choice element all of whose child elements' minimum occurrence counts are set to 1 or greater, specify a node that is not an empty node (special node).
- When mapping a value to an element (other than a choice element) that has a child element whose minimum occurrence count is set to 1 or greater, specify a node that is not an empty node (special node).
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.