public abstract class JobInfoEntityManagerImpl<T extends JobInfoEntity> extends AbstractEntityManager<T> implements JobInfoEntityManager<T>
| Modifier and Type | Field and Description |
|---|---|
protected JobInfoDataManager<T> |
jobDataManager |
jobServiceConfiguration| Constructor and Description |
|---|
JobInfoEntityManagerImpl(JobServiceConfiguration jobServiceConfiguration,
JobInfoDataManager<T> jobDataManager) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
findExpiredJobs(Page page)
|
List<T> |
findJobsByExecutionId(String executionId)
Returns all
JobEntity instances related to on ExecutionEntity. |
List<T> |
findJobsByProcessInstanceId(String processInstanceId)
Returns all
JobEntity instances related to one process instance ExecutionEntity. |
List<T> |
findJobsToExecute(Page page)
Returns
JobEntity that are eligible to be executed. |
protected DataManager<T> |
getDataManager() |
JobInfoDataManager<T> |
getJobDataManager() |
void |
resetExpiredJob(String jobId)
Resets an expired job.
|
void |
setJobDataManager(JobInfoDataManager<T> jobDataManager) |
void |
updateJobTenantIdForDeployment(String deploymentId,
String newTenantId)
Changes the tenantId for all jobs related to a given DeploymentEntity.
|
create, delete, delete, delete, deleteByteArrayRef, findById, insert, insert, update, updategetClock, getCommandContext, getEventDispatcher, getJobServiceConfiguration, getSessionprotected JobInfoDataManager<T extends JobInfoEntity> jobDataManager
public JobInfoEntityManagerImpl(JobServiceConfiguration jobServiceConfiguration, JobInfoDataManager<T> jobDataManager)
protected DataManager<T> getDataManager()
getDataManager in class AbstractEntityManager<T extends JobInfoEntity>public List<T> findJobsToExecute(Page page)
JobInfoEntityManagerJobEntity that are eligible to be executed.
For example used by the default AcquireJobsCmd command used by the default AcquireTimerJobsRunnable implementation to get async jobs that can be executed.findJobsToExecute in interface JobInfoEntityManager<T extends JobInfoEntity>public List<T> findJobsByExecutionId(String executionId)
JobInfoEntityManagerJobEntity instances related to on ExecutionEntity.findJobsByExecutionId in interface JobInfoEntityManager<T extends JobInfoEntity>public List<T> findJobsByProcessInstanceId(String processInstanceId)
JobInfoEntityManagerJobEntity instances related to one process instance ExecutionEntity.findJobsByProcessInstanceId in interface JobInfoEntityManager<T extends JobInfoEntity>public List<T> findExpiredJobs(Page page)
JobInfoEntityManagerJobEntity instance which are expired, which means that the lock time of the JobEntity is past a certain configurable date and is deemed to be in error.findExpiredJobs in interface JobInfoEntityManager<T extends JobInfoEntity>public void resetExpiredJob(String jobId)
JobInfoEntityManagerresetExpiredJob in interface JobInfoEntityManager<T extends JobInfoEntity>public void updateJobTenantIdForDeployment(String deploymentId, String newTenantId)
JobInfoEntityManagerupdateJobTenantIdForDeployment in interface JobInfoEntityManager<T extends JobInfoEntity>public JobInfoDataManager<T> getJobDataManager()
public void setJobDataManager(JobInfoDataManager<T> jobDataManager)
Copyright © 2018 Flowable. All rights reserved.