Path: / API / queryRuntimeAPI / getTaskListByUserIdAndActivityState / {userId} / {taskState}

Obtains the user tasks with state either READY or EXECUTING or SUSPENDED or FINISHED for the given 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:
userId - the userId for which the tasks are searched.
taskState - the {@link org.ow2.bonita.facade.runtime.ActivityState state} of the task.

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

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

options=
API Example:

AbstractRemoteQueryRuntimeAPI.getTaskList({'userId': /* userId the userId for which the tasks are searched. */,
  '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 given 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