Search in sources :

Example 1 with CmmnHistoryEventProducer

use of org.camunda.bpm.engine.impl.history.producer.CmmnHistoryEventProducer in project camunda-bpm-platform by camunda.

the class CaseExecutionEntity method fireHistoricCaseActivityInstanceUpdate.

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);
    }
}
Also used : HistoryEventHandler(org.camunda.bpm.engine.impl.history.handler.HistoryEventHandler) HistoryLevel(org.camunda.bpm.engine.impl.history.HistoryLevel) CmmnHistoryEventProducer(org.camunda.bpm.engine.impl.history.producer.CmmnHistoryEventProducer) HistoryEvent(org.camunda.bpm.engine.impl.history.event.HistoryEvent) ProcessEngineConfigurationImpl(org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl)

Aggregations

ProcessEngineConfigurationImpl (org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl)1 HistoryLevel (org.camunda.bpm.engine.impl.history.HistoryLevel)1 HistoryEvent (org.camunda.bpm.engine.impl.history.event.HistoryEvent)1 HistoryEventHandler (org.camunda.bpm.engine.impl.history.handler.HistoryEventHandler)1 CmmnHistoryEventProducer (org.camunda.bpm.engine.impl.history.producer.CmmnHistoryEventProducer)1