Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
mtitek-process-core-runtime-api
|
ProcessRuntimeLogEventUtils.java
ProcessRuntimeLogEventUtils.java
ProcessRuntimeLogEventUtils.java
package mtitek.process.runtime.utils; import java.util.HashMap; import java.util.Map; import org.drools.core.audit.event.LogEvent; public class ProcessRuntimeLogEventUtils { private static final Map<Integer, String> logEventMap = new HashMap<>(); static { logEventMap.put(LogEvent.INSERTED, "INSERTED"); logEventMap.put(LogEvent.UPDATED, "UPDATED"); logEventMap.put(LogEvent.RETRACTED, "RETRACTED"); logEventMap.put(LogEvent.BEFORE_VARIABLE_INSTANCE_CHANGED, "BEFORE_VARIABLE_INSTANCE_CHANGED"); logEventMap.put(LogEvent.AFTER_VARIABLE_INSTANCE_CHANGED, "AFTER_VARIABLE_INSTANCE_CHANGED"); logEventMap.put(LogEvent.ACTIVATION_CREATED, "ACTIVATION_CREATED"); logEventMap.put(LogEvent.ACTIVATION_CANCELLED, "ACTIVATION_CANCELLED"); logEventMap.put(LogEvent.BEFORE_ACTIVATION_FIRE, "BEFORE_ACTIVATION_FIRE"); logEventMap.put(LogEvent.AFTER_ACTIVATION_FIRE, "AFTER_ACTIVATION_FIRE"); logEventMap.put(LogEvent.BEFORE_RULEFLOW_CREATED, "BEFORE_RULEFLOW_CREATED"); logEventMap.put(LogEvent.AFTER_RULEFLOW_CREATED, "AFTER_RULEFLOW_CREATED"); logEventMap.put(LogEvent.BEFORE_RULEFLOW_COMPLETED, "BEFORE_RULEFLOW_COMPLETED"); logEventMap.put(LogEvent.AFTER_RULEFLOW_COMPLETED, "AFTER_RULEFLOW_COMPLETED"); logEventMap.put(LogEvent.BEFORE_RULE_ADDED, "BEFORE_RULE_ADDED"); logEventMap.put(LogEvent.AFTER_RULE_ADDED, "AFTER_RULE_ADDED"); logEventMap.put(LogEvent.BEFORE_RULE_REMOVED, "BEFORE_RULE_REMOVED"); logEventMap.put(LogEvent.AFTER_RULE_REMOVED, "AFTER_RULE_REMOVED"); logEventMap.put(LogEvent.BEFORE_RULEFLOW_NODE_TRIGGERED, "BEFORE_RULEFLOW_NODE_TRIGGERED"); logEventMap.put(LogEvent.AFTER_RULEFLOW_NODE_TRIGGERED, "AFTER_RULEFLOW_NODE_TRIGGERED"); logEventMap.put(LogEvent.BEFORE_RULEFLOW_NODE_EXITED, "BEFORE_RULEFLOW_NODE_EXITED"); logEventMap.put(LogEvent.AFTER_RULEFLOW_NODE_EXITED, "AFTER_RULEFLOW_NODE_EXITED"); logEventMap.put(LogEvent.BEFORE_RULEFLOW_GROUP_ACTIVATED, "BEFORE_RULEFLOW_GROUP_ACTIVATED"); logEventMap.put(LogEvent.AFTER_RULEFLOW_GROUP_ACTIVATED, "AFTER_RULEFLOW_GROUP_ACTIVATED"); logEventMap.put(LogEvent.BEFORE_RULEFLOW_GROUP_DEACTIVATED, "BEFORE_RULEFLOW_GROUP_DEACTIVATED"); logEventMap.put(LogEvent.AFTER_RULEFLOW_GROUP_DEACTIVATED, "AFTER_RULEFLOW_GROUP_DEACTIVATED"); logEventMap.put(LogEvent.BEFORE_PACKAGE_ADDED, "BEFORE_PACKAGE_ADDED"); logEventMap.put(LogEvent.AFTER_PACKAGE_ADDED, "AFTER_PACKAGE_ADDED"); logEventMap.put(LogEvent.BEFORE_PACKAGE_REMOVED, "BEFORE_PACKAGE_REMOVED"); logEventMap.put(LogEvent.AFTER_PACKAGE_REMOVED, "AFTER_PACKAGE_REMOVED"); logEventMap.put(LogEvent.BEFORE_TASK_INSTANCE_CREATED, "BEFORE_TASK_INSTANCE_CREATED"); logEventMap.put(LogEvent.AFTER_TASK_INSTANCE_CREATED, "AFTER_TASK_INSTANCE_CREATED"); logEventMap.put(LogEvent.BEFORE_TASK_INSTANCE_COMPLETED, "BEFORE_TASK_INSTANCE_COMPLETED"); logEventMap.put(LogEvent.AFTER_TASK_INSTANCE_COMPLETED, "AFTER_TASK_INSTANCE_COMPLETED"); } private ProcessRuntimeLogEventUtils() { // hidden } public static String getLogEvent(final Integer logEventType) { return logEventMap.get(logEventType); } }
© 2010-2022
mti
tek