This section is applicable only for the users of Adepta Connect.
Anchor | ||||
---|---|---|---|---|
|
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); |
Anchor | ||||
---|---|---|---|---|
|
If the Process Flow is further calling another Process Flow, you must create a custom plugin using below JavaScript. After you have created a custom plugin, use it in the Process Flow just before a Call or Spawn activity. In case there are multiple Call or Spawn activities in a Process Flow, you need to add a Custom Plugin before every Call or Spawn activity.
...
RuntimeUtils.abortParentFlow(context,"<<ACTION_NAME>>","<<resultCtxVarName>>");
Process Flow Design
Following are the sample designs of the Process Flow, calling a Transaction through Call or Spawn action:
...