congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.camunda.bpm.engine.impl.cfg.standalone
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: camunda/camunda-bpm-platform

protected void initTransactionContextFactory() {
 if (transactionContextFactory == null) {
  transactionContextFactory = new StandaloneTransactionContextFactory();
 }
}
origin: camunda/camunda-bpm-platform

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

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

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: 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: 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

protected void initTransactionContextFactory() {
 if (transactionContextFactory == null) {
  transactionContextFactory = new StandaloneTransactionContextFactory();
 }
}
origin: org.camunda.bpm/camunda-engine

protected void fireTransactionEventAsync(final TransactionState transactionState) {
 super.fireTransactionEvent(transactionState);
}
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: camunda/camunda-bpm-platform

protected void initDbSchemaOperationsCommandContextFactory() {
 if(dbSchemaOperationsCommandContextFactory == null) {
  TxContextCommandContextFactory cmdContextFactory = new TxContextCommandContextFactory();
  cmdContextFactory.setProcessEngineConfiguration(this);
  cmdContextFactory.setTransactionContextFactory(new StandaloneTransactionContextFactory());
  dbSchemaOperationsCommandContextFactory = cmdContextFactory;
 }
}
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: camunda/camunda-bpm-platform

protected void initDbSchemaOperationsCommandContextFactory() {
 if(dbSchemaOperationsCommandContextFactory == null) {
  TxContextCommandContextFactory cmdContextFactory = new TxContextCommandContextFactory();
  cmdContextFactory.setProcessEngineConfiguration(this);
  cmdContextFactory.setTransactionContextFactory(new StandaloneTransactionContextFactory());
  dbSchemaOperationsCommandContextFactory = cmdContextFactory;
 }
}
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

protected void initTransactionContextFactory() {
 if (transactionContextFactory == null) {
  transactionContextFactory = new StandaloneTransactionContextFactory();
 }
}
origin: org.camunda.bpm/camunda-engine

protected void initDbSchemaOperationsCommandContextFactory() {
 if(dbSchemaOperationsCommandContextFactory == null) {
  TxContextCommandContextFactory cmdContextFactory = new TxContextCommandContextFactory();
  cmdContextFactory.setProcessEngineConfiguration(this);
  cmdContextFactory.setTransactionContextFactory(new StandaloneTransactionContextFactory());
  dbSchemaOperationsCommandContextFactory = cmdContextFactory;
 }
}
org.camunda.bpm.engine.impl.cfg.standalone

Most used classes

  • StandaloneTransactionContext
  • StandaloneTransactionContextFactory
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now