Package org.activiti.engine.impl.asyncexecutor

Examples of org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable


          } catch (InterruptedException e1) {
            // Do nothing, this can happen when shutting down
          }
         
          if (job != null) {
            executorService.execute(new ExecuteAsyncRunnable(job, commandExecutor));
          }
        }
      }
     
    });
View Full Code Here


  private static Logger log = LoggerFactory.getLogger(SpringCallerRunsRejectedJobsHandler.class);

  public void jobRejected(AsyncExecutor asyncExecutor, JobEntity job) {
    try {
      // execute rejected work in caller thread (potentially blocking job acquisition)
      new ExecuteAsyncRunnable(job, asyncExecutor.getCommandExecutor()).run();
    } catch (Exception e) {
      log.error("Failed to execute rejected job " + job.getId(), e);
    }
  }
View Full Code Here

  }

  @Override
  public void executeAsyncJob(JobEntity job) {
    try {
      taskExecutor.execute(new ExecuteAsyncRunnable(job, commandExecutor));
    } catch (RejectedExecutionException e) {
      rejectedJobsHandler.jobRejected(this, job);
    }
  }
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable

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.