public interface JobEntityManager extends EntityManager<JobEntity>
EntityManager
responsible for the JobEntity
class.Modifier and Type | Method and Description |
---|---|
List<JobEntity> |
findExpiredJobs(Page page)
|
long |
findJobCountByQueryCriteria(JobQueryImpl jobQuery)
Same as
findJobsByQueryCriteria(JobQueryImpl, Page) , but only returns a count and not the instances itself. |
List<JobEntity> |
findJobsByExecutionId(String executionId)
Returns all
JobEntity instances related to on ExecutionEntity . |
List<JobEntity> |
findJobsByProcessInstanceId(String processInstanceId)
Returns all
JobEntity instances related to one process instance ExecutionEntity . |
List<Job> |
findJobsByQueryCriteria(JobQueryImpl jobQuery,
Page page)
Executes a
JobQueryImpl and returns the matching JobEntity instances. |
List<JobEntity> |
findJobsToExecute(Page page)
Returns
JobEntity that are eligible to be executed. |
boolean |
insertJobEntity(JobEntity timerJobEntity)
Insert the
JobEntity , similar to #insert(JobEntity) , but returns a boolean in case the insert did not go through. |
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 . |
boolean insertJobEntity(JobEntity timerJobEntity)
List<JobEntity> findJobsToExecute(Page page)
JobEntity
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.List<JobEntity> findJobsByExecutionId(String executionId)
JobEntity
instances related to on ExecutionEntity
.List<JobEntity> findJobsByProcessInstanceId(String processInstanceId)
JobEntity
instances related to one process instance ExecutionEntity
.List<Job> findJobsByQueryCriteria(JobQueryImpl jobQuery, Page page)
JobQueryImpl
and returns the matching JobEntity
instances.long findJobCountByQueryCriteria(JobQueryImpl jobQuery)
findJobsByQueryCriteria(JobQueryImpl, Page)
, but only returns a count and not the instances itself.void resetExpiredJob(String jobId)
void updateJobTenantIdForDeployment(String deploymentId, String newTenantId)
DeploymentEntity
.Copyright © 2017 Flowable. All rights reserved.