Need help on tjavarow , tjava connection using runif
Hi, I have a scenario in which after process some vale using tjavarow need to call some another function/code/component based on condition. I am using run if , but failed to achieve it.
Thanx for the suggestion . I have try out .. its working ..but facing new problem . i have connect tJavarow with tjava using if . It give result for last record only
Hi
The runif trigger is fired after the tJavaRow works, that's why you only get the last record. In this case, you need to iterate each row, for example:
....tMap--out1---tFlowToiteate--iterate---tFixedFlowInput--main--tJavaRow---runIf---tJava_2
on tFixedFlowInput, generate each row of out1, for example, add two columns on the schema:
key:value
id
Integer)globalMap.get("out1.id") //assuming the data type of id column is integer/int type.
name
String)globalMap.get("out1.name") //assuming the data type of name column is String type.
on tJavaRow: do as Xavier MOUCHOT mentioned.
Best regards
Shong