Interface TimerJobEntityManager
-
- All Superinterfaces:
EntityManager<TimerJobEntity>
- All Known Implementing Classes:
TimerJobEntityManagerImpl
@Internal public interface TimerJobEntityManager extends EntityManager<TimerJobEntity>
EntityManagerresponsible forTimerJobEntityinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimerJobEntitycreateAndCalculateNextTimer(JobEntity timerEntity, VariableScope variableScope)Creates a newTimerJobEntity, typically when a timer is used in a repeating way.longfindJobCountByQueryCriteria(TimerJobQueryImpl jobQuery)Same asfindJobsByQueryCriteria(TimerJobQueryImpl, Page), but only returns a count and not the instances itself.java.util.List<TimerJobEntity>findJobsByExecutionId(java.lang.String id)Returns allTimerJobEntityinstances related to onExecutionEntity.java.util.List<TimerJobEntity>findJobsByProcessInstanceId(java.lang.String id)Returns allTimerJobEntityinstances related to onExecutionEntity.java.util.List<Job>findJobsByQueryCriteria(TimerJobQueryImpl jobQuery, Page page)Executes aJobQueryImpland returns the matchingTimerJobEntityinstances.java.util.List<TimerJobEntity>findJobsByTypeAndProcessDefinitionId(java.lang.String type, java.lang.String processDefinitionId)Returns theTimerJobEntityfor a given process definition.java.util.List<TimerJobEntity>findJobsByTypeAndProcessDefinitionKeyAndTenantId(java.lang.String type, java.lang.String processDefinitionKey, java.lang.String tenantId)The same asfindJobsByTypeAndProcessDefinitionId(String, String), but by key and for a specific tenantId.java.util.List<TimerJobEntity>findJobsByTypeAndProcessDefinitionKeyNoTenantId(java.lang.String type, java.lang.String processDefinitionKey)The same asfindJobsByTypeAndProcessDefinitionId(String, String), but by key and specifically for the 'no tenant' mode.java.util.List<TimerJobEntity>findTimerJobsToExecute(Page page)Returns theTimerJobEntityinstances that are elegible to execute, meaning the due date of the timer has been passed.booleaninsertTimerJobEntity(TimerJobEntity timerJobEntity)Insert theTimerJobEntity, similar to#insert(TimerJobEntity), but returns a boolean in case the insert did not go through.voidupdateJobTenantIdForDeployment(java.lang.String deploymentId, java.lang.String newTenantId)Changes the tenantId for all jobs related to a givenDeploymentEntity.
-
-
-
Method Detail
-
insertTimerJobEntity
boolean insertTimerJobEntity(TimerJobEntity timerJobEntity)
Insert theTimerJobEntity, similar to#insert(TimerJobEntity), but returns a boolean in case the insert did not go through. This could happen if the execution related to theTimerJobEntityhas been removed (for example due to a task complete for a timer boundary on that task).
-
findTimerJobsToExecute
java.util.List<TimerJobEntity> findTimerJobsToExecute(Page page)
Returns theTimerJobEntityinstances that are elegible to execute, meaning the due date of the timer has been passed.
-
findJobsByTypeAndProcessDefinitionId
java.util.List<TimerJobEntity> findJobsByTypeAndProcessDefinitionId(java.lang.String type, java.lang.String processDefinitionId)
Returns theTimerJobEntityfor a given process definition. This is for example used when deleting a process definition: it finds theTimerJobEntityrepresenting the timer start events.
-
findJobsByTypeAndProcessDefinitionKeyAndTenantId
java.util.List<TimerJobEntity> findJobsByTypeAndProcessDefinitionKeyAndTenantId(java.lang.String type, java.lang.String processDefinitionKey, java.lang.String tenantId)
The same asfindJobsByTypeAndProcessDefinitionId(String, String), but by key and for a specific tenantId.
-
findJobsByTypeAndProcessDefinitionKeyNoTenantId
java.util.List<TimerJobEntity> findJobsByTypeAndProcessDefinitionKeyNoTenantId(java.lang.String type, java.lang.String processDefinitionKey)
The same asfindJobsByTypeAndProcessDefinitionId(String, String), but by key and specifically for the 'no tenant' mode.
-
findJobsByExecutionId
java.util.List<TimerJobEntity> findJobsByExecutionId(java.lang.String id)
Returns allTimerJobEntityinstances related to onExecutionEntity.
-
findJobsByProcessInstanceId
java.util.List<TimerJobEntity> findJobsByProcessInstanceId(java.lang.String id)
Returns allTimerJobEntityinstances related to onExecutionEntity.
-
findJobsByQueryCriteria
java.util.List<Job> findJobsByQueryCriteria(TimerJobQueryImpl jobQuery, Page page)
Executes aJobQueryImpland returns the matchingTimerJobEntityinstances.
-
findJobCountByQueryCriteria
long findJobCountByQueryCriteria(TimerJobQueryImpl jobQuery)
Same asfindJobsByQueryCriteria(TimerJobQueryImpl, Page), but only returns a count and not the instances itself.
-
createAndCalculateNextTimer
TimerJobEntity createAndCalculateNextTimer(JobEntity timerEntity, VariableScope variableScope)
Creates a newTimerJobEntity, typically when a timer is used in a repeating way. The returnsTimerJobEntityis not yet inserted. Returns null if the timer has finished its repetitions.
-
updateJobTenantIdForDeployment
void updateJobTenantIdForDeployment(java.lang.String deploymentId, java.lang.String newTenantId)Changes the tenantId for all jobs related to a givenDeploymentEntity.
-
-