if(TriggerEventType.BEFORE_COMPLETE_PROC.equals(eventXml.getEventType())) {
action(processEngine, processDefine, processInstance, eventXml, new IAction() {
@Override
public void execute(ProcessDefine processDefine, ProcessInstance processInstance) {
IProcessTriggerEvent processTriggerEvent =
(IProcessTriggerEvent)ApplicationContextHolder.getBean(eventXml.getAction());
processTriggerEvent.beforeComplete(processInstance.getProcessInstId());
}
});
}
}
}