Flow: tRESTreq -> tFlowToIter -> tOracleInput -> txmlMap -> tRestResp
In the xmlmap I am trying to perform flow control. For that I would need to distinguish between the number of line (tOracleInput_NB_LINE) being either 0 or 1 to set the condition for different xmlmap outputs. However as I globalMap.get("tOracleinput_3_NB_LINE") I get a nullpointer.
I had a look at the code and it turns out that for some odd reason the variable scope for the xmlmap definitions is put in before where NB_LINE is inserted into the globalMap (about 50 lines below).
Is there any way around or is this a bug? I have already tried using a tJavaRow between the two components but I get a "cannot refer to non-final variable" error. I cannot use onsubjob either since the code for that component also gets generated and executed after the variable scope of xmlmap.
Exception in component tRESTClient_1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to use an API-First Approach to Modernize your Applications
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs