Process.Template.setExceptionHandler()

Signature

void setExceptionHandler(Object template,String processOrfunctionURI,<optional>boolean isAsynchronous)

Domain

ACTION, PROCESS

Description

Set the default Exception handler process or function URI for the given template

Parameters

NameTypeDescription
templateObjectThe process template.
processOrfunctionURIStringThe exception handler process or function URI.
The ExceptionHandler function signature is
  void handlerFn(String taskName,Concept jobContext,Exception e)

The ExceptionHandler process variables needs to have the following optional
String properties to show details
  "taskName"=Task Name,
  "jobData"=Serialized Job Context Data XML,
  "taskException"=Serialized Exception XML
The exception handler process must have default start event without
any associated SimpleEvent or TimeEvent
isAsynchronousboolean<optional>true if the exception handler is invoked asynchronously
else false, default is true. This parameter is not used for rulefunction
handler and it is executed synchronously

Returns

TypeDescription
void

Cautions

none