Logging Errors from Global Exception Node
Create an exception node from the start node
Add a "Perform" node
Gather and log detail:
StringWriter sw = new StringWriter();
String instanceId = context.getInstanceId();
String nodeName = context.getExceptionInfo().getExceptionNodeName(); context.getExceptionInfo().getException().printStackTrace(new PrintWriter(sw));
StringBuffer sb = new StringBuffer("Exception occurred in instance: ");
sb.append(instanceId);
sb.append(" - within node: " + nodeName);
sb.append("\n" + sw.toString());
log.error(sb.toString());

0 Comments:
Post a Comment
<< Home