Interface JobEntityManager
- All Superinterfaces:
EntityManager<JobEntity>
- All Known Implementing Classes:
JobEntityManagerImpl
EntityManager responsible for the JobEntity class.-
Method Summary
Modifier and TypeMethodDescriptionfindExpiredJobs(Page page) longfindJobCountByQueryCriteria(JobQueryImpl jobQuery) Same asfindJobsByQueryCriteria(JobQueryImpl, Page), but only returns a count and not the instances itself.findJobsByExecutionId(String executionId) Returns allJobEntityinstances related to onExecutionEntity.findJobsByProcessDefinitionId(String processDefinitionId) Returns allJobEntityinstances related to onProcessDefinitionEntity.findJobsByProcessInstanceId(String processInstanceId) Returns allJobEntityinstances related to one process instanceExecutionEntity.findJobsByQueryCriteria(JobQueryImpl jobQuery, Page page) Executes aJobQueryImpland returns the matchingJobEntityinstances.findJobsByTypeAndProcessDefinitionId(String jobTypeTimer, String id) Returns allJobEntityinstances related to onProcessDefinitionEntity.findJobsToExecute(Page page) ReturnsJobEntitythat are eligble to be executed.booleaninsertJobEntity(JobEntity timerJobEntity) Insert theJobEntity, similar to#insert(JobEntity), but returns a boolean in case the insert did not go through.voidresetExpiredJob(String jobId) Resets an expired job.voidupdateJobTenantIdForDeployment(String deploymentId, String newTenantId) Changes the tenantId for all jobs related to a givenDeploymentEntity.
-
Method Details
-
insertJobEntity
-
findJobsToExecute
ReturnsJobEntitythat are eligble to be executed. For example used by the defaultAcquireJobsCmdcommand used by the defaultAcquireTimerJobsRunnableimplementation to get async jobs that can be executed. -
findJobsByExecutionId
Returns allJobEntityinstances related to onExecutionEntity. -
findJobsByProcessDefinitionId
Returns allJobEntityinstances related to onProcessDefinitionEntity. -
findJobsByTypeAndProcessDefinitionId
Returns allJobEntityinstances related to onProcessDefinitionEntity. -
findJobsByProcessInstanceId
Returns allJobEntityinstances related to one process instanceExecutionEntity. -
findExpiredJobs
-
findJobsByQueryCriteria
Executes aJobQueryImpland returns the matchingJobEntityinstances. -
findJobCountByQueryCriteria
Same asfindJobsByQueryCriteria(JobQueryImpl, Page), but only returns a count and not the instances itself. -
resetExpiredJob
Resets an expired job. These are jobs that were locked, but not completed. Resetting these will make them available for being picked up by other executors. -
updateJobTenantIdForDeployment
Changes the tenantId for all jobs related to a givenDeploymentEntity.
-