uCosminexus Service Platform, Basic Development Guide

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

6.5.18 Assigning a Specified Value

Assigns a specified value to a mapping destination. The following value types can be specified:

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

[Figure]

(2) Setup procedure

To assign a specified value to a mapping destination:

  1. From the palette, choose the set constant function (const), and deploy it in the mapping viewer.
  2. Set up a mapping line.
  3. 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.
  4. 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.
  5. 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).