This tag locates a list of tasks that match the specified criteria and saves those tasks to a result object named by the var
attribute. None of this tag’s attributes, other than var
, are required. However, if you indicate that you want inactive as well as active tasks (by setting active="false"
) or unclaimed as well as claimed tasks (unowned="true"
) to be returned, you must also specify a process ID. When you know the specific task ID for the task you want returned, it’s best to enter that ID directly in the taskElementId
attribute.
Attributes
The following attributes are defined for the pws:getTasks
tag:
Attributes | Description | Required? |
---|---|---|
| Names the result object to contain a list of tasks. | yes |
| Indicates whether only tasks assigned to the current user ( | no |
| Indicates whether unclaimed ( | no |
| Indicates whether active ( | no |
| The ID for the process that has tasks you want to locate. | yes, if |
| The number that designates where, in the context of the accessed tasks, the list of returned tasks should begin. The default value is | no |
| The ID for a particular task that you want to locate. | no |
| The total number of tasks that are saved to the result object. | no |
Result Object Properties
The following properties are defined for the result object produced by the pws:getTasks
tag:
Property | Description |
---|---|
| Contains the number of tasks in the project workflow’s parent process. |
| Contains the list of located process tasks. |
| Contains the number of tasks in the project workflow. |
| Contains the list of located project workflow tasks. |
| Contains the number of located tasks. |
| Contains each located task. |