Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
javax.ws.rs.NotFoundException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at