if (TaskManagerEvent.BEFORE_EXECUTE.equals(event)) {
taskExecutionUI.beforeExecute(uievent);
} else if (TaskManagerEvent.AFTER_EXECUTE.equals(event)) {
taskExecutionUI.afterExecute(uievent);
} else if (TaskManagerEvent.SUBMITTED.equals(event)) {
taskExecutionUI.submitted(uievent);
}
} catch (Exception e) {
Application.getHandlerExceptionManager().handle(
new TaskExeception(e));
}