1.

What Are External Variables, Normal Variables, Or Shared Variables?

Answer»

External variables:

  • Also known as user defined properties.
  • Exist for entire life time of a message flow and are visible to all messages passed through the flow.
  • Defined at module or schema level.
  • You have to assign an INITIAL value at the time of declaring an external variable and then can modify the initial value at deployment time by using the BAR editor.

Normal Variables:

  • Have lifetime of just one message pass through a node.
  • Visible to that message only in which it was defined.
  • To define, omit both EXTERNAL and SHARED KEYWORD.

Shared variable:

  • Used to implement in-memory CACHE in the message flow.
  • Have a LONG life time and are visible to multiple messages pass through the flow.
  • Exist for the lifetime of Execution group, lifetime of flow or node, lifetime of node’s ESQL that DECLARES the variable.
  • Initialized when the first message pass through the node or flow after broker startup.

External variables:

Normal Variables:

Shared variable:



Discussion

No Comment Found