|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.db.AuthorizationCheck
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<ExternalTaskQuery,ExternalTask>
org.camunda.bpm.engine.impl.ExternalTaskQueryImpl
public class ExternalTaskQueryImpl
| Field Summary | |
|---|---|
protected String |
activityId
|
protected String |
executionId
|
protected String |
externalTaskId
|
protected Boolean |
locked
|
protected Date |
lockExpirationAfter
|
protected Date |
lockExpirationBefore
|
protected Boolean |
notLocked
|
protected String |
processDefinitionId
|
protected String |
processInstanceId
|
protected Boolean |
retriesLeft
|
protected SuspensionState |
suspensionState
|
protected String |
topicName
|
protected String |
workerId
|
| Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC, validators |
| Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter |
| Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks |
| Constructor Summary | |
|---|---|
ExternalTaskQueryImpl()
|
|
ExternalTaskQueryImpl(CommandExecutor commandExecutor)
|
|
| Method Summary | |
|---|---|
ExternalTaskQuery |
active()
Only select external tasks that are currently not suspended |
ExternalTaskQuery |
activityId(String activityId)
Only select external tasks that belong to an instance of the given activity |
long |
executeCount(CommandContext commandContext)
|
List<ExternalTask> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results. |
ExternalTaskQuery |
executionId(String executionId)
Only select external tasks created in the context of the given execution |
ExternalTaskQuery |
externalTaskId(String externalTaskId)
Only select the external task with the given id |
String |
getActivityId()
|
String |
getExecutionId()
|
String |
getExternalTaskId()
|
Boolean |
getLocked()
|
Date |
getLockExpirationAfter()
|
Date |
getLockExpirationBefore()
|
Boolean |
getNotLocked()
|
Date |
getNow()
|
String |
getProcessDefinitionId()
|
String |
getProcessInstanceId()
|
Boolean |
getRetriesLeft()
|
SuspensionState |
getSuspensionState()
|
String |
getTopicName()
|
String |
getWorkerId()
|
ExternalTaskQuery |
locked()
Only select external tasks that are currently locked, i.e. |
ExternalTaskQuery |
lockExpirationAfter(Date lockExpirationDate)
Only select external tasks that have a lock expiring after the given date |
ExternalTaskQuery |
lockExpirationBefore(Date lockExpirationDate)
Only select external tasks that have a lock expiring before the given date |
ExternalTaskQuery |
noRetriesLeft()
Only select external tasks that have retries = 0 |
ExternalTaskQuery |
notLocked()
Only select external tasks that are not currently locked, i.e. |
ExternalTaskQuery |
orderById()
Order by external task id (needs to be followed by Query.asc() or Query.desc()). |
ExternalTaskQuery |
orderByLockExpirationTime()
Order by lock expiration time (needs to be followed by Query.asc() or Query.desc()). |
ExternalTaskQuery |
orderByProcessDefinitionId()
Order by process definition id (needs to be followed by Query.asc() or Query.desc()). |
ExternalTaskQuery |
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by Query.asc() or Query.desc()). |
ExternalTaskQuery |
orderByProcessInstanceId()
Order by process instance id (needs to be followed by Query.asc() or Query.desc()). |
ExternalTaskQuery |
processDefinitionId(String processDefinitionId)
Only select external tasks that belong to an instance of the given process definition |
ExternalTaskQuery |
processInstanceId(String processInstanceId)
Only select external tasks created in the context of the given process instance |
ExternalTaskQuery |
suspended()
Only select external tasks that are currently suspended |
ExternalTaskQuery |
topicName(String topicName)
Only select external tasks of the given topic |
ExternalTaskQuery |
withRetriesLeft()
Only select external tasks that have retries > 0 |
ExternalTaskQuery |
workerId(String workerId)
Only select external tasks that was most recently locked by the given worker |
| Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, hasExcludingConditions, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, setOrderingProperties, singleResult, validate, validate |
| Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter |
| Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
addAtomicPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAtomicPermissionChecks, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.camunda.bpm.engine.query.Query |
|---|
asc, count, desc, list, listPage, singleResult |
| Field Detail |
|---|
protected String externalTaskId
protected String workerId
protected Date lockExpirationBefore
protected Date lockExpirationAfter
protected String topicName
protected Boolean locked
protected Boolean notLocked
protected String executionId
protected String processInstanceId
protected String processDefinitionId
protected String activityId
protected SuspensionState suspensionState
protected Boolean retriesLeft
| Constructor Detail |
|---|
public ExternalTaskQueryImpl()
public ExternalTaskQueryImpl(CommandExecutor commandExecutor)
| Method Detail |
|---|
public ExternalTaskQuery externalTaskId(String externalTaskId)
ExternalTaskQuery
externalTaskId in interface ExternalTaskQuerypublic ExternalTaskQuery workerId(String workerId)
ExternalTaskQuery
workerId in interface ExternalTaskQuerypublic ExternalTaskQuery lockExpirationBefore(Date lockExpirationDate)
ExternalTaskQuery
lockExpirationBefore in interface ExternalTaskQuerypublic ExternalTaskQuery lockExpirationAfter(Date lockExpirationDate)
ExternalTaskQuery
lockExpirationAfter in interface ExternalTaskQuerypublic ExternalTaskQuery topicName(String topicName)
ExternalTaskQuery
topicName in interface ExternalTaskQuerypublic ExternalTaskQuery locked()
ExternalTaskQuery
locked in interface ExternalTaskQuerypublic ExternalTaskQuery notLocked()
ExternalTaskQuery
notLocked in interface ExternalTaskQuerypublic ExternalTaskQuery executionId(String executionId)
ExternalTaskQuery
executionId in interface ExternalTaskQuerypublic ExternalTaskQuery processInstanceId(String processInstanceId)
ExternalTaskQuery
processInstanceId in interface ExternalTaskQuerypublic ExternalTaskQuery processDefinitionId(String processDefinitionId)
ExternalTaskQuery
processDefinitionId in interface ExternalTaskQuerypublic ExternalTaskQuery activityId(String activityId)
ExternalTaskQuery
activityId in interface ExternalTaskQuerypublic ExternalTaskQuery suspended()
ExternalTaskQuery
suspended in interface ExternalTaskQuerypublic ExternalTaskQuery active()
ExternalTaskQuery
active in interface ExternalTaskQuerypublic ExternalTaskQuery withRetriesLeft()
ExternalTaskQuery
withRetriesLeft in interface ExternalTaskQuerypublic ExternalTaskQuery noRetriesLeft()
ExternalTaskQuery
noRetriesLeft in interface ExternalTaskQuerypublic ExternalTaskQuery orderById()
ExternalTaskQueryQuery.asc() or Query.desc()).
orderById in interface ExternalTaskQuerypublic ExternalTaskQuery orderByLockExpirationTime()
ExternalTaskQueryQuery.asc() or Query.desc()).
Ordering of tasks with no lock expiration time is database-dependent.
orderByLockExpirationTime in interface ExternalTaskQuerypublic ExternalTaskQuery orderByProcessInstanceId()
ExternalTaskQueryQuery.asc() or Query.desc()).
orderByProcessInstanceId in interface ExternalTaskQuerypublic ExternalTaskQuery orderByProcessDefinitionId()
ExternalTaskQueryQuery.asc() or Query.desc()).
orderByProcessDefinitionId in interface ExternalTaskQuerypublic ExternalTaskQuery orderByProcessDefinitionKey()
ExternalTaskQueryQuery.asc() or Query.desc()).
orderByProcessDefinitionKey in interface ExternalTaskQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<ExternalTaskQuery,ExternalTask>
public List<ExternalTask> executeList(CommandContext commandContext,
Page page)
AbstractQuery
executeList in class AbstractQuery<ExternalTaskQuery,ExternalTask>page - used if the results must be paged. If null, no paging will be applied.public String getExternalTaskId()
public String getWorkerId()
public Date getLockExpirationBefore()
public Date getLockExpirationAfter()
public String getTopicName()
public Boolean getLocked()
public Boolean getNotLocked()
public String getExecutionId()
public String getProcessInstanceId()
public String getProcessDefinitionId()
public String getActivityId()
public SuspensionState getSuspensionState()
public Boolean getRetriesLeft()
public Date getNow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||