uCosminexus Service Platform, Basic Development Guide

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

6.5 Using Functions to Process Values

To process the transformation-source node values and map them to the transformation-destination node, you use functions. This section explains the various functions to be used for various cases. For details about how to use a function for mapping, see 6.4.2 Processing the Transformation-source Node Values and Mapping Them to the Transformation-destination Node.

The following table lists the functions.

Table 6-3 List of functions

Classification Function name Explanation
String--based Concatenate Concatenates multiple strings.
Acquire substring Extracts a substring from a string.
Acquire string length Assigns a string character count to a mapping destination.
Check string Verifies that the specified string is contained in a string or that the string begins with the specified string, and assigns the logical value to a mapping destination.
Trim node Removes the leading and trailing spaces from a string. Also replaces consecutive spaces between strings with a single space.
Number--based Convert number format Converts the number format.
Perform node operation Computes (+, --, *, div, or mod) numbers.
Round node Rounds decimal digits (round off, round down, or round up).
Sum up nodes Sums up the node numbers of multiple node sets.
Bit operations NOT operation Execute NOT operation.
Logical operation Executes logical operation (AND, OR, XOR).
Shift operation Executes shift operation.
Node--based Acquire node count Assigns a node count to a mapping destination.
Acquire node name Assigns a node name to a mapping destination.
Check node Verifies that the specified transformation-source node exists and assigns the logical value to a mapping destination.
Control--based Loop node Maps looping.
Choose node Outputs different values according to conditions.
Other Set constant Assigns a specified value to a mapping destination.
Replace value Converts the mapping source value based on the specification of the conversion table and assigns value to the mapping destination.
Radix Conversion Executes basic transformation.
Custom Invoke a Java program created by the user.
Organization of this section
6.5.1 Concatenating Multiple Strings
6.5.2 Extracting a Substring from a String
6.5.3 Assigning a String Character Count
6.5.4 Verifying That the Specified String Is Present or That the String Begins with the Specified String
6.5.5 Removing Spaces from a String
6.5.6 Converting the Number Format
6.5.7 Computing Numbers
6.5.8 Rounding Decimal Digits
6.5.9 Summing Up the Node Numbers of Multiple Node Sets
6.5.10 Using NOT operation
6.5.11 Using logical operation
6.5.12 Using shift operation
6.5.13 Assigning a Node Count
6.5.14 Assigning a Node Name
6.5.15 Verifying That a Node Exists
6.5.16 Mapping Looping
6.5.17 Outputting Different Values According to Conditions
6.5.18 Assigning a Specified Value
6.5.19 Converting a Value with the Conversion Table
6.5.20 Performing basic number transformation
6.5.21 Assigning a Value to a Transformation-source Node Value
6.5.22 Doubling a Transformation-source Node Value
6.5.23 Invoke a Java program created by the user