Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For using Process Flow in a Template, first create a Process Flow in the Developer's Studio. While creating a Process Flow, in the Process Designer, write the following script in the Service exception field under the OnException Scripts tab.  

Info
import org.apache.commons.lang.exception.ExceptionUtils;
Throwable rootCause = ExceptionUtils.getRootCause(exception);
String exceptionMessage = null;
if(rootCause == null)
exceptionMessage = exception.getMessage();
else
exceptionMessage = rootCause.getMessage();

context.put("subprocess_code", "ERROR_IN_CHILD_FLOW");
context.put("subprocess_text", exceptionMessage);

After you have created a Process Flow, publish it in Adeptia Connect.

...