For an overview of this topic, see
Configuring Task Role Filters
elsewhere in this help.
In the
Task Role Filters
section of the
.avcconfig
file, you can add a filter to apply to the tasks in one of the Show drop-down entries. For example, you can create a filter for Unclaimed Tasks to show only Priority zero (highest priority).
To filter the task list for the Show filter:
Modify the default configuration in the
<avccom:filter/>
section of the
<avccom:taskFilterDef/>
section.
The following code snippet shows the default configuration:
<avccom:filter>
<tsst:getTasks
xmlns:tsst="http://schemas.active-endpoints.com/b4p/wshumantask/
2007/10/aeb4p-task-state-wsdl.xsd">
<htdt:getMyTasks xmlns:htdt="http://www.example.org/WS-HT/api/xsd">
<htdt:taskType>TASKS</htdt:taskType>
<htdt:genericHumanRole>POTENTIAL_OWNERS</htdt:genericHumanRole>
<htdt:status>READY</htdt:status>
<htdt:whereClause>Task.Name = 'ApproveLoan'</htdt:whereClause>
<htdt:maxTasks>20</htdt:maxTasks>
</htdt:getMyTasks>
<tsst:taskIndexOffset>0</tsst:taskIndexOffset>
</tsst:getTasks>
</avccom:filter>
Filtering a task list by parameter via WS-HT
whereClause
You can use the following operators in the
whereClause
:
>
>=
<
<=
=
like
and
or
()
For a complete list of task column names, task types, generic human roles and other WS-HT specifications, you can work with the SDK. To get started, see
What is the Process Server WS-HumanTask API?
elsewhere in this help.
The following examples show various
whereClause
syntax. Note that the Booleans
and
and
or
are case-sensitive.
The following example shows a sample
whereClause
using a standard WS-HT task property name. For a list of standard WS-HT names, see
WS-HT Task Property List
elsewhere in this help.
<htdt:whereClause>Task.Name = 'ApproveLoan'</htdt:whereClause>
This example combines filter properties.
Task.Priority < 3 and Task.Owner = 'loanrep1'
This example also combines filter properties.
Task.PaProcessId = 10 and(Task.Escalated = true or Task.Priority = 0)
The following example shows using presentation parameters (that is, custom task properties).
Task.Name = 'LoanApproval' and loanAmount > 10000 and zipCode = '06484'
For details, see
Creating Custom Task Properties
elsewhere in this help.