Interface TimerJobEntityManager

    • Method Detail

      • insertTimerJobEntity

        boolean insertTimerJobEntity​(TimerJobEntity timerJobEntity)
        Insert the 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).
      • findTimerJobsToExecute

        java.util.List<TimerJobEntity> findTimerJobsToExecute​(Page page)
        Returns the TimerJobEntity instances 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 the 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.
      • findJobsByTypeAndProcessDefinitionKeyAndTenantId

        java.util.List<TimerJobEntity> findJobsByTypeAndProcessDefinitionKeyAndTenantId​(java.lang.String type,
                                                                                        java.lang.String processDefinitionKey,
                                                                                        java.lang.String tenantId)
        The same as findJobsByTypeAndProcessDefinitionId(String, String), but by key and for a specific tenantId.
      • updateJobTenantIdForDeployment

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