Interface ExternalWorkerJobEntityManager
- All Superinterfaces:
EntityManager<ExternalWorkerJobEntity>
,JobInfoEntityManager<ExternalWorkerJobEntity>
- All Known Implementing Classes:
ExternalWorkerJobEntityManagerImpl
public interface ExternalWorkerJobEntityManager
extends EntityManager<ExternalWorkerJobEntity>, JobInfoEntityManager<ExternalWorkerJobEntity>
EntityManager
responsible for the ExternalWorkerJobEntity
class.- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionfindExternalJobsToExecute
(ExternalWorkerJobAcquireBuilderImpl builder, int numberOfJobs) findJobByCorrelationId
(String correlationId) Find the external worker job by the given correlationIdlong
Same asfindJobsByQueryCriteria(ExternalWorkerJobQueryImpl)
, but only returns a count and not the instances itself.Executes aExternalWorkerJobQueryImpl
and returns the matchingExternalWorkerJobEntity
instances.findJobsByScopeIdAndSubScopeId
(String scopeId, String subScopeId) Returns allExternalWorkerJobEntity
for the given scope and subscope.findJobsByWorkerId
(String workerId) Returns allExternalWorkerJobEntity
for the given worker id.findJobsByWorkerIdAndTenantId
(String workerId, String tenantId) Returns allExternalWorkerJobEntity
for the given worker and tenant id.boolean
insertExternalWorkerJobEntity
(ExternalWorkerJobEntity externalWorkerJobEntity) Insert theExternalWorkerJobEntity
, similar to insert(ExternalWorkerJobEntity), but returns a boolean in case the insert did not go through.Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.EntityManager
create, delete, delete, delete, findById, insert, insert, update, update
Methods inherited from interface org.flowable.job.service.impl.persistence.entity.JobInfoEntityManager
bulkUpdateJobLockWithoutRevisionCheck, findExpiredJobs, findJobsByExecutionId, findJobsByProcessInstanceId, findJobsToExecute, findJobsToExecuteAndLockInBulk, resetExpiredJob, updateJobTenantIdForDeployment
-
Method Details
-
insertExternalWorkerJobEntity
Insert theExternalWorkerJobEntity
, similar to insert(ExternalWorkerJobEntity), but returns a boolean in case the insert did not go through. This could happen if the execution related to theExternalWorkerJobEntity
has been removed. -
findJobByCorrelationId
Find the external worker job by the given correlationId -
findJobsByScopeIdAndSubScopeId
Returns allExternalWorkerJobEntity
for the given scope and subscope. -
findJobsByWorkerId
Returns allExternalWorkerJobEntity
for the given worker id. -
findJobsByWorkerIdAndTenantId
Returns allExternalWorkerJobEntity
for the given worker and tenant id. -
findJobsByQueryCriteria
Executes aExternalWorkerJobQueryImpl
and returns the matchingExternalWorkerJobEntity
instances.- Returns:
-
findJobCountByQueryCriteria
Same asfindJobsByQueryCriteria(ExternalWorkerJobQueryImpl)
, but only returns a count and not the instances itself. -
findExternalJobsToExecute
List<ExternalWorkerJobEntity> findExternalJobsToExecute(ExternalWorkerJobAcquireBuilderImpl builder, int numberOfJobs)
-