Rest API improvements for getting tasks

Description

I have added the following enhancements for fetching tasks.

1.) Added support for filtering tasks by process instance as well as assgnee, owner, involved, candidate, candidate-group, etc�

  • Example: /service/process-instance/{processInstanceId}/tasks?[assignee={userId}|candidate={userId}|candidate-group={groupId}

  • Note: This will return a list of tasks that are associated to a specific processInstanceId and assignee, candidate-group, etc...

2.) Added support for filtering tasks by process instance / task list by candidate-groups (a list of groups delimited by a pipe)

  • Example 1: /service/tasks?candidate-groups=admin|engineering

  • Example 2: /service/process-instance/{processInstanceId}/tasks?candidate-groups=admin|engineering

  • Note: This will return all tasks for all candidate groups passed in through the URL.

3.) Added support for filtering tasks by process instance / task list by candidate-group-user-id (does an internal search for all possible groups the user id is associated with)

  • Example 1: /service/tasks?candidate-group-user-id=kermit

  • Example 2: /service/process-instance/{processInstanceId}/tasks?candidate-group-user-id=kermit

  • Note: This will return all tasks for all candidate groups that the candidate-group-user-id is associated with.

I have checked in all of these changes to my local fork. When doing so it automatically associated it to another pull request that I had opened. I'm new to GIT. Is there a better way to do this so it's in a separate pull request? In the mean time you can see the changes in this pull request. It's the second commit in here.

https://github.com/Activiti/Activiti/pull/34

There is already another ticket open for the other contents of this pull request that can be found here...
https://jira.codehaus.org/browse/ACT-1575

Assignee

Frederik Heremans

Reporter

Jamison Dulude

Labels

None

Fix versions

Priority

Major
Configure