TaskService.revoke throws UnsupportedOperationException

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2010 11:48 PM
As TaskService.revoke throws UnsupportedOperationException in Activiti 5.0.beta1, will it be supported in 5.0.beta2?
Also, I would like to find out more about the behavior of TaskService.revoke. What happened if this method being invoked when the task have assignee or without assignee and it's impact to the process instance.
Best regards,
Chee Kin
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2010 05:16 AM
taskService.claim(null); does the same. Your task is then not assigned to an assignee anymore.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2010 06:47 AM
That method is a remnant of the past, and it is deleted on trunk (or will be, today 😉
taskService.claim(null); does the same. Your task is then not assigned to an assignee anymore.
Noted and thanks.
Regards,
Chee Kin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2010 08:13 AM
taskService.claim(taskId, null)
show error org.activiti.engine.ActivitiException: userId is null.
How to revoke the task in beta2?
Regards,
Chee Kin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2010 05:05 AM
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2011 03:46 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2011 11:25 PM
What about adding the TaskService.revoke() operation to get a better API? claim(null) looks like a hidden feature.
We are doing exactly this in Grails Activiti Plugin API at http://code.google.com/p/grails-activiti-plugin/wiki/GrailsActivitiApi#Revoke_task
Best regards,
Chee Kin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2011 03:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2011 08:27 AM
Short Question:
Is it possible to unclaim a Task via the REST-API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2011 08:36 AM
see org.activiti.rest.api.task.TaskOperationPut
With the current API, it should indeed be possible to do this. Can you file an issue for this?
