Class TaskQueryDto
- java.lang.Object
-
- org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
-
- org.camunda.bpm.engine.rest.dto.AbstractQueryDto<TaskQuery>
-
- org.camunda.bpm.engine.rest.dto.task.TaskQueryDto
-
public class TaskQueryDto extends AbstractQueryDto<TaskQuery>
-
-
Field Summary
-
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 TaskQueryDto()
TaskQueryDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper, javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)
-
Method Summary
-
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_PROCESS_INSTANCE_ID_VALUE
public static final String SORT_BY_PROCESS_INSTANCE_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_CASE_INSTANCE_ID_VALUE
public static final String SORT_BY_CASE_INSTANCE_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_DUE_DATE_VALUE
public static final String SORT_BY_DUE_DATE_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_FOLLOW_UP_VALUE
public static final String SORT_BY_FOLLOW_UP_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_EXECUTION_ID_VALUE
public static final String SORT_BY_EXECUTION_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_CASE_EXECUTION_ID_VALUE
public static final String SORT_BY_CASE_EXECUTION_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_ASSIGNEE_VALUE
public static final String SORT_BY_ASSIGNEE_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_CREATE_TIME_VALUE
public static final String SORT_BY_CREATE_TIME_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_DESCRIPTION_VALUE
public static final String SORT_BY_DESCRIPTION_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_ID_VALUE
public static final String SORT_BY_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_NAME_VALUE
public static final String SORT_BY_NAME_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_NAME_CASE_INSENSITIVE_VALUE
public static final String SORT_BY_NAME_CASE_INSENSITIVE_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_PRIORITY_VALUE
public static final String SORT_BY_PRIORITY_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_TENANT_ID_VALUE
public static final String SORT_BY_TENANT_ID_VALUE
- See Also:
- Constant Field Values
-
SORT_BY_PROCESS_VARIABLE
public static final String SORT_BY_PROCESS_VARIABLE
- See Also:
- Constant Field Values
-
SORT_BY_EXECUTION_VARIABLE
public static final String SORT_BY_EXECUTION_VARIABLE
- See Also:
- Constant Field Values
-
SORT_BY_TASK_VARIABLE
public static final String SORT_BY_TASK_VARIABLE
- See Also:
- Constant Field Values
-
SORT_BY_CASE_INSTANCE_VARIABLE
public static final String SORT_BY_CASE_INSTANCE_VARIABLE
- See Also:
- Constant Field Values
-
SORT_BY_CASE_EXECUTION_VARIABLE
public static final String SORT_BY_CASE_EXECUTION_VARIABLE
- See Also:
- Constant Field Values
-
SORT_PARAMETERS_VARIABLE_NAME
public static final String SORT_PARAMETERS_VARIABLE_NAME
- See Also:
- Constant Field Values
-
SORT_PARAMETERS_VALUE_TYPE
public static final String SORT_PARAMETERS_VALUE_TYPE
- See Also:
- Constant Field Values
-
assigned
protected Boolean assigned
-
withCandidateGroups
protected Boolean withCandidateGroups
-
withoutCandidateGroups
protected Boolean withoutCandidateGroups
-
withCandidateUsers
protected Boolean withCandidateUsers
-
withoutCandidateUsers
protected Boolean withoutCandidateUsers
-
variableNamesIgnoreCase
protected Boolean variableNamesIgnoreCase
-
variableValuesIgnoreCase
protected Boolean variableValuesIgnoreCase
-
-
Method Detail
-
setOrQueries
public void setOrQueries(List<TaskQueryDto> orQueries)
-
setProcessInstanceBusinessKey
public void setProcessInstanceBusinessKey(String businessKey)
-
setProcessInstanceBusinessKeyExpression
public void setProcessInstanceBusinessKeyExpression(String businessKeyExpression)
-
setProcessInstanceBusinessKeyIn
public void setProcessInstanceBusinessKeyIn(String[] processInstanceBusinessKeyIn)
-
setProcessInstanceBusinessKeyLike
public void setProcessInstanceBusinessKeyLike(String businessKeyLike)
-
setProcessInstanceBusinessKeyLikeExpression
public void setProcessInstanceBusinessKeyLikeExpression(String businessKeyLikeExpression)
-
setProcessDefinitionKey
public void setProcessDefinitionKey(String processDefinitionKey)
-
setProcessDefinitionKeyIn
public void setProcessDefinitionKeyIn(String[] processDefinitionKeyIn)
-
setProcessDefinitionId
public void setProcessDefinitionId(String processDefinitionId)
-
setExecutionId
public void setExecutionId(String executionId)
-
setActivityInstanceIdIn
public void setActivityInstanceIdIn(String[] activityInstanceIdIn)
-
setTenantIdIn
public void setTenantIdIn(String[] tenantIdIn)
-
setWithoutTenantId
public void setWithoutTenantId(Boolean withoutTenantId)
-
setProcessDefinitionName
public void setProcessDefinitionName(String processDefinitionName)
-
setProcessDefinitionNameLike
public void setProcessDefinitionNameLike(String processDefinitionNameLike)
-
setProcessInstanceId
public void setProcessInstanceId(String processInstanceId)
-
setProcessInstanceIdIn
public void setProcessInstanceIdIn(String[] processInstanceIdIn)
-
setAssignee
public void setAssignee(String assignee)
-
setAssigneeExpression
public void setAssigneeExpression(String assigneeExpression)
-
setAssigneeLike
public void setAssigneeLike(String assigneeLike)
-
setAssigneeIn
public void setAssigneeIn(String[] assigneeIn)
-
setAssigneeNotIn
public void setAssigneeNotIn(String[] assigneeNotIn)
-
setAssigneeLikeExpression
public void setAssigneeLikeExpression(String assigneeLikeExpression)
-
setCandidateGroup
public void setCandidateGroup(String candidateGroup)
-
setCandidateGroupExpression
public void setCandidateGroupExpression(String candidateGroupExpression)
-
setWithCandidateGroups
public void setWithCandidateGroups(Boolean withCandidateGroups)
-
setWithoutCandidateGroups
public void setWithoutCandidateGroups(Boolean withoutCandidateGroups)
-
setWithCandidateUsers
public void setWithCandidateUsers(Boolean withCandidateUsers)
-
setWithoutCandidateUsers
public void setWithoutCandidateUsers(Boolean withoutCandidateUsers)
-
setCandidateUser
public void setCandidateUser(String candidateUser)
-
setCandidateUserExpression
public void setCandidateUserExpression(String candidateUserExpression)
-
setIncludeAssignedTasks
public void setIncludeAssignedTasks(Boolean includeAssignedTasks)
-
setTaskId
public void setTaskId(String taskId)
-
setTaskIdIn
public void setTaskIdIn(String[] taskIdIn)
-
setTaskDefinitionKey
public void setTaskDefinitionKey(String taskDefinitionKey)
-
setTaskDefinitionKeyIn
public void setTaskDefinitionKeyIn(String[] taskDefinitionKeyIn)
-
setTaskDefinitionKeyLike
public void setTaskDefinitionKeyLike(String taskDefinitionKeyLike)
-
setDescription
public void setDescription(String description)
-
setDescriptionLike
public void setDescriptionLike(String descriptionLike)
-
setInvolvedUser
public void setInvolvedUser(String involvedUser)
-
setInvolvedUserExpression
public void setInvolvedUserExpression(String involvedUserExpression)
-
setMaxPriority
public void setMaxPriority(Integer maxPriority)
-
setMinPriority
public void setMinPriority(Integer minPriority)
-
setName
public void setName(String name)
-
setNameNotEqual
public void setNameNotEqual(String nameNotEqual)
-
setNameLike
public void setNameLike(String nameLike)
-
setNameNotLike
public void setNameNotLike(String nameNotLike)
-
setOwner
public void setOwner(String owner)
-
setOwnerExpression
public void setOwnerExpression(String ownerExpression)
-
setPriority
public void setPriority(Integer priority)
-
setParentTaskId
public void setParentTaskId(String parentTaskId)
-
setAssigned
public void setAssigned(Boolean assigned)
-
setUnassigned
public void setUnassigned(Boolean unassigned)
-
setActive
public void setActive(Boolean active)
-
setSuspended
public void setSuspended(Boolean suspended)
-
setDueAfter
public void setDueAfter(Date dueAfter)
-
setDueAfterExpression
public void setDueAfterExpression(String dueAfterExpression)
-
setDueBefore
public void setDueBefore(Date dueBefore)
-
setDueBeforeExpression
public void setDueBeforeExpression(String dueBeforeExpression)
-
setDueDate
public void setDueDate(Date dueDate)
-
setDue
@Deprecated public void setDue(Date dueDate)
Deprecated.
-
setDueDateExpression
public void setDueDateExpression(String dueDateExpression)
-
setWithoutDueDate
public void setWithoutDueDate(Boolean withoutDueDate)
-
setFollowUpAfter
public void setFollowUpAfter(Date followUpAfter)
-
setFollowUpAfterExpression
public void setFollowUpAfterExpression(String followUpAfterExpression)
-
setFollowUpBefore
public void setFollowUpBefore(Date followUpBefore)
-
setFollowUpBeforeOrNotExistentExpression
public void setFollowUpBeforeOrNotExistentExpression(String followUpBeforeExpression)
-
setFollowUpBeforeOrNotExistent
public void setFollowUpBeforeOrNotExistent(Date followUpBefore)
-
setFollowUpBeforeExpression
public void setFollowUpBeforeExpression(String followUpBeforeExpression)
-
setFollowUpDate
public void setFollowUpDate(Date followUpDate)
-
setFollowUp
@Deprecated public void setFollowUp(Date followUpDate)
Deprecated.
-
setFollowUpDateExpression
public void setFollowUpDateExpression(String followUpDateExpression)
-
setCreatedAfter
public void setCreatedAfter(Date createdAfter)
-
setCreatedAfterExpression
public void setCreatedAfterExpression(String createdAfterExpression)
-
setCreatedBefore
public void setCreatedBefore(Date createdBefore)
-
setCreatedBeforeExpression
public void setCreatedBeforeExpression(String createdBeforeExpression)
-
setCreatedOn
public void setCreatedOn(Date createdOn)
-
setCreated
@Deprecated public void setCreated(Date createdOn)
Deprecated.
-
setCreatedOnExpression
public void setCreatedOnExpression(String createdOnExpression)
-
setDelegationState
public void setDelegationState(String taskDelegationState)
-
setCandidateGroupsExpression
public void setCandidateGroupsExpression(String candidateGroupsExpression)
-
setTaskVariables
public void setTaskVariables(List<VariableQueryParameterDto> taskVariables)
-
setProcessVariables
public void setProcessVariables(List<VariableQueryParameterDto> processVariables)
-
setCaseDefinitionId
public void setCaseDefinitionId(String caseDefinitionId)
-
setCaseDefinitionKey
public void setCaseDefinitionKey(String caseDefinitionKey)
-
setCaseDefinitionName
public void setCaseDefinitionName(String caseDefinitionName)
-
setCaseDefinitionNameLike
public void setCaseDefinitionNameLike(String caseDefinitionNameLike)
-
setCaseExecutionId
public void setCaseExecutionId(String caseExecutionId)
-
setCaseInstanceBusinessKey
public void setCaseInstanceBusinessKey(String caseInstanceBusinessKey)
-
setCaseInstanceBusinessKeyLike
public void setCaseInstanceBusinessKeyLike(String caseInstanceBusinessKeyLike)
-
setCaseInstanceId
public void setCaseInstanceId(String caseInstanceId)
-
setCaseInstanceVariables
public void setCaseInstanceVariables(List<VariableQueryParameterDto> caseInstanceVariables)
-
setVariableNamesIgnoreCase
public void setVariableNamesIgnoreCase(Boolean variableNamesCaseInsensitive)
-
setVariableValuesIgnoreCase
public void setVariableValuesIgnoreCase(Boolean variableValuesCaseInsensitive)
-
isValidSortByValue
protected boolean isValidSortByValue(String value)
- Specified by:
isValidSortByValue
in classAbstractQueryDto<TaskQuery>
-
createNewQuery
protected TaskQuery createNewQuery(ProcessEngine engine)
- Specified by:
createNewQuery
in classAbstractQueryDto<TaskQuery>
-
getProcessInstanceBusinessKey
public String getProcessInstanceBusinessKey()
-
getProcessInstanceBusinessKeyExpression
public String getProcessInstanceBusinessKeyExpression()
-
getProcessInstanceBusinessKeyIn
public String[] getProcessInstanceBusinessKeyIn()
-
getProcessInstanceBusinessKeyLike
public String getProcessInstanceBusinessKeyLike()
-
getProcessInstanceBusinessKeyLikeExpression
public String getProcessInstanceBusinessKeyLikeExpression()
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
-
getProcessDefinitionKeyIn
public String[] getProcessDefinitionKeyIn()
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
getExecutionId
public String getExecutionId()
-
getActivityInstanceIdIn
public String[] getActivityInstanceIdIn()
-
getTenantIdIn
public String[] getTenantIdIn()
-
getWithoutTenantId
public Boolean getWithoutTenantId()
-
getProcessDefinitionName
public String getProcessDefinitionName()
-
getProcessDefinitionNameLike
public String getProcessDefinitionNameLike()
-
getProcessInstanceId
public String getProcessInstanceId()
-
getProcessInstanceIdIn
public String[] getProcessInstanceIdIn()
-
getAssignee
public String getAssignee()
-
getAssigneeExpression
public String getAssigneeExpression()
-
getAssigneeLike
public String getAssigneeLike()
-
getAssigneeIn
public String[] getAssigneeIn()
-
getAssigneeNotIn
public String[] getAssigneeNotIn()
-
getAssigneeLikeExpression
public String getAssigneeLikeExpression()
-
getCandidateGroup
public String getCandidateGroup()
-
getCandidateGroupExpression
public String getCandidateGroupExpression()
-
getCandidateUser
public String getCandidateUser()
-
getCandidateUserExpression
public String getCandidateUserExpression()
-
getIncludeAssignedTasks
public Boolean getIncludeAssignedTasks()
-
getTaskIdIn
public String[] getTaskIdIn()
-
getTaskId
public String getTaskId()
-
getTaskDefinitionKeyIn
public String[] getTaskDefinitionKeyIn()
-
getTaskDefinitionKey
public String getTaskDefinitionKey()
-
getTaskDefinitionKeyLike
public String getTaskDefinitionKeyLike()
-
getDescription
public String getDescription()
-
getDescriptionLike
public String getDescriptionLike()
-
getInvolvedUser
public String getInvolvedUser()
-
getInvolvedUserExpression
public String getInvolvedUserExpression()
-
getMaxPriority
public Integer getMaxPriority()
-
getMinPriority
public Integer getMinPriority()
-
getName
public String getName()
-
getNameNotEqual
public String getNameNotEqual()
-
getNameLike
public String getNameLike()
-
getNameNotLike
public String getNameNotLike()
-
getOwner
public String getOwner()
-
getOwnerExpression
public String getOwnerExpression()
-
getPriority
public Integer getPriority()
-
getParentTaskId
public String getParentTaskId()
-
getAssigned
public Boolean getAssigned()
-
getUnassigned
public Boolean getUnassigned()
-
getActive
public Boolean getActive()
-
getSuspended
public Boolean getSuspended()
-
getCaseDefinitionKey
public String getCaseDefinitionKey()
-
getCaseDefinitionId
public String getCaseDefinitionId()
-
getCaseDefinitionName
public String getCaseDefinitionName()
-
getCaseDefinitionNameLike
public String getCaseDefinitionNameLike()
-
getCaseInstanceId
public String getCaseInstanceId()
-
getCaseInstanceBusinessKey
public String getCaseInstanceBusinessKey()
-
getCaseInstanceBusinessKeyLike
public String getCaseInstanceBusinessKeyLike()
-
getCaseExecutionId
public String getCaseExecutionId()
-
getDueAfter
public Date getDueAfter()
-
getDueAfterExpression
public String getDueAfterExpression()
-
getDueBefore
public Date getDueBefore()
-
getDueBeforeExpression
public String getDueBeforeExpression()
-
getDueDate
public Date getDueDate()
-
getDueDateExpression
public String getDueDateExpression()
-
getWithoutDueDate
public Boolean getWithoutDueDate()
-
getFollowUpAfter
public Date getFollowUpAfter()
-
getFollowUpAfterExpression
public String getFollowUpAfterExpression()
-
getFollowUpBefore
public Date getFollowUpBefore()
-
getFollowUpBeforeExpression
public String getFollowUpBeforeExpression()
-
getFollowUpBeforeOrNotExistent
public Date getFollowUpBeforeOrNotExistent()
-
getFollowUpBeforeOrNotExistentExpression
public String getFollowUpBeforeOrNotExistentExpression()
-
getFollowUpDate
public Date getFollowUpDate()
-
getFollowUpDateExpression
public String getFollowUpDateExpression()
-
getCreatedAfter
public Date getCreatedAfter()
-
getCreatedAfterExpression
public String getCreatedAfterExpression()
-
getCreatedBefore
public Date getCreatedBefore()
-
getCreatedBeforeExpression
public String getCreatedBeforeExpression()
-
getCreatedOn
public Date getCreatedOn()
-
getCreatedOnExpression
public String getCreatedOnExpression()
-
getDelegationState
public String getDelegationState()
-
getCandidateGroupsExpression
public String getCandidateGroupsExpression()
-
getTaskVariables
public List<VariableQueryParameterDto> getTaskVariables()
-
getProcessVariables
public List<VariableQueryParameterDto> getProcessVariables()
-
getCaseInstanceVariables
public List<VariableQueryParameterDto> getCaseInstanceVariables()
-
getOrQueries
public List<TaskQueryDto> getOrQueries()
-
isVariableNamesIgnoreCase
public Boolean isVariableNamesIgnoreCase()
-
isVariableValuesIgnoreCase
public Boolean isVariableValuesIgnoreCase()
-
applyFilters
protected void applyFilters(TaskQuery query)
- Specified by:
applyFilters
in classAbstractQueryDto<TaskQuery>
-
applySortBy
protected void applySortBy(TaskQuery query, String sortBy, Map<String,Object> parameters, ProcessEngine engine)
- Specified by:
applySortBy
in classAbstractQueryDto<TaskQuery>
-
getValueTypeByName
protected ValueType getValueTypeByName(String name, ProcessEngine engine)
-
fromQuery
public static TaskQueryDto fromQuery(Query<?,?> query)
-
fromQuery
public static TaskQueryDto fromQuery(Query<?,?> query, boolean isOrQueryActive)
-
convertQueryOrderingPropertiesToSortingDtos
public static List<SortingDto> convertQueryOrderingPropertiesToSortingDtos(List<QueryOrderingProperty> orderingProperties)
-
convertVariableOrderPropertyToSortingDto
public static SortingDto convertVariableOrderPropertyToSortingDto(VariableOrderProperty variableOrderProperty)
-
convertQueryOrderingPropertyToSortingDto
public static SortingDto convertQueryOrderingPropertyToSortingDto(QueryOrderingProperty orderingProperty)
-
sortByValueForQueryProperty
public static String sortByValueForQueryProperty(QueryProperty queryProperty)
-
sortByValueForVariableOrderProperty
public static String sortByValueForVariableOrderProperty(VariableOrderProperty variableOrderProperty)
-
sortByValueForQueryEntityRelationCondition
public static String sortByValueForQueryEntityRelationCondition(QueryEntityRelationCondition relationCondition)
-
sortParametersForVariableOrderProperty
public static Map<String,Object> sortParametersForVariableOrderProperty(VariableOrderProperty variableOrderProperty)
-
-