@Override public void handleEvent(final HistoryEvent historyEvent) { for (HistoryEventHandler historyEventHandler : historyEventHandlers) { historyEventHandler.handleEvent(historyEvent); } }
/** * Process an {@link HistoryEvent} and handle them directly after creation. * The {@link HistoryEvent} is created with the help of the given * {@link HistoryEventCreator} implementation. * * @param creator the creator is used to create the {@link HistoryEvent} which should be thrown */ public static void processHistoryEvents(HistoryEventCreator creator) { HistoryEventProducer historyEventProducer = Context.getProcessEngineConfiguration().getHistoryEventProducer(); HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration().getHistoryEventHandler(); HistoryEvent singleEvent = creator.createHistoryEvent(historyEventProducer); if (singleEvent != null) { historyEventHandler.handleEvent(singleEvent); } List<HistoryEvent> eventList = creator.createHistoryEvents(historyEventProducer); historyEventHandler.handleEvents(eventList); } }
/** * Process an {@link HistoryEvent} and handle them directly after creation. * The {@link HistoryEvent} is created with the help of the given * {@link HistoryEventCreator} implementation. * * @param creator the creator is used to create the {@link HistoryEvent} which should be thrown */ public static void processHistoryEvents(HistoryEventCreator creator) { HistoryEventProducer historyEventProducer = Context.getProcessEngineConfiguration().getHistoryEventProducer(); HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration().getHistoryEventHandler(); HistoryEvent singleEvent = creator.createHistoryEvent(historyEventProducer); if (singleEvent != null) { historyEventHandler.handleEvent(singleEvent); } List<HistoryEvent> eventList = creator.createHistoryEvents(historyEventProducer); historyEventHandler.handleEvents(eventList); } }
@Override public void handleEvent(final HistoryEvent historyEvent) { for (HistoryEventHandler historyEventHandler : historyEventHandlers) { historyEventHandler.handleEvent(historyEvent); } }
/** * Process an {@link HistoryEvent} and handle them directly after creation. * The {@link HistoryEvent} is created with the help of the given * {@link HistoryEventCreator} implementation. * * @param creator the creator is used to create the {@link HistoryEvent} which should be thrown */ public static void processHistoryEvents(HistoryEventCreator creator) { HistoryEventProducer historyEventProducer = Context.getProcessEngineConfiguration().getHistoryEventProducer(); HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration().getHistoryEventHandler(); HistoryEvent singleEvent = creator.createHistoryEvent(historyEventProducer); if (singleEvent != null) { historyEventHandler.handleEvent(singleEvent); } List<HistoryEvent> eventList = creator.createHistoryEvents(historyEventProducer); historyEventHandler.handleEvents(eventList); } }
public void notify(DmnDecisionEvaluationEvent evaluationEvent) { HistoryEvent historyEvent = createHistoryEvent(evaluationEvent); if(historyEvent != null) { Context.getProcessEngineConfiguration() .getHistoryEventHandler() .handleEvent(historyEvent); } }
public void notify(DelegateCaseExecution caseExecution) throws Exception { HistoryEvent historyEvent = createHistoryEvent(caseExecution); if (historyEvent != null) { Context.getProcessEngineConfiguration() .getHistoryEventHandler() .handleEvent(historyEvent); } }
public void notify(DelegateCaseExecution caseExecution) throws Exception { HistoryEvent historyEvent = createHistoryEvent(caseExecution); if (historyEvent != null) { Context.getProcessEngineConfiguration() .getHistoryEventHandler() .handleEvent(historyEvent); } }
public void notify(DelegateExecution execution) throws Exception { // get the event handler final HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration() .getHistoryEventHandler(); // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(execution); if(historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } }
public void notify(DelegateExecution execution) throws Exception { // get the event handler final HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration() .getHistoryEventHandler(); // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(execution); if(historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } }
public void notify(DmnDecisionEvaluationEvent evaluationEvent) { HistoryEvent historyEvent = createHistoryEvent(evaluationEvent); if(historyEvent != null) { Context.getProcessEngineConfiguration() .getHistoryEventHandler() .handleEvent(historyEvent); } }
public void notify(DelegateTask task) { // get the event handler final HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration() .getHistoryEventHandler(); ExecutionEntity execution = ((TaskEntity) task).getExecution(); if (execution != null) { // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(task, execution); if(historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } } }
public void notify(DelegateTask task) { // get the event handler final HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration() .getHistoryEventHandler(); ExecutionEntity execution = ((TaskEntity) task).getExecution(); if (execution != null) { // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(task, execution); if(historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } } }
public void fireHistoricCaseActivityInstanceUpdate() { ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration(); HistoryLevel historyLevel = configuration.getHistoryLevel(); if (historyLevel.isHistoryEventProduced(HistoryEventTypes.CASE_ACTIVITY_INSTANCE_UPDATE, this)) { CmmnHistoryEventProducer eventProducer = configuration.getCmmnHistoryEventProducer(); HistoryEventHandler eventHandler = configuration.getHistoryEventHandler(); HistoryEvent event = eventProducer.createCaseActivityInstanceUpdateEvt(this); eventHandler.handleEvent(event); } }
public void fireHistoricCaseActivityInstanceUpdate() { ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration(); HistoryLevel historyLevel = configuration.getHistoryLevel(); if (historyLevel.isHistoryEventProduced(HistoryEventTypes.CASE_ACTIVITY_INSTANCE_UPDATE, this)) { CmmnHistoryEventProducer eventProducer = configuration.getCmmnHistoryEventProducer(); HistoryEventHandler eventHandler = configuration.getHistoryEventHandler(); HistoryEvent event = eventProducer.createCaseActivityInstanceUpdateEvt(this); eventHandler.handleEvent(event); } }
@Override public void handleEvent(final HistoryEvent historyEvent) { for (HistoryEventHandler historyEventHandler : historyEventHandlers) { historyEventHandler.handleEvent(historyEvent); } }
public void notify(DmnDecisionEvaluationEvent evaluationEvent) { HistoryEvent historyEvent = createHistoryEvent(evaluationEvent); if(historyEvent != null) { Context.getProcessEngineConfiguration() .getHistoryEventHandler() .handleEvent(historyEvent); } }
public void notify(DelegateCaseExecution caseExecution) throws Exception { HistoryEvent historyEvent = createHistoryEvent(caseExecution); if (historyEvent != null) { Context.getProcessEngineConfiguration() .getHistoryEventHandler() .handleEvent(historyEvent); } }
public void notify(DelegateExecution execution) throws Exception { // get the event handler final HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration() .getHistoryEventHandler(); // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(execution); if(historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } }
public void notify(DelegateTask task) { // get the event handler final HistoryEventHandler historyEventHandler = Context.getProcessEngineConfiguration() .getHistoryEventHandler(); ExecutionEntity execution = ((TaskEntity) task).getExecution(); if (execution != null) { // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(task, execution); if(historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } } }