Examples of HistoryEventProducer


Examples of org.camunda.bpm.engine.impl.history.producer.HistoryEventProducer

    ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();

    int historyLevel = configuration.getHistoryLevel();
    if(historyLevel>=ProcessEngineConfigurationImpl.HISTORYLEVEL_AUDIT) {

      final HistoryEventProducer eventProducer = configuration.getHistoryEventProducer();
      final HistoryEventHandler eventHandler = configuration.getHistoryEventHandler();

      TaskEntity taskEntity = Context.getCommandContext()
          .getDbEntityManager()
          .selectById(TaskEntity.class, taskId);

      HistoryEvent evt = eventProducer.createTaskInstanceCompleteEvt(taskEntity, deleteReason);

      eventHandler.handleEvent(evt);
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.history.producer.HistoryEventProducer

    ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();

    int historyLevel = configuration.getHistoryLevel();
    if(historyLevel>=ProcessEngineConfigurationImpl.HISTORYLEVEL_AUDIT) {

      final HistoryEventProducer eventProducer = configuration.getHistoryEventProducer();
      final HistoryEventHandler eventHandler = configuration.getHistoryEventHandler();

      HistoryEvent evt = eventProducer.createTaskInstanceCreateEvt(task);
      eventHandler.handleEvent(evt);

    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.