Examples of execute()


Examples of org.camunda.bpm.engine.impl.interceptor.CommandExecutor.execute()

  @Deployment
  public void testParseDiagramInterchangeElements() {

    // Graphical information is not yet exposed publicly, so we need to do some plumbing
    CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutorTxRequired();
    ProcessDefinitionEntity processDefinitionEntity = commandExecutor.execute(new Command<ProcessDefinitionEntity>() {
      public ProcessDefinitionEntity execute(CommandContext commandContext) {
        return Context
          .getProcessEngineConfiguration()
          .getDeploymentCache()
          .findDeployedLatestProcessDefinitionByKey("myProcess");
View Full Code Here

Examples of org.camunda.bpm.engine.impl.interceptor.RetryInterceptor.execute()

  public void testRetryInterceptor() {
    RetryInterceptor retryInterceptor = new RetryInterceptor();
    retryInterceptor.setNext(new CommandExecutorImpl());
    try {
      retryInterceptor.execute(new CommandThrowingOptimisticLockingException());
      fail("ProcessEngineException expected.");
    }catch (ProcessEngineException e) {
      assertTrue(e.getMessage().contains(retryInterceptor.getNumOfRetries()+" retries failed"));
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.jobexecutor.JobHandler.execute()

    }

    Map<String, JobHandler> jobHandlers = Context.getProcessEngineConfiguration().getJobHandlers();
    JobHandler jobHandler = jobHandlers.get(jobHandlerType);

    jobHandler.execute(jobHandlerConfiguration, execution, commandContext);
  }

  public void insert() {
    DbEntityManager dbEntityManger = Context
      .getCommandContext()
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.deploy.DeleteDeploymentFailListener.execute()

    } finally {
      try {
        commandContext.getTransactionContext().addTransactionListener(TransactionState.ROLLED_BACK, listener);
      } catch (Exception e) {
        log.log(Level.FINE, "Could not register transaction synchronization. Probably the TX has already been rolled back by application code.", e);
        listener.execute(commandContext);
      }
    }


    return null;
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.deploy.DeploymentFailListener.execute()

      try {
        commandContext.getTransactionContext().addTransactionListener(TransactionState.ROLLED_BACK, listener);
      } catch (Exception e) {
        log.log(Level.FINE, "Could not register transaction synchronization. Probably the TX has already been rolled back by application code.", e);
        listener.execute(commandContext);
      }
    }
  }
}
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.JobEntity.execute()

    if (jobExecutorContext != null) { // if null, then we are not called by the job executor
      jobExecutorContext.setCurrentJob(job);
    }

    try {
      job.execute(commandContext);
      return null;

    } catch (RuntimeException exception) {
      log.warning("Exception while excuting job '" + job + "': " + exception.getMessage());
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.delegate.ActivityBehavior.execute()

  // Activity Behavior
  public void execute(ActivityExecution execution) throws Exception {

    ActivityBehavior activityBehaviorInstance = getActivityBehaviorInstance(execution);
    try {
      activityBehaviorInstance.execute(execution);
    } catch (BpmnError error) {
      ErrorPropagation.propagateError(error, execution);
    } catch (Exception ex) {
      ErrorPropagation.propagateException(ex, execution);
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute()

  protected Object executeScript(final ExecutableScript script) {
    final ScriptingEnvironment scriptingEnvironment = processEngineConfiguration.getScriptingEnvironment();
    return processEngineConfiguration.getCommandExecutorTxRequired()
      .execute(new Command<Object>() {
        public Object execute(CommandContext commandContext) {
          return scriptingEnvironment.execute(script, null);
        }
      });
  }

}
View Full Code Here

Examples of org.camunda.bpm.qa.performance.engine.framework.aggregate.SqlStatementCountAggregator.execute()

    if(!reportsFolderFile.exists()) {
      reportsFolderFile.mkdir();
    }

    SqlStatementCountAggregator aggregator = new SqlStatementCountAggregator(resultsFolder);
    TabularResultSet aggregatedResults = aggregator.execute();

    // write Json report
    JsonUtil.writeObjectToFile(jsonReportPath, aggregatedResults);
    // write CSV Report
    CsvUtil.saveResultSetToFile(csvReportPath, aggregatedResults);
View Full Code Here

Examples of org.camunda.bpm.qa.performance.engine.framework.report.HtmlReportBuilder.execute()

      .resultDetailsFolder(".."+File.separatorChar+"results"+File.separatorChar)
      .createImageLinks(true)
      .jsonSource(jsonReportFilename)
      .csvSource(csvReportFilename);

    String report = reportWriter.execute();
    FileUtil.writeStringToFile(report, htmlReportFilename);

    // write CSV report
    CsvUtil.saveResultSetToFile(csvReportPath, aggregatedResults);
  }
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.