Class JobQueryImpl

    • Field Detail

      • activityId

        protected java.lang.String activityId
      • id

        protected java.lang.String id
      • ids

        protected java.util.Set<java.lang.String> ids
      • jobDefinitionId

        protected java.lang.String jobDefinitionId
      • processInstanceId

        protected java.lang.String processInstanceId
      • processInstanceIds

        protected java.util.Set<java.lang.String> processInstanceIds
      • executionId

        protected java.lang.String executionId
      • processDefinitionId

        protected java.lang.String processDefinitionId
      • processDefinitionKey

        protected java.lang.String processDefinitionKey
      • retriesLeft

        protected boolean retriesLeft
      • executable

        protected boolean executable
      • onlyTimers

        protected boolean onlyTimers
      • onlyMessages

        protected boolean onlyMessages
      • duedateHigherThan

        protected java.util.Date duedateHigherThan
      • duedateLowerThan

        protected java.util.Date duedateLowerThan
      • duedateHigherThanOrEqual

        protected java.util.Date duedateHigherThanOrEqual
      • duedateLowerThanOrEqual

        protected java.util.Date duedateLowerThanOrEqual
      • createdBefore

        protected java.util.Date createdBefore
      • createdAfter

        protected java.util.Date createdAfter
      • priorityHigherThanOrEqual

        protected java.lang.Long priorityHigherThanOrEqual
      • priorityLowerThanOrEqual

        protected java.lang.Long priorityLowerThanOrEqual
      • withException

        protected boolean withException
      • exceptionMessage

        protected java.lang.String exceptionMessage
      • failedActivityId

        protected java.lang.String failedActivityId
      • noRetriesLeft

        protected boolean noRetriesLeft
      • isTenantIdSet

        protected boolean isTenantIdSet
      • tenantIds

        protected java.lang.String[] tenantIds
      • includeJobsWithoutTenantId

        protected boolean includeJobsWithoutTenantId
    • Constructor Detail

      • JobQueryImpl

        public JobQueryImpl()
    • Method Detail

      • jobId

        public JobQuery jobId​(java.lang.String jobId)
        Description copied from interface: JobQuery
        Only select jobs with the given id
        Specified by:
        jobId in interface JobQuery
      • jobIds

        public JobQuery jobIds​(java.util.Set<java.lang.String> ids)
        Description copied from interface: JobQuery
        Only select jobs whose id is in the given set of ids
        Specified by:
        jobIds in interface JobQuery
      • jobDefinitionId

        public JobQuery jobDefinitionId​(java.lang.String jobDefinitionId)
        Description copied from interface: JobQuery
        Only select jobs which exist for the given job definition id.
        Specified by:
        jobDefinitionId in interface JobQuery
      • processInstanceId

        public JobQueryImpl processInstanceId​(java.lang.String processInstanceId)
        Description copied from interface: JobQuery
        Only select jobs which exist for the given process instance.
        Specified by:
        processInstanceId in interface JobQuery
      • processInstanceIds

        public JobQuery processInstanceIds​(java.util.Set<java.lang.String> processInstanceIds)
        Description copied from interface: JobQuery
        Only select jobs which exist for any of the given process instance ids
        Specified by:
        processInstanceIds in interface JobQuery
      • executionId

        public JobQueryImpl executionId​(java.lang.String executionId)
        Description copied from interface: JobQuery
        Only select jobs which exist for the given execution
        Specified by:
        executionId in interface JobQuery
      • processDefinitionId

        public JobQuery processDefinitionId​(java.lang.String processDefinitionId)
        Description copied from interface: JobQuery
        Only select jobs which exist for the given process definition id.
        Specified by:
        processDefinitionId in interface JobQuery
      • processDefinitionKey

        public JobQuery processDefinitionKey​(java.lang.String processDefinitionKey)
        Description copied from interface: JobQuery
        Only select jobs which exist for the given process definition key.
        Specified by:
        processDefinitionKey in interface JobQuery
      • activityId

        public JobQuery activityId​(java.lang.String activityId)
        Description copied from interface: JobQuery
        Only select jobs which are defined on an activity with the given id.
        Specified by:
        activityId in interface JobQuery
      • executable

        public JobQuery executable()
        Description copied from interface: JobQuery
        Only select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the past
        Specified by:
        executable in interface JobQuery
      • duedateHigherThan

        public JobQuery duedateHigherThan​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs where the duedate is higher then the given date.
        Specified by:
        duedateHigherThan in interface JobQuery
      • duedateLowerThan

        public JobQuery duedateLowerThan​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs where the duedate is lower than the given date.
        Specified by:
        duedateLowerThan in interface JobQuery
      • duedateHigherThen

        public JobQuery duedateHigherThen​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs where the duedate is higher then the given date.
        Specified by:
        duedateHigherThen in interface JobQuery
      • duedateHigherThenOrEquals

        public JobQuery duedateHigherThenOrEquals​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs where the duedate is higher then or equals the given date.
        Specified by:
        duedateHigherThenOrEquals in interface JobQuery
      • duedateLowerThen

        public JobQuery duedateLowerThen​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs where the duedate is lower then the given date.
        Specified by:
        duedateLowerThen in interface JobQuery
      • duedateLowerThenOrEquals

        public JobQuery duedateLowerThenOrEquals​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs where the duedate is lower then or equals the given date.
        Specified by:
        duedateLowerThenOrEquals in interface JobQuery
      • createdBefore

        public JobQuery createdBefore​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs created before the given date.
        Specified by:
        createdBefore in interface JobQuery
      • createdAfter

        public JobQuery createdAfter​(java.util.Date date)
        Description copied from interface: JobQuery
        Only select jobs created after the given date.
        Specified by:
        createdAfter in interface JobQuery
      • priorityHigherThanOrEquals

        public JobQuery priorityHigherThanOrEquals​(long priority)
        Description copied from interface: JobQuery
        Only select jobs with a priority that is higher than or equal to the given priority.
        Specified by:
        priorityHigherThanOrEquals in interface JobQuery
      • priorityLowerThanOrEquals

        public JobQuery priorityLowerThanOrEquals​(long priority)
        Description copied from interface: JobQuery
        Only select jobs with a priority that is lower than or equal to the given priority.
        Specified by:
        priorityLowerThanOrEquals in interface JobQuery
      • withException

        public JobQuery withException()
        Description copied from interface: JobQuery
        Only select jobs that failed due to an exception.
        Specified by:
        withException in interface JobQuery
      • exceptionMessage

        public JobQuery exceptionMessage​(java.lang.String exceptionMessage)
        Description copied from interface: JobQuery
        Only select jobs that failed due to an exception with the given message.
        Specified by:
        exceptionMessage in interface JobQuery
      • failedActivityId

        public JobQuery failedActivityId​(java.lang.String activityId)
        Description copied from interface: JobQuery
        Only select jobs that failed due to an exception at an activity with the given id.
        Specified by:
        failedActivityId in interface JobQuery
      • noRetriesLeft

        public JobQuery noRetriesLeft()
        Description copied from interface: JobQuery
        Only select jobs which have no retries left
        Specified by:
        noRetriesLeft in interface JobQuery
      • active

        public JobQuery active()
        Description copied from interface: JobQuery
        Only select jobs that are not suspended.
        Specified by:
        active in interface JobQuery
      • suspended

        public JobQuery suspended()
        Description copied from interface: JobQuery
        Only select jobs that are suspended.
        Specified by:
        suspended in interface JobQuery
      • hasExcludingConditions

        protected boolean hasExcludingConditions()
        Description copied from class: AbstractQuery
        Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.
        Overrides:
        hasExcludingConditions in class AbstractQuery<JobQuery,​Job>
        Returns:
        true if the query does have excluding conditions, false otherwise
      • tenantIdIn

        public JobQuery tenantIdIn​(java.lang.String... tenantIds)
        Description copied from interface: JobQuery
        Only select jobs that belong to one of the given tenant ids.
        Specified by:
        tenantIdIn in interface JobQuery
      • executeList

        public java.util.List<Job> executeList​(CommandContext commandContext,
                                               Page page)
        Description copied from class: AbstractQuery
        Executes the actual query to retrieve the list of results.
        Specified by:
        executeList in class AbstractQuery<JobQuery,​Job>
        page - used if the results must be paged. If null, no paging will be applied.
      • getIds

        public java.util.Set<java.lang.String> getIds()
      • getProcessInstanceId

        public java.lang.String getProcessInstanceId()
      • getProcessInstanceIds

        public java.util.Set<java.lang.String> getProcessInstanceIds()
      • getExecutionId

        public java.lang.String getExecutionId()
      • getRetriesLeft

        public boolean getRetriesLeft()
      • getExecutable

        public boolean getExecutable()
      • getNow

        public java.util.Date getNow()
      • isWithException

        public boolean isWithException()
      • getExceptionMessage

        public java.lang.String getExceptionMessage()