Skip to end of metadata
Go to start of metadata

Description

If we use OneAsMany node function we have to give some input value to that function otherwise it throws an error, if suppose we don't get any value from the source side at that time we  write some java code.


The below snippet can be used to achieve this scenario.

Select the function is Queue type function and write the following code. 

 for (int i=0;i<value.length;i++) {
  if (valuei.equals(""))
        result.addValue(ResultList.SUPPRESS);  
 else
        result.addValue(valuei);  
}

  • No labels