Access Flow-Variable

Hi at all,

how I can access flow variables, like the currentIteration flow variable as an execution node within a loop?

I would like to realize a kind of end-if node, which passes on the one hand the initial data (currentIteration = 0) and on the other hand the data, that is modified by the loop (currentIteration != 0). It would be very nice, if someone could help me.

Greetings

Hi,

in the NodeModel you can use:

getAvailableFlowVariables()

to get a map of all incoming flow variables. And with

peekFlowVariableString or peekFlowVariableInt or peekFlowVariableDouble

you can get the values.

Regards

Guido