}
public void logEventCreated(LogEvent logEvent) {
switch (logEvent.getType()) {
case LogEvent.BEFORE_RULEFLOW_CREATED:
RuleFlowLogEvent processEvent = (RuleFlowLogEvent) logEvent;
addProcessLog(processEvent.getProcessInstanceId(), processEvent.getProcessId());
break;
case LogEvent.AFTER_RULEFLOW_COMPLETED:
processEvent = (RuleFlowLogEvent) logEvent;
updateProcessLog(processEvent.getProcessInstanceId());
break;
case LogEvent.BEFORE_RULEFLOW_NODE_TRIGGERED:
RuleFlowNodeLogEvent nodeEvent = (RuleFlowNodeLogEvent) logEvent;
addNodeEnterLog(nodeEvent.getProcessInstanceId(), nodeEvent.getProcessId(), nodeEvent.getNodeInstanceId(), nodeEvent.getNodeId(), nodeEvent.getNodeName());
break;