Codota Logo
StandaloneTransactionContext
Code IndexAdd Codota to your IDE (free)

How to use
StandaloneTransactionContext
in
org.camunda.bpm.engine.impl.cfg.standalone

Best Java code snippets using org.camunda.bpm.engine.impl.cfg.standalone.StandaloneTransactionContext (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

public void commit() {
 LOG.debugTransactionOperation("firing event committing...");
 fireTransactionEvent(TransactionState.COMMITTING);
 LOG.debugTransactionOperation("committing the persistence session...");
 getPersistenceProvider().commit();
 LOG.debugTransactionOperation("firing event committed...");
 fireTransactionEvent(TransactionState.COMMITTED);
}
origin: camunda/camunda-bpm-platform

 public TransactionContext openTransactionContext(CommandContext commandContext) {
  return new StandaloneTransactionContext(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

protected void fireTransactionEvent(TransactionState transactionState) {
 this.setLastTransactionState(transactionState);
 if (stateTransactionListeners==null) {
  return;
 }
 List<TransactionListener> transactionListeners = stateTransactionListeners.get(transactionState);
 if (transactionListeners==null) {
  return;
 }
 for (TransactionListener transactionListener: transactionListeners) {
  transactionListener.execute(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

protected void fireTransactionEventAsync(final TransactionState transactionState) {
 super.fireTransactionEvent(transactionState);
}
origin: net.oneandone/ejb-cdi-unit

  @Override
  public boolean isTransactionActive() {
    try {
      return super.isTransactionActive()
          && testTransaction.getStatus() != Status.STATUS_NO_TRANSACTION;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
}
origin: net.oneandone/ejb-cdi-unit

@Override
public void commit() {
  logger.trace("********* Commit context for {}", Thread.currentThread().getName());
  super.commit();
  try {
    new SimulatedTransactionManager().pop();
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}
origin: net.oneandone/ejb-cdi-unit

@Override
public void rollback() {
  logger.trace("******* Rollback context for {}", Thread.currentThread().getName());
  super.rollback();
  try {
    new SimulatedTransactionManager().setRollbackOnly(false);
    new SimulatedTransactionManager().pop();
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}
origin: org.camunda.bpm/camunda-engine

protected void fireTransactionEventAsync(final TransactionState transactionState) {
 super.fireTransactionEvent(transactionState);
}
origin: camunda/camunda-bpm-platform

public void commit() {
 LOG.debugTransactionOperation("firing event committing...");
 fireTransactionEvent(TransactionState.COMMITTING);
 LOG.debugTransactionOperation("committing the persistence session...");
 getPersistenceProvider().commit();
 LOG.debugTransactionOperation("firing event committed...");
 fireTransactionEvent(TransactionState.COMMITTED);
}
origin: camunda/camunda-bpm-platform

 public TransactionContext openTransactionContext(CommandContext commandContext) {
  return new StandaloneTransactionContext(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

protected void fireTransactionEvent(TransactionState transactionState) {
 this.setLastTransactionState(transactionState);
 if (stateTransactionListeners==null) {
  return;
 }
 List<TransactionListener> transactionListeners = stateTransactionListeners.get(transactionState);
 if (transactionListeners==null) {
  return;
 }
 for (TransactionListener transactionListener: transactionListeners) {
  transactionListener.execute(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

public void rollback() {
 try {
  try {
   LOG.debugTransactionOperation("firing event rollback...");
   fireTransactionEvent(TransactionState.ROLLINGBACK);
  }
  catch (Throwable exception) {
   LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception);
   Context.getCommandInvocationContext().trySetThrowable(exception);
  }
  finally {
   LOG.debugTransactionOperation("rolling back the persistence session...");
   getPersistenceProvider().rollback();
  }
 }
 catch (Throwable exception) {
  LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception);
  Context.getCommandInvocationContext().trySetThrowable(exception);
 }
 finally {
  LOG.debugFiringEventRolledBack();
  fireTransactionEvent(TransactionState.ROLLED_BACK);
 }
}
origin: org.camunda.bpm/camunda-engine

 public TransactionContext openTransactionContext(CommandContext commandContext) {
  return new StandaloneTransactionContext(commandContext);
 }
}
origin: org.camunda.bpm/camunda-engine

protected void fireTransactionEvent(TransactionState transactionState) {
 this.setLastTransactionState(transactionState);
 if (stateTransactionListeners==null) {
  return;
 }
 List<TransactionListener> transactionListeners = stateTransactionListeners.get(transactionState);
 if (transactionListeners==null) {
  return;
 }
 for (TransactionListener transactionListener: transactionListeners) {
  transactionListener.execute(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

public void rollback() {
 try {
  try {
   LOG.debugTransactionOperation("firing event rollback...");
   fireTransactionEvent(TransactionState.ROLLINGBACK);
  }
  catch (Throwable exception) {
   LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception);
   Context.getCommandInvocationContext().trySetThrowable(exception);
  }
  finally {
   LOG.debugTransactionOperation("rolling back the persistence session...");
   getPersistenceProvider().rollback();
  }
 }
 catch (Throwable exception) {
  LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception);
  Context.getCommandInvocationContext().trySetThrowable(exception);
 }
 finally {
  LOG.debugFiringEventRolledBack();
  fireTransactionEvent(TransactionState.ROLLED_BACK);
 }
}
origin: org.camunda.bpm/camunda-engine

public void commit() {
 LOG.debugTransactionOperation("firing event committing...");
 fireTransactionEvent(TransactionState.COMMITTING);
 LOG.debugTransactionOperation("committing the persistence session...");
 getPersistenceProvider().commit();
 LOG.debugTransactionOperation("firing event committed...");
 fireTransactionEvent(TransactionState.COMMITTED);
}
origin: org.camunda.bpm/camunda-engine

public void rollback() {
 try {
  try {
   LOG.debugTransactionOperation("firing event rollback...");
   fireTransactionEvent(TransactionState.ROLLINGBACK);
  }
  catch (Throwable exception) {
   LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception);
   Context.getCommandInvocationContext().trySetThrowable(exception);
  }
  finally {
   LOG.debugTransactionOperation("rolling back the persistence session...");
   getPersistenceProvider().rollback();
  }
 }
 catch (Throwable exception) {
  LOG.exceptionWhileFiringEvent(TransactionState.ROLLINGBACK, exception);
  Context.getCommandInvocationContext().trySetThrowable(exception);
 }
 finally {
  LOG.debugFiringEventRolledBack();
  fireTransactionEvent(TransactionState.ROLLED_BACK);
 }
}
org.camunda.bpm.engine.impl.cfg.standaloneStandaloneTransactionContext

Most used methods

  • fireTransactionEvent
  • <init>
  • getPersistenceProvider
  • setLastTransactionState
  • commit
  • isTransactionActive
  • rollback

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFileChooser (javax.swing)
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