Package org.activiti.engine.impl.asyncexecutor

Examples of org.activiti.engine.impl.asyncexecutor.AcquiredJobEntities.addJob()


      .getJobEntityManager()
      .findAsyncJobsDueToExecute(new Page(0, asyncExecutor.getMaxAsyncJobsDuePerAcquisition()));
   
    for (JobEntity job: jobs) {
      lockJob(commandContext, job, asyncExecutor.getAsyncJobLockTimeInMillis());
      acquiredJobs.addJob(job);
      asyncExecutor.executeAsyncJob(job);
    }
   
    return acquiredJobs;
  }
View Full Code Here


      .findNextTimerJobsToExecute(new Page(0, maxJobsPerAcquisition));

    for (JobEntity job: jobs) {
      if (job != null && !acquiredJobs.contains(job.getId())) {
        lockJob(commandContext, job, lockOwner, lockTimeInMillis);
        acquiredJobs.addJob(job);
      }
    }

    return acquiredJobs;
  }
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.