Interface JobEntityManager

    • Method Detail

      • insertJobEntity

        boolean insertJobEntity​(JobEntity timerJobEntity)
        Insert the JobEntity, similar to #insert(JobEntity), but returns a boolean in case the insert did not go through. This could happen if the execution related to the JobEntity has been removed.
      • findJobsByExecutionId

        java.util.List<JobEntity> findJobsByExecutionId​(java.lang.String executionId)
        Returns all JobEntity instances related to on ExecutionEntity.
      • findJobsByTypeAndProcessDefinitionId

        java.util.List<JobEntity> findJobsByTypeAndProcessDefinitionId​(java.lang.String jobTypeTimer,
                                                                       java.lang.String id)
        Returns all JobEntity instances related to on ProcessDefinitionEntity.
      • findJobsByProcessInstanceId

        java.util.List<JobEntity> findJobsByProcessInstanceId​(java.lang.String processInstanceId)
        Returns all JobEntity instances related to one process instance ExecutionEntity.
      • findExpiredJobs

        java.util.List<JobEntity> findExpiredJobs​(Page page)
        Returns all JobEntity instance which are expired, which means that the lock time of the JobEntity is past a certain configurable date and is deemed to be in error.
      • resetExpiredJob

        void resetExpiredJob​(java.lang.String jobId)
        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

        void updateJobTenantIdForDeployment​(java.lang.String deploymentId,
                                            java.lang.String newTenantId)
        Changes the tenantId for all jobs related to a given DeploymentEntity.