uCosminexus Service Platform, Basic Development Guide

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

6.5.11 Using logical operation

Execute logical operation by considering the input value as hexadecimal character string. You can specify "AND" (logical total), "OR" (logical sum), "XOR" (exclusive logical sum) as operation type. When input value is other than hexadecimal character string, error value (NaN) is returned. When input value exceeds 64 bit, round the bits more than 64 bits.

Process the logical operation function, with big Endian. If digit count of 2 input values differs, perform operation according to the greater digit count. Transformation source node and function are converted to character string at the time of executing transformation.

Organization of this subsection
(1) Function used
(2) Setting procedure

(1) Function used

To execute the logical operation, use Logical operation function. Following figure shows the usage example.

Figure 6-12 FigureLogical operation function usage example

[Figure]

(2) Setting procedure

Procedure for setting up the logical operation is as follows:

  1. Select logical operation logical function (bitop) from the pallet and deploy to the Mapping viewer.
  2. Set up the mapping line.
  3. Display Logical operation dialog with either of the following methods:
    • Right click the logical operation function and select Settings.
    • Double click the logical operation function.
    Logical operation dialog is displayed.
    For details on Logical operations dialog, see "1.6.26 Logical operation dialog" in "Service Platform Reference Guide".
  4. To specify input value of logical operation in Input 1, click Select node button of Input 1.
    Node selection dialog is displayed.
  5. Specify node set, which is an input value.
    Input value of logical operation is set in Input 1.
  6. To specify input value of logical function in Input 2, click Select node button of Input 2.
    Node selection dialog is displayed.
  7. Specify node set, which is input value.
    Input value of logical operation is set in Input 2.
  8. If you want to execute mapping only when you set conditions in input value specified in Input 1 or Input 2 and that conditions are fulfilled, click Specify node conditions button.
    Specify node conditions dialog is displayed.
    For details on how to specify node conditions, see "6.7 Specifying Node Conditions". Also, for details on Specify node condition dialog, see "1.6.9 Set Node Condition Dialog " in "Service Platform Reference Guide".
  9. When you want to specify logical operation target function in Input 1 or Input 2, click Select function button.
    Function selection dialog is displayed.
    For details on Function selection dialog, see "1.6.7 Select function dialog" in "Service Platform Reference Guide".
  10. Specify operation method from Operations.
  11. Click OK button.