Hi
You can cache the input request in memory for used later, and use runIf to trigger different business logic depends on the your validation result. for example:
tRESTRequest ---- main--tHashOutput--oncomponentok--tHashInput--main--tXMLMAP ----- tRESTClient (validate web service) ---- txmlMap (response) -main..tJavaRow --runIf1--tHashInput--main--tXMLMap---- tRESTResponse
--runIf2---tFixedFlowInput--main--tXMLMap--tRestResponse
tHashInput: read the original document from memory
on tJavaRow: parse the validation result, and put the result to a global variable for used as the condition of runIf link. eg:
if(input_row.columnName.equals("OK")){
globalMap.put("isValid",true);
}else{
globalMap.put("isValid", false);
}
set the condition of runIf1 as:
(Boolean)globalMap.get("isValid")
set the condition of runIf2 as:
!(Boolean)globalMap.get("isValid")