Examples of CommandExecutorImpl


Examples of com.founder.fix.fixflow.core.impl.interceptor.CommandExecutorImpl

  }

  protected void initCommandExecutors() {

    CommandContextInterceptor commandContextInterceptor = new CommandContextInterceptor(commandContextFactory, this);
    commandContextInterceptor.setNext(new CommandExecutorImpl());
    this.commandExecutor = commandContextInterceptor;
  }
View Full Code Here

Examples of org.activiti.engine.impl.cfg.CommandExecutorImpl

  }
 
  @Deployment(resources={"org/activiti/engine/test/concurrency/CompetingSignalsTest.testCompetingSignals.bpmn20.xml"})
  public void testCompetingSignalsWithRetry() throws Exception {
    RuntimeServiceImpl runtimeServiceImpl = (RuntimeServiceImpl)runtimeService;       
    CommandExecutorImpl before = (CommandExecutorImpl) runtimeServiceImpl.getCommandExecutor();
    try {
      CommandInterceptor retryInterceptor = new RetryInterceptor();
      retryInterceptor.setNext(before.getFirst());

      runtimeServiceImpl.setCommandExecutor(new CommandExecutorImpl(before.getDefaultConfig(), retryInterceptor));
     
      ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("CompetingSignalsProcess");
      String processInstanceId = processInstance.getId();
 
      log.debug("test thread starts thread one");
View Full Code Here

Examples of org.activiti.engine.impl.interceptor.CommandExecutorImpl

    }
  }

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

Examples of org.activiti.engine.impl.interceptor.CommandExecutorImpl

    initCommandInterceptorsTxRequiresNew();
    initCommandExecutorTxRequiresNew();
  }

  protected void initActualCommandExecutor() {
    actualCommandExecutor = new CommandExecutorImpl();
  }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.impl.command.CommandExecutorImpl

            };
            commands.add(command);
        }

        // execute the commands
        final CommandExecutor commandExecutor = new CommandExecutorImpl();
        ExecutorService executorService = Executors.newFixedThreadPool(numOfConcurrentThreads);
        final List<String> revisionIds = new LinkedList<String>();
        for (int i = 0; i < numOfConcurrentThreads; ++i) {
            final CommitCommandMongo command = commands.get(i);
            Runnable runnable = new Runnable() {

                @Override
                public void run() {
                    try {
                        String revisionId = commandExecutor.execute(command);
                        revisionIds.add(revisionId);
                    } catch (Exception e) {
                        revisionIds.add(null);
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.impl.command.CommandExecutorImpl

     *
     * @param mongoConnection The {@link MongoConnection}.
     */
    public NodeStoreMongo(MongoConnection mongoConnection) {
        this.mongoConnection = mongoConnection;
        commandExecutor = new CommandExecutorImpl();
    }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.impl.command.CommandExecutorImpl

    private final MongoConnection mongoConnection;
    private final CommandExecutor commandExecutor;

    public BlobStoreMongo(MongoConnection mongoConnection) {
        this.mongoConnection = mongoConnection;
        this.commandExecutor = new CommandExecutorImpl();
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl

    }
  }

  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.interceptor.CommandExecutorImpl

    initCommandExecutorTxRequiresNew();
    initCommandExecutorDbSchemaOperations();
  }

  protected void initActualCommandExecutor() {
    actualCommandExecutor = new CommandExecutorImpl();
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl

    initCommandExecutorTxRequiresNew();
    initCommandExecutorDbSchemaOperations();
  }

  protected void initActualCommandExecutor() {
    actualCommandExecutor = new CommandExecutorImpl();
  }
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.