Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
shong wrote:
Hi
Here is my idea: validate all of fields on a tJavaRow and then trigger different processing based on the validation result, eg:
tRestRequest --> tExtractJSONFields -->main--tJavaRow--runIf1---tfixedFlowInput--main--my processing code...tRestResponse1
--runIf2---tfixedFlowInput--main--tXMLMap--...tRestResponse2
on tJavaRow:
if(..multiple validation condition..){
global.put("isValid",true);
context.columnName=input_row.columName;
context.otherColumnName=input_row.otherColumnName;
}else{
global.put("isValid",false);
}
set the condition of runIf1 as:
(Boolean)globalMap.get("isValid")
set the condition of runIf2 as:
!(Boolean)globalMap.get("isValid")
tfixedFlowInput: generate the current row with context variables.
Regards
Shong