uCosminexus Service Platform, Basic Development Guide
Converts the format of the number at the mapping source using the format pattern of the java.text.DecimalFormat class. You can also change the decimal separator or grouping separator to be specified in the pattern. For details about the format pattern of the java.text.DecimalFormat class, see the documentation related to Java API.
- Organization of this subsection
- (1) Function used
- (2) Setup procedure
(1) Function used
To convert the format of the number at the mapping source using the format pattern of the java.text.DecimalFormat class, you use the convert number format function. The following figure shows an example that uses the convert number format function.
Figure 6-7 Usage example of the convert number format function
(2) Setup procedure
To convert the format of the number at the mapping source, using the format pattern of the java.text.DecimalFormat class:
- From the palette, choose the convert number format function (format), and deploy it in the mapping viewer.
- Set up a mapping line.
- Use one of the following methods to open the Convert Number Format dialog box:
- Right--click the convert number format function, and choose Setting.
- Double--click the convert number format function.
The Convert Number Format dialog box opens.
For details about the Convert Number Format dialog box, see the manual Cosminexus Service Platform Reference.
- When a transformation-source node is specified in Input, to specify a condition for the transformation-source node and map it only when this condition is satisfied, click Set Node Condition.
The Set Node Condition dialog box opens.
For details about how to set a node condition, see 6.7 Specifying Node Conditions. For details about the Set Node Condition dialog box, see the manual Cosminexus Service Platform Reference.
- In Pattern, specify the pattern string of the java.text.DecimalFormat class format after conversion.
- To change the decimal separator or grouping separator to be specified in the pattern, choose the Change Symbols check box and specify the following:
- To change the decimal separator
In Decimal Separator, specify the symbol for the decimal separator after the change. If the specification is omitted, the default symbol is used.
- To change the grouping separator
In Grouping Separator, specify the symbol for the grouping separator after the change. If the specification is omitted, the default symbol is used.
- Click OK.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.