cancel
Showing results for 
Search instead for 
Did you mean: 

TaskService.revoke throws UnsupportedOperationException

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi,

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
9 REPLIES 9

jbarrez
Star Contributor
Star Contributor
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.

limcheekin
Champ on-the-rise
Champ on-the-rise
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

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi Joram,

taskService.claim(taskId, null)
show error org.activiti.engine.ActivitiException: userId is null.

How to revoke the task in beta2?

Regards,
Chee Kin

jbarrez
Star Contributor
Star Contributor
This is most definitely a bug. I filed a Jira http://jira.codehaus.org/browse/ACT-206 and fix it asap!

Thanks!

ingo_ri
Champ in-the-making
Champ in-the-making
What about adding the TaskService.revoke() operation to get a better API? claim(null) looks like a hidden feature.

limcheekin
Champ on-the-rise
Champ on-the-rise
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

jbarrez
Star Contributor
Star Contributor
We originally had the revoke operation, but the meaning wasnt clear to everyone, so we decided to remove it.

pkranich
Champ in-the-making
Champ in-the-making
Hey.
Short Question:
Is it possible to unclaim a Task via the REST-API?

frederikherema1
Star Contributor
Star Contributor
The rest-api exposes a few operations that can be performed on a task. Unfortunately, the 'revoke' throws an UnsupportedOperation (with message "Not implemented in this version").
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?