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