ExceptionScope exceptionScope = (ExceptionScope) context;
for (ExceptionHandler exceptionHandler: exceptionScope.getExceptionHandlers().values()) {
if (exceptionHandler instanceof ActionExceptionHandler) {
DroolsConsequenceAction action = (DroolsConsequenceAction)
((ActionExceptionHandler) exceptionHandler).getAction();
ActionDescr actionDescr = new ActionDescr();
actionDescr.setText( action.getConsequence() );
Dialect dialect = buildContext.getDialectRegistry().getDialect( action.getDialect() );
dialect.getActionBuilder().build( buildContext, action, actionDescr, (ProcessImpl) buildContext.getProcess() );
}
}
}