About the NumCompute sample

This sample demonstrates how a C user-defined message processing node can be used as a compute node.

The following figure shows the NumCompute sample message flow:

This figure shows the NumCompute message flow. the NCInput node is connected to the NumCompute node. The NumCompute node is connected to the NCOutput node and the NCFailure node.

The NumCompute node performs several calculations, then adds the results of the calculations to the output message.

  1. The NumCompute node performs the following calculations, where Num1, Num2, Num3, and Result are integers:
    Num3 = Num1 * Num2
    Num2 = Num1 * Num3
    Result = (Num1 * Num2 * Num3)
  2. The values of Num1, Num2, Num3, and Result are added to the output message.

This sample uses the following queues:

About the user-defined extension sample

Back to sample home