Path: / API / queryRuntimeAPI / getTaskListByActivityState / {taskState}

Obtains the user tasks with state either READY or EXECUTING or SUSPENDED or FINISHED for the authenticated user.
If the task has been assigned to a user, only this user can get the task into the returned list.
Otherwise all the users that belong to the candidate list can get the task.

Path parameters:
taskState - the {@link org.ow2.bonita.facade.runtime.ActivityState state} of the task.

Method Summary
ResourceDescription
POST /API/queryRuntimeAPI/getTaskListByActivityState/{taskState}Obtains the user tasks with state either READY or EXECUTING or SUSPENDED or FINISHED for the authenticated user.

Method Detail
HTTP Example:
POST /API/queryRuntimeAPI/getTaskListByActivityState/{taskState}

options=
API Example:

AbstractRemoteQueryRuntimeAPI.getTaskList({'taskState': /* taskState the state of the task. */,
  'options': /* options the options map (domain, queyList, user) */});

Obtains the user tasks with state either READY or EXECUTING or SUSPENDED or FINISHED for the authenticated user.
If the task has been assigned to a user, only this user can get the task into the returned list.
Otherwise all the users that belong to the candidate list can get the task.

Output:
java.util.Collection<org.ow2.bonita.facade.runtime.TaskInstance> - a collection of task records. If no tasks are found, an empty collection is returned.
Form parameters:
options - the options map (domain, queyList, user)
Produces:
text/*
application/xml
Consumes:
application/x-www-form-urlencoded
text/*
application/xml