Class ExternalTaskQueryDto
- java.lang.Object
-
- org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
-
- org.camunda.bpm.engine.rest.dto.AbstractQueryDto<ExternalTaskQuery>
-
- org.camunda.bpm.engine.rest.dto.externaltask.ExternalTaskQueryDto
-
public class ExternalTaskQueryDto extends AbstractQueryDto<ExternalTaskQuery>
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean
active
protected java.lang.String
activityId
protected java.util.List<java.lang.String>
activityIdIn
protected java.lang.String
executionId
protected java.lang.String
externalTaskId
protected java.util.Set<java.lang.String>
externalTaskIds
protected java.lang.Boolean
locked
protected java.util.Date
lockExpirationAfter
protected java.util.Date
lockExpirationBefore
protected java.lang.Boolean
noRetriesLeft
protected java.lang.Boolean
notLocked
protected java.lang.Long
priorityHigherThanOrEquals
protected java.lang.Long
priorityLowerThanOrEquals
protected java.lang.String
processDefinitionId
protected java.lang.String
processInstanceId
protected java.util.List<java.lang.String>
processInstanceIdIn
static java.lang.String
SORT_BY_ID_VALUE
static java.lang.String
SORT_BY_LOCK_EXPIRATION_TIME
static java.lang.String
SORT_BY_PRIORITY
static java.lang.String
SORT_BY_PROCESS_DEFINITION_ID
static java.lang.String
SORT_BY_PROCESS_DEFINITION_KEY
static java.lang.String
SORT_BY_PROCESS_INSTANCE_ID
static java.lang.String
SORT_BY_TENANT_ID
protected java.lang.Boolean
suspended
protected java.util.List<java.lang.String>
tenantIds
protected java.lang.String
topicName
static java.util.List<java.lang.String>
VALID_SORT_BY_VALUES
protected java.lang.Boolean
withRetriesLeft
protected java.lang.String
workerId
-
Fields inherited from class org.camunda.bpm.engine.rest.dto.AbstractQueryDto
expressions, SORT_ORDER_ASC_VALUE, SORT_ORDER_DESC_VALUE, sortBy, sortings, sortOrder, VALID_SORT_ORDER_VALUES
-
Fields inherited from class org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
objectMapper
-
-
Constructor Summary
Constructors Constructor Description ExternalTaskQueryDto()
ExternalTaskQueryDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> queryParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyFilters(ExternalTaskQuery query)
protected void
applySortBy(ExternalTaskQuery query, java.lang.String sortBy, java.util.Map<java.lang.String,java.lang.Object> parameters, ProcessEngine engine)
protected ExternalTaskQuery
createNewQuery(ProcessEngine engine)
java.lang.String
getProcessDefinitionId()
protected boolean
isValidSortByValue(java.lang.String value)
void
setActive(java.lang.Boolean active)
void
setActivityId(java.lang.String activityId)
void
setActivityIdIn(java.util.List<java.lang.String> activityIdIn)
void
setExecutionId(java.lang.String executionId)
void
setExternalTaskId(java.lang.String externalTaskId)
void
setExternalTaskIdIn(java.util.Set<java.lang.String> externalTaskIds)
void
setLocked(java.lang.Boolean locked)
void
setLockExpirationAfter(java.util.Date lockExpirationAfter)
void
setLockExpirationBefore(java.util.Date lockExpirationBefore)
void
setNoRetriesLeft(java.lang.Boolean noRetriesLeft)
void
setNotLocked(java.lang.Boolean notLocked)
void
setPriorityHigherThanOrEquals(java.lang.Long priorityHigherThanOrEquals)
void
setPriorityLowerThanOrEquals(java.lang.Long priorityLowerThanOrEquals)
void
setProcessDefinitionId(java.lang.String processDefinitionId)
void
setProcessInstanceId(java.lang.String processInstanceId)
void
setProcessInstanceIdIn(java.util.List<java.lang.String> processInstanceIdIn)
void
setSuspended(java.lang.Boolean suspended)
void
setTenantIdIn(java.util.List<java.lang.String> tenantIds)
void
setTopicName(java.lang.String topicName)
void
setWithRetriesLeft(java.lang.Boolean withRetriesLeft)
void
setWorkerId(java.lang.String workerId)
-
Methods inherited from class org.camunda.bpm.engine.rest.dto.AbstractQueryDto
applySortingOptions, applySortOrder, getSorting, setSortBy, setSorting, setSortOrder, sortOptionsValid, sortOrderValueForDirection, toQuery
-
Methods inherited from class org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
setObjectMapper, setValueBasedOnAnnotation
-
-
-
-
Field Detail
-
SORT_BY_ID_VALUE
public static final java.lang.String SORT_BY_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_LOCK_EXPIRATION_TIME
public static final java.lang.String SORT_BY_LOCK_EXPIRATION_TIME
- See Also:
- Constant Field Values
-
SORT_BY_PROCESS_INSTANCE_ID
public static final java.lang.String SORT_BY_PROCESS_INSTANCE_ID
- See Also:
- Constant Field Values
-
SORT_BY_PROCESS_DEFINITION_ID
public static final java.lang.String SORT_BY_PROCESS_DEFINITION_ID
- See Also:
- Constant Field Values
-
SORT_BY_PROCESS_DEFINITION_KEY
public static final java.lang.String SORT_BY_PROCESS_DEFINITION_KEY
- See Also:
- Constant Field Values
-
SORT_BY_TENANT_ID
public static final java.lang.String SORT_BY_TENANT_ID
- See Also:
- Constant Field Values
-
SORT_BY_PRIORITY
public static final java.lang.String SORT_BY_PRIORITY
- See Also:
- Constant Field Values
-
VALID_SORT_BY_VALUES
public static final java.util.List<java.lang.String> VALID_SORT_BY_VALUES
-
externalTaskId
protected java.lang.String externalTaskId
-
externalTaskIds
protected java.util.Set<java.lang.String> externalTaskIds
-
activityId
protected java.lang.String activityId
-
activityIdIn
protected java.util.List<java.lang.String> activityIdIn
-
lockExpirationBefore
protected java.util.Date lockExpirationBefore
-
lockExpirationAfter
protected java.util.Date lockExpirationAfter
-
topicName
protected java.lang.String topicName
-
locked
protected java.lang.Boolean locked
-
notLocked
protected java.lang.Boolean notLocked
-
executionId
protected java.lang.String executionId
-
processInstanceId
protected java.lang.String processInstanceId
-
processInstanceIdIn
protected java.util.List<java.lang.String> processInstanceIdIn
-
processDefinitionId
protected java.lang.String processDefinitionId
-
active
protected java.lang.Boolean active
-
suspended
protected java.lang.Boolean suspended
-
withRetriesLeft
protected java.lang.Boolean withRetriesLeft
-
noRetriesLeft
protected java.lang.Boolean noRetriesLeft
-
workerId
protected java.lang.String workerId
-
tenantIds
protected java.util.List<java.lang.String> tenantIds
-
priorityHigherThanOrEquals
protected java.lang.Long priorityHigherThanOrEquals
-
priorityLowerThanOrEquals
protected java.lang.Long priorityLowerThanOrEquals
-
-
Method Detail
-
setExternalTaskId
public void setExternalTaskId(java.lang.String externalTaskId)
-
setExternalTaskIdIn
public void setExternalTaskIdIn(java.util.Set<java.lang.String> externalTaskIds)
-
setActivityId
public void setActivityId(java.lang.String activityId)
-
setActivityIdIn
public void setActivityIdIn(java.util.List<java.lang.String> activityIdIn)
-
setLockExpirationBefore
public void setLockExpirationBefore(java.util.Date lockExpirationBefore)
-
setLockExpirationAfter
public void setLockExpirationAfter(java.util.Date lockExpirationAfter)
-
setTopicName
public void setTopicName(java.lang.String topicName)
-
setLocked
public void setLocked(java.lang.Boolean locked)
-
setNotLocked
public void setNotLocked(java.lang.Boolean notLocked)
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
-
setProcessInstanceIdIn
public void setProcessInstanceIdIn(java.util.List<java.lang.String> processInstanceIdIn)
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
-
setActive
public void setActive(java.lang.Boolean active)
-
setSuspended
public void setSuspended(java.lang.Boolean suspended)
-
setWithRetriesLeft
public void setWithRetriesLeft(java.lang.Boolean withRetriesLeft)
-
setNoRetriesLeft
public void setNoRetriesLeft(java.lang.Boolean noRetriesLeft)
-
setWorkerId
public void setWorkerId(java.lang.String workerId)
-
setTenantIdIn
public void setTenantIdIn(java.util.List<java.lang.String> tenantIds)
-
setPriorityHigherThanOrEquals
public void setPriorityHigherThanOrEquals(java.lang.Long priorityHigherThanOrEquals)
-
setPriorityLowerThanOrEquals
public void setPriorityLowerThanOrEquals(java.lang.Long priorityLowerThanOrEquals)
-
isValidSortByValue
protected boolean isValidSortByValue(java.lang.String value)
- Specified by:
isValidSortByValue
in classAbstractQueryDto<ExternalTaskQuery>
-
createNewQuery
protected ExternalTaskQuery createNewQuery(ProcessEngine engine)
- Specified by:
createNewQuery
in classAbstractQueryDto<ExternalTaskQuery>
-
applyFilters
protected void applyFilters(ExternalTaskQuery query)
- Specified by:
applyFilters
in classAbstractQueryDto<ExternalTaskQuery>
-
applySortBy
protected void applySortBy(ExternalTaskQuery query, java.lang.String sortBy, java.util.Map<java.lang.String,java.lang.Object> parameters, ProcessEngine engine)
- Specified by:
applySortBy
in classAbstractQueryDto<ExternalTaskQuery>
-
-