Package org.kie.internal.task.query
Interface TaskSummaryQueryBuilder
- All Superinterfaces:
ExtendedParametrizedQueryBuilder<TaskSummaryQueryBuilder,,org.kie.api.task.model.TaskSummary> ParametrizedQueryBuilder<TaskSummaryQueryBuilder>,ProcessIdQueryBuilder<TaskSummaryQueryBuilder,,org.kie.api.task.model.TaskSummary> ProcessInstanceIdQueryBuilder<TaskSummaryQueryBuilder,org.kie.api.task.model.TaskSummary>
public interface TaskSummaryQueryBuilder
extends ProcessIdQueryBuilder<TaskSummaryQueryBuilder,org.kie.api.task.model.TaskSummary>
An instance of this class is used to dynamically
create a query to retrieve
TaskSummary instances.
One of the main motivations behind this class is that
adding new methods to this method provides a (factorial)
increase in ways to query for TaskSummary instances
without unnecessarily cluttering up the interface, unlike
the deprecated "get*" method signatures,-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum/** An enum used to specify the criteria for ordering the results of the query -
Method Summary
Modifier and TypeMethodDescriptionactivationTime(Date... activationTime) Add one or more activation times as a criteria to the queryactivationTimeRange(Date activationTimeMin, Date activationTimeMax) Specify an inclusive range of (task) activation-time dates to use as a criteriaactualOwner(String... actualOwnerUserId) Add one or more (actual) task owner ids as a criteria to the queryarchived(boolean archived) Add whether or not the task is archived as a criteria to the queryascending(TaskSummaryQueryBuilder.OrderBy orderBy) Order the results in ascending order by the given parameterbusinessAdmin(String... businessAdminId) Add one or more business administrator (user) ids as a criteria to the queryAdd one or more initiator user ids as a criteria to the queryAdd one or more creation dates as a criteria to the querycreatedOnRange(Date createdOnMin, Date createdOnMax) Specify an inclusive range of (task) creation dates to use as a criteriadeploymentId(String... deploymentId) Add one or more deployment ids as a criteria to the queryOrder the results in descending order by the given parameterdescription(String... description) Add one or more descriptions as a criteria to the queryexpirationTime(Date... expirationTime) Add one or more expiration times as a criteria to the queryexpirationTimeRange(Date expirationTimeMin, Date expirationTimeMax) Specify an inclusive range of (task) expiration-time dates to use as a criteriaAdd one or more (task) form names as a criteria to the queryAdd one or more (task) names as a criteria to the querypotentialOwner(String... potentialOwnerId) Add one or more potential owner ids as a criteria to the querypriority(int... priority) Add one or more priorities as a criteria to the queryprocessSessionId(long... processSessionId) Add one or more work item ids as a criteria to the queryskippable(boolean skippable) Add whether or not the task is skippable as a criteria to the querystakeHolder(String... stakeHolderId) Add one or more stake holder (user) ids as a criteria to the querystatus(org.kie.api.task.model.Status... status) Add one or more statuses as a criteria to the queryAdd one or more subjects as a criteria to the querysubTaskStrategy(SubTasksStrategy... subTasksStrategy) Add one or more (task) sub-task-strategies as a criteria to the querytaskId(long... taskId) Add one or more task ids as a criteria to the querytaskIdRange(Long taskIdMin, Long taskIdMax) Specify an inclusive range of (task) ids to use as a criteriataskParentId(long... taskParentId) Add one or more (task) parent ids as a criteria to the queryAdd one or more (task) types as a criteria to the queryvariableName(String... varName) Add one or moreTaskVariablenames as a criteria to the queryvariableValue(String... varValue) Add one or moreTaskVariablevalues as a criteria to the queryworkItemId(long... workItemId) Add one or more work item ids as a criteria to the queryMethods inherited from interface org.kie.internal.query.ExtendedParametrizedQueryBuilder
build, endGroup, newGroupMethods inherited from interface org.kie.internal.query.ParametrizedQueryBuilder
and, clear, equals, intersect, like, maxResults, offset, or, regex, unionMethods inherited from interface org.kie.internal.runtime.manager.audit.query.ProcessIdQueryBuilder
processIdMethods inherited from interface org.kie.internal.query.ProcessInstanceIdQueryBuilder
processInstanceId, processInstanceIdRange
-
Method Details
-
activationTime
Add one or more activation times as a criteria to the query- Parameters:
activationTime- one or moreDatevalues- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
activationTimeRange
Specify an inclusive range of (task) activation-time dates to use as a criteria If the lower or upper end of the range is given as null, then an open-ended range using the non-null range end is used as the criteria- Parameters:
activationTimeMin- the minimal (lower) date to use in the rangeactivationTimeMax- the max (upper) date to use in the range- Returns:
- The current query builder instance
-
actualOwner
Add one or more (actual) task owner ids as a criteria to the query- Parameters:
actualOwnerUserId-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
archived
Add whether or not the task is archived as a criteria to the query- Parameters:
archived- a boolean- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
createdBy
Add one or more initiator user ids as a criteria to the query The initiator is also the user who created the task.- Parameters:
createdById-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
createdOn
Add one or more creation dates as a criteria to the query- Parameters:
createdOnDate- one or moreDatevalues- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
createdOnRange
Specify an inclusive range of (task) creation dates to use as a criteria If the lower or upper end of the range is given as null, then an open-ended range using the non-null range end is used as the criteria- Parameters:
createdOnMin- the minimal (lower) date to use in the rangecreatedOnMax- the max (upper) date to use in the range- Returns:
- The current query builder instance
-
deploymentId
Add one or more deployment ids as a criteria to the query- Parameters:
deploymentId-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
description
Add one or more descriptions as a criteria to the query- Parameters:
description- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
expirationTime
Add one or more expiration times as a criteria to the query- Parameters:
expirationTime- one or moreDatevalues- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
expirationTimeRange
Specify an inclusive range of (task) expiration-time dates to use as a criteria If the lower or upper end of the range is given as null, then an open-ended range using the non-null range end is used as the criteria- Parameters:
expirationTimeMin- the minimal (lower) date to use in the rangeexpirationTimeMax- the max (upper) date to use in the range- Returns:
- The current query builder instance
-
formName
Add one or more (task) form names as a criteria to the query- Parameters:
formName- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
name
Add one or more (task) names as a criteria to the query- Parameters:
name- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
processSessionId
Add one or more work item ids as a criteria to the query- Parameters:
processSessionId- one or more longs- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
skippable
Add whether or not the task is skippable as a criteria to the query- Parameters:
skippable- a boolean- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
status
Add one or more statuses as a criteria to the query- Parameters:
status-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
subject
Add one or more subjects as a criteria to the query- Parameters:
subject- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
subTaskStrategy
Add one or more (task) sub-task-strategies as a criteria to the query- Parameters:
subTasksStrategy- one or moreSubTasksStrategyvalues- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
taskId
Add one or more task ids as a criteria to the query- Parameters:
taskId-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
taskIdRange
Specify an inclusive range of (task) ids to use as a criteria If the lower or upper end of the range is given as null, then an open-ended range using the non-null range end is used as the criteria- Parameters:
taskIdMin- the minimal (lower) date to use in the rangetaskIdMax- the max (upper) date to use in the range- Returns:
- The current query builder instance
-
taskParentId
Add one or more (task) parent ids as a criteria to the query- Parameters:
taskParentId- one or more longs- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
taskType
Add one or more (task) types as a criteria to the query- Parameters:
taskType- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
workItemId
Add one or more work item ids as a criteria to the query- Parameters:
workItemId- one or more longs- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
priority
Add one or more priorities as a criteria to the query- Parameters:
priority- one or more ints- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
businessAdmin
Add one or more business administrator (user) ids as a criteria to the query- Parameters:
businessAdminId- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
potentialOwner
Add one or more potential owner ids as a criteria to the query- Parameters:
potentialOwnerId-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
stakeHolder
Add one or more stake holder (user) ids as a criteria to the query- Parameters:
stakeHolderId- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
variableName
Add one or moreTaskVariablenames as a criteria to the query- Parameters:
varName- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
variableValue
Add one or moreTaskVariablevalues as a criteria to the query- Parameters:
varValue- one or more strings- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
ascending
Order the results in ascending order by the given parameter results are ordered by default by task id.- Parameters:
orderBy-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-
descending
Order the results in descending order by the given parameter results are ordered by default by task id.- Parameters:
orderBy-- Returns:
- the current
TaskSummaryQueryBuilderinstance
-