String BodyText = "\n";
String SubjectText;
FlowChart myChart = flowContext.getFlowChart();
String myChartName = myChart.getName();
String throwingActionName = flowContext.getErrorResult().throwingAction;
String curActionName = flowContext.getActionName();
String message = flowContext.getErrorResult().message;
String stackTrace = flowContext.getErrorResult().stackTrace;
SubjectText = "Flux Error: " + myChartName + " failed";
BodyText = BodyText + "There was an error in flowchart " + myChartName;
BodyText = BodyText + " during action \"" + throwingActionName +"\"" +"\n";
BodyText = BodyText + " The error was \"" + message + "\" \n" + "\n";
BodyText = BodyText + "The stack trace is: \n";
BodyText = BodyText + stackTrace + "\n";
myChart.getAction(curActionName).setBody(BodyText);
myChart.getAction(curActionName).setSubject(SubjectText);
There are no comments on this document