3.1.4 Data transformation

Organization of this subsection
(1) Function
(2) Activity to be used

(1) Function

With data transformation, you can convert the message format that flows over the business process to a different message format, and process the values. Furthermore, you can also combine multiple messages to create one message.

Use data transformation in cases such as when you must create a message as per the service component request message format at the time of invoking a service component, and when you want to convert the response message from the service component to a different message format.

The following figure shows the flow of data transformation in a business process:

Figure 3-4 Flow of data transformation in a business process

[Figure]

(2) Activity to be used

Use the data transformation activity for data transformation.

The following figure shows an example of data transformation:

(Example 1) 1 on 1 data transformation

[Figure]

(Example 2) N to 1 data transformation

[Figure]

The following table describes the processes that can be performed by data transformation:

Table 3-1 List of processes that can be performed by data transformation

ProcessDescription
ConcatenateConcatenates multiple strings.
Acquire substringExtracts some portion from one string.
Acquire string lengthAssigns string length of the string to the mapping destination.
Check stringChecks if the specified string is included in the string and the string starts with the specified string, and assigns the logical value to the mapping destination.
Trim nodeRemoves any blank space in the first character and last character of the string. Furthermore, converts the spaces between strings into one-byte space.
Convert number formatConverts the number format. You can change the decimal-point character and the digit separator.
Perform node operationDoes number calculation. (+, -, *, div, mod).
Round nodeRounds up numbers after the decimal. (Round-off, truncate, round-up)
Sum up nodesAdds up node numbers of multiple node sets.
NOT operationExecutes a logical negation operation.
Logical operationExecutes logical operation. (AND, OR, XOR).
Shift operationExecutes shift operation.
Acquire node countAssigns a node to the mapping destination.
Acquire node nameAssigns a node name to the mapping destination.
Check nodeChecks if there are specified conversion source nodes and assigns the logical value to the mapping destination.
RepeatMaps repeat. You can also sort instances of conversion destination nodes that appear more than once.
SelectOutputs a different value depending on the conditions.
Change valueConverts the mapping source value based on the specifications in the conversion table, and assigns to mapping destination.
Base conversionExecutes base conversion.
CustomCan process and create nodes of the value in the Java program created by user.
Set constantAssigns a specified value to the mapping destination.