public interface TimerJobEntityManager extends EntityManager<TimerJobEntity>
EntityManager responsible for TimerJobEntity instances.| Modifier and Type | Method and Description |
|---|---|
TimerJobEntity |
createAndCalculateNextTimer(JobEntity timerEntity,
VariableScope variableScope)
Creates a new
TimerJobEntity, typically when a timer is used in a
repeating way. |
long |
findJobCountByQueryCriteria(TimerJobQueryImpl jobQuery)
Same as
findJobsByQueryCriteria(TimerJobQueryImpl, Page), but only returns a count
and not the instances itself. |
List<TimerJobEntity> |
findJobsByExecutionId(String id)
Returns all
TimerJobEntity instances related to on ExecutionEntity. |
List<TimerJobEntity> |
findJobsByProcessInstanceId(String id)
Returns all
TimerJobEntity instances related to on ExecutionEntity. |
List<Job> |
findJobsByQueryCriteria(TimerJobQueryImpl jobQuery,
Page page)
Executes a
JobQueryImpl and returns the matching TimerJobEntity instances. |
List<TimerJobEntity> |
findJobsByTypeAndProcessDefinitionId(String type,
String processDefinitionId)
Returns the
TimerJobEntity for a given process definition. |
List<TimerJobEntity> |
findJobsByTypeAndProcessDefinitionKeyAndTenantId(String type,
String processDefinitionKey,
String tenantId)
The same as
findJobsByTypeAndProcessDefinitionId(String, String), but
by key and for a specific tenantId. |
List<TimerJobEntity> |
findJobsByTypeAndProcessDefinitionKeyNoTenantId(String type,
String processDefinitionKey)
The same as
findJobsByTypeAndProcessDefinitionId(String, String), but
by key and specifically for the 'no tenant' mode. |
List<TimerJobEntity> |
findTimerJobsToExecute(Page page)
Returns the
TimerJobEntity instances that are elegible to execute,
meaning the due date of the timer has been passed. |
boolean |
insertTimerJobEntity(TimerJobEntity timerJobEntity)
Insert the
TimerJobEntity, similar to #insert(TimerJobEntity),
but returns a boolean in case the insert did not go through. |
void |
updateJobTenantIdForDeployment(String deploymentId,
String newTenantId)
Changes the tenantId for all jobs related to a given
DeploymentEntity. |
boolean insertTimerJobEntity(TimerJobEntity timerJobEntity)
TimerJobEntity, similar to #insert(TimerJobEntity),
but returns a boolean in case the insert did not go through.
This could happen if the execution related to the TimerJobEntity
has been removed (for example due to a task complete for a timer boundary on that task).List<TimerJobEntity> findTimerJobsToExecute(Page page)
TimerJobEntity instances that are elegible to execute,
meaning the due date of the timer has been passed.List<TimerJobEntity> findJobsByTypeAndProcessDefinitionId(String type, String processDefinitionId)
TimerJobEntity for a given process definition.
This is for example used when deleting a process definition: it finds
the TimerJobEntity representing the timer start events.List<TimerJobEntity> findJobsByTypeAndProcessDefinitionKeyAndTenantId(String type, String processDefinitionKey, String tenantId)
findJobsByTypeAndProcessDefinitionId(String, String), but
by key and for a specific tenantId.List<TimerJobEntity> findJobsByTypeAndProcessDefinitionKeyNoTenantId(String type, String processDefinitionKey)
findJobsByTypeAndProcessDefinitionId(String, String), but
by key and specifically for the 'no tenant' mode.List<TimerJobEntity> findJobsByExecutionId(String id)
TimerJobEntity instances related to on ExecutionEntity.List<TimerJobEntity> findJobsByProcessInstanceId(String id)
TimerJobEntity instances related to on ExecutionEntity.List<Job> findJobsByQueryCriteria(TimerJobQueryImpl jobQuery, Page page)
JobQueryImpl and returns the matching TimerJobEntity instances.long findJobCountByQueryCriteria(TimerJobQueryImpl jobQuery)
findJobsByQueryCriteria(TimerJobQueryImpl, Page), but only returns a count
and not the instances itself.TimerJobEntity createAndCalculateNextTimer(JobEntity timerEntity, VariableScope variableScope)
TimerJobEntity, typically when a timer is used in a
repeating way. The returns TimerJobEntity is not yet inserted.
Returns null if the timer has finished its repetitions.void updateJobTenantIdForDeployment(String deploymentId, String newTenantId)
DeploymentEntity.Copyright © 2010–2018 Alfresco. All rights reserved.