Arithmetic operators
Many expressions are one-to-one relationships from the source to the target. Sometimes, however, the format of the data in the target is different from the format in the source. You can use an arithmetic operator to change the format of the data.
You can use the following arithmetic operators in Integration Composer.
+ | addition |
- | subtraction |
* | multiplication |
/ | division |
For example, suppose that RAM memory is expressed in kilobytes in the source and megabytes in the target. The expression in the target is:
'RAM.Size(bytes)'/1024.
When you execute the mapping, this example expression copies the value from the Size(bytes) property of the class RAM (in the source) to the Ramsize property of the class Computer (in the target). This value is then divided by 1,024 and placed into each instance created.