Codota Logo
DbHistoryEventHandler.getDbEntityManager
Code IndexAdd Codota to your IDE (free)

How to use
getDbEntityManager
method
in
org.camunda.bpm.engine.impl.history.handler.DbHistoryEventHandler

Best Java code snippets using org.camunda.bpm.engine.impl.history.handler.DbHistoryEventHandler.getDbEntityManager (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

 /** general history event insert behavior */
 protected void insertOrUpdate(HistoryEvent historyEvent) {

  final DbEntityManager dbEntityManager = getDbEntityManager();

  if(isInitialEvent(historyEvent)) {
   dbEntityManager.insert(historyEvent);
  } else {
   if(dbEntityManager.getCachedEntity(historyEvent.getClass(), historyEvent.getId()) == null) {
    if (historyEvent instanceof HistoricScopeInstanceEvent) {
     // if this is a scope, get start time from existing event in DB
     HistoricScopeInstanceEvent existingEvent = (HistoricScopeInstanceEvent) dbEntityManager.selectById(historyEvent.getClass(), historyEvent.getId());
     if(existingEvent != null) {
      HistoricScopeInstanceEvent historicScopeInstanceEvent = (HistoricScopeInstanceEvent) historyEvent;
      historicScopeInstanceEvent.setStartTime(existingEvent.getStartTime());
     }
    }
    if(historyEvent.getId() == null) {
//          dbSqlSession.insert(historyEvent);
    } else {
     dbEntityManager.merge(historyEvent);
    }
   }
  }
 }

origin: camunda/camunda-bpm-platform

 /** general history event insert behavior */
 protected void insertOrUpdate(HistoryEvent historyEvent) {

  final DbEntityManager dbEntityManager = getDbEntityManager();

  if(isInitialEvent(historyEvent)) {
   dbEntityManager.insert(historyEvent);
  } else {
   if(dbEntityManager.getCachedEntity(historyEvent.getClass(), historyEvent.getId()) == null) {
    if (historyEvent instanceof HistoricScopeInstanceEvent) {
     // if this is a scope, get start time from existing event in DB
     HistoricScopeInstanceEvent existingEvent = (HistoricScopeInstanceEvent) dbEntityManager.selectById(historyEvent.getClass(), historyEvent.getId());
     if(existingEvent != null) {
      HistoricScopeInstanceEvent historicScopeInstanceEvent = (HistoricScopeInstanceEvent) historyEvent;
      historicScopeInstanceEvent.setStartTime(existingEvent.getStartTime());
     }
    }
    if(historyEvent.getId() == null) {
//          dbSqlSession.insert(historyEvent);
    } else {
     dbEntityManager.merge(historyEvent);
    }
   }
  }
 }

origin: camunda/camunda-bpm-platform

DbEntityManager dbEntityManager = getDbEntityManager();
origin: camunda/camunda-bpm-platform

DbEntityManager dbEntityManager = getDbEntityManager();
origin: org.camunda.bpm/camunda-engine

 /** general history event insert behavior */
 protected void insertOrUpdate(HistoryEvent historyEvent) {

  final DbEntityManager dbEntityManager = getDbEntityManager();

  if(isInitialEvent(historyEvent)) {
   dbEntityManager.insert(historyEvent);
  } else {
   if(dbEntityManager.getCachedEntity(historyEvent.getClass(), historyEvent.getId()) == null) {
    if (historyEvent instanceof HistoricScopeInstanceEvent) {
     // if this is a scope, get start time from existing event in DB
     HistoricScopeInstanceEvent existingEvent = (HistoricScopeInstanceEvent) dbEntityManager.selectById(historyEvent.getClass(), historyEvent.getId());
     if(existingEvent != null) {
      HistoricScopeInstanceEvent historicScopeInstanceEvent = (HistoricScopeInstanceEvent) historyEvent;
      historicScopeInstanceEvent.setStartTime(existingEvent.getStartTime());
     }
    }
    if(historyEvent.getId() == null) {
//          dbSqlSession.insert(historyEvent);
    } else {
     dbEntityManager.merge(historyEvent);
    }
   }
  }
 }

origin: org.camunda.bpm/camunda-engine

DbEntityManager dbEntityManager = getDbEntityManager();
org.camunda.bpm.engine.impl.history.handlerDbHistoryEventHandlergetDbEntityManager

Popular methods of DbHistoryEventHandler

  • <init>
  • handleEvent
  • isInitialEvent
  • insertHistoricDecisionEvaluationEvent
  • insertHistoricVariableUpdateEntity
    customized insert behavior for HistoricVariableUpdateEventEntity
  • insertOrUpdate
    general history event insert behavior
  • shouldWriteHistoricDetail

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ImageIO (javax.imageio)
  • JList (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now