[
https://jira.jboss.org/jira/browse/JBPM-2376?page=com.atlassian.jira.plug...
]
Tom Baeyens resolved JBPM-2376.
-------------------------------
Resolution: Done
This is how to put a task back in to the group after taking it:
Task task = taskService.createTaskQuery().processInstanceId(pid).uniqueResult();
assertNull(task.getAssignee());
taskService.takeTask(task.getId(), "johndoe");
task = taskService.createTaskQuery().processInstanceId(pid).uniqueResult();
assertEquals("johndoe", task.getAssignee());
taskService.assignTask(task.getId(), null);
task = taskService.getTask(task.getId());
assertNull(task.getAssignee());
putting a task back in the group
--------------------------------
Key: JBPM-2376
URL:
https://jira.jboss.org/jira/browse/JBPM-2376
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Runtime Engine
Reporter: Tom Baeyens
Assignee: Tom Baeyens
Fix For: jBPM 4.0
Hi All:
It looks like that we could only take a group task to the personal
task list, but cannot put it back. The cancel() method in OpenTask will
end the task.
And I look at the gwt-console in the jBPM-4.0.CR1, it use
taskService.take(dbid, null) to do the 'Release Task', I try it in my
project and it failed with following exception:
*task already taken by username.*
**
* *I think if we could take a task, then we could release it, too. So,
does this feature will be supported ? Or how could I impement it with
current jBPM4's code? Thank you very much.
2009-07-01
------------------------------------------------------------------------
Xu Huisheng
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira