org.activiti.engine.runtime
接口 JobQuery

所有超级接口:
Query<JobQuery,Job>
所有已知实现类:
JobQueryImpl

public interface JobQuery
extends Query<JobQuery,Job>

Allows programmatic querying of Jobs.

作者:
Joram Barrez, Falko Menge

方法摘要
 JobQuery duedateHigherThan(Date date)
          Only select jobs where the duedate is higher then the given date.
 JobQuery duedateHigherThen(Date date)
          已过时。  
 JobQuery duedateHigherThenOrEquals(Date date)
          已过时。  
 JobQuery duedateLowerThan(Date date)
          Only select jobs where the duedate is lower than the given date.
 JobQuery duedateLowerThen(Date date)
          已过时。  
 JobQuery duedateLowerThenOrEquals(Date date)
          已过时。  
 JobQuery exceptionMessage(String exceptionMessage)
          Only select jobs that failed due to an exception with the given message.
 JobQuery executable()
          Only select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the past
 JobQuery executionId(String executionId)
          Only select jobs which exist for the given execution
 JobQuery jobId(String jobId)
          Only select jobs with the given id
 JobQuery messages()
          Only select jobs that are messages.
 JobQuery orderByExecutionId()
          Order by execution id (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByJobDuedate()
          Order by duedate (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByJobId()
          Order by job id (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByJobRetries()
          Order by retries (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByProcessInstanceId()
          Order by process instance id (needs to be followed by Query.asc() or Query.desc()).
 JobQuery processDefinitionId(String processDefinitionid)
          Only select jobs which exist for the given process definition id
 JobQuery processInstanceId(String processInstanceId)
          Only select jobs which exist for the given process instance.
 JobQuery timers()
          Only select jobs that are timers.
 JobQuery withException()
          Only select jobs that failed due to an exception.
 JobQuery withRetriesLeft()
          Only select jobs which have retries left
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

方法详细信息

jobId

JobQuery jobId(String jobId)
Only select jobs with the given id


processInstanceId

JobQuery processInstanceId(String processInstanceId)
Only select jobs which exist for the given process instance.


executionId

JobQuery executionId(String executionId)
Only select jobs which exist for the given execution


processDefinitionId

JobQuery processDefinitionId(String processDefinitionid)
Only select jobs which exist for the given process definition id


withRetriesLeft

JobQuery withRetriesLeft()
Only select jobs which have retries left


executable

JobQuery executable()
Only select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the past


timers

JobQuery timers()
Only select jobs that are timers. Cannot be used together with messages()


messages

JobQuery messages()
Only select jobs that are messages. Cannot be used together with timers()


duedateLowerThan

JobQuery duedateLowerThan(Date date)
Only select jobs where the duedate is lower than the given date.


duedateHigherThan

JobQuery duedateHigherThan(Date date)
Only select jobs where the duedate is higher then the given date.


duedateLowerThen

JobQuery duedateLowerThen(Date date)
已过时。 

Only select jobs where the duedate is lower then the given date.


duedateLowerThenOrEquals

JobQuery duedateLowerThenOrEquals(Date date)
已过时。 

Only select jobs where the duedate is lower then or equals the given date.


duedateHigherThen

JobQuery duedateHigherThen(Date date)
已过时。 

Only select jobs where the duedate is higher then the given date.


duedateHigherThenOrEquals

JobQuery duedateHigherThenOrEquals(Date date)
已过时。 

Only select jobs where the duedate is higher then or equals the given date.


withException

JobQuery withException()
Only select jobs that failed due to an exception.


exceptionMessage

JobQuery exceptionMessage(String exceptionMessage)
Only select jobs that failed due to an exception with the given message.


orderByJobId

JobQuery orderByJobId()
Order by job id (needs to be followed by Query.asc() or Query.desc()).


orderByJobDuedate

JobQuery orderByJobDuedate()
Order by duedate (needs to be followed by Query.asc() or Query.desc()).


orderByJobRetries

JobQuery orderByJobRetries()
Order by retries (needs to be followed by Query.asc() or Query.desc()).


orderByProcessInstanceId

JobQuery orderByProcessInstanceId()
Order by process instance id (needs to be followed by Query.asc() or Query.desc()).


orderByExecutionId

JobQuery orderByExecutionId()
Order by execution id (needs to be followed by Query.asc() or Query.desc()).



Copyright © 2013 Alfresco. All rights reserved.