Package org.activiti.engine.impl.cmd

Examples of org.activiti.engine.impl.cmd.ExecuteAsyncJobCmd


    try {
      executorService.submit(new DistributedExecuteJobRunnable(job));
    } catch (RejectedExecutionException e) {
      logger.info("Async job execution rejected. Executing job in calling thread.");
      // Execute in calling thread so the job executor can be freed
      commandExecutor.execute(new ExecuteAsyncJobCmd(job));
    }
  }
View Full Code Here


   
    @Override
    public void run() {
      CommandExecutor commandExecutor = ((ProcessEngineConfigurationImpl) ProcessEngines.getDefaultProcessEngine()
          .getProcessEngineConfiguration()).getCommandExecutor();
      commandExecutor.execute(new ExecuteAsyncJobCmd(job));
    }
View Full Code Here

    assertEquals(jobId, job.getId());

    assertEquals(0, tweetHandler.getMessages().size());

    commandExecutor.execute(new ExecuteAsyncJobCmd(job));

    assertEquals("i'm coding a test", tweetHandler.getMessages().get(0));
    assertEquals(1, tweetHandler.getMessages().size());
  }
View Full Code Here

      log.error("Error while locking exclusive job " + job.getId(), t);
      return;
    }
   
    try {
      commandExecutor.execute(new ExecuteAsyncJobCmd(job));
     
    } catch (final ActivitiOptimisticLockingException e) {
     
      handleFailedJob(e);
     
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.cmd.ExecuteAsyncJobCmd

Copyright © 2018 www.massapicom. 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.