public abstract class JobInfoEntityManagerImpl<T extends JobInfoEntity,DM extends JobInfoDataManager<T>> extends AbstractJobServiceEngineEntityManager<T,DM> implements JobInfoEntityManager<T>
serviceConfigurationdataManager, engineType| Constructor and Description |
|---|
JobInfoEntityManagerImpl(JobServiceConfiguration jobServiceConfiguration,
DM jobDataManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkUpdateJobLockWithoutRevisionCheck(List<T> jobEntities,
String lockOwner,
Date lockExpirationTime) |
List<T> |
findExpiredJobs(List<String> enabledCategories,
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(List<String> enabledCategories,
Page page)
Returns
JobEntity that are eligible to be executed. |
void |
resetExpiredJob(String jobId)
Resets an expired job.
|
void |
updateJobTenantIdForDeployment(String deploymentId,
String newTenantId)
Changes the tenantId for all jobs related to a given DeploymentEntity.
|
createEntityEvent, deleteByteArrayRefgetClock, getEventDispatcher, getServiceConfigurationcreate, delete, delete, delete, findById, fireEntityDeletedEvent, fireEntityInsertedEvent, fireEntityUpdatedEvent, getDataManager, insert, insert, setDataManager, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindJobsToExecuteAndLockInBulkpublic JobInfoEntityManagerImpl(JobServiceConfiguration jobServiceConfiguration, DM jobDataManager)
public List<T> findJobsToExecute(List<String> enabledCategories, 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(List<String> enabledCategories, 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 bulkUpdateJobLockWithoutRevisionCheck(List<T> jobEntities, String lockOwner, Date lockExpirationTime)
bulkUpdateJobLockWithoutRevisionCheck in interface JobInfoEntityManager<T extends JobInfoEntity>public void updateJobTenantIdForDeployment(String deploymentId, String newTenantId)
JobInfoEntityManagerupdateJobTenantIdForDeployment in interface JobInfoEntityManager<T extends JobInfoEntity>Copyright © 2021 Flowable. All rights reserved.