Retrieving all tasks defined in a process definition via REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2015 08:11 AM
From the user guide I could not determine if that is possible at all. Only the tasks that have been completed/current seem to be getting returned for runtime/tasks or runtime/executions.
I would like to know if it is possible via the REST API to retrieve all tasks in a process definition/instance.
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2015 03:55 PM
If you are referring to task instances, you can retrieve task instances of a specific process instance or process definition, check 15.8.12. Get historic task instances section in the Activiti User Guide
http://activiti.org/userguide/index.html
Use the processInstanceId parameter to get task instances of a specific process instance. Use the processDefinitionId parameter to get task instances of all process instances of a specific process definition. There are other parameters that you can use to filter results as needed.
If you are referring to task definitions, I don't think that is currently possible. However, you can retrieve the whole process definition (which will include all user tasks definitions) using
GET repository/process-definitions/{processDefinitionId}/model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2015 02:05 AM
For my situation, it would be ideal if I could retrieve all the 'User Tasks' that are defined in a process definition. If that is not possible, the alternative would be to retrieve all the 'User Tasks' that could be potentially associated to the process instance as per the process definition.
I guess it would boil down to API support that would involve parsing the bpmn xml and listing all the 'User Tasks' defined in it. If that support is not there, may be it could be built for a future release?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2015 08:06 AM
Then you need to filter on process definition (id or key)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2015 04:44 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2015 02:57 PM
repository/process-definitions/{processDefinitionId}/model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2015 01:31 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 07:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2016 09:37 AM
This is my url:
http://localhost:8080/activiti-rest/service/runtime/tasks?size=100000&processDefinitionId=reviewSale...
But tasks are not getting filtered by processDefinitionId. it giving me all tasks from ACT_RU_TASK table without filteration.
How to resolve this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2016 09:58 AM
