[jboss-user] [jBPM] - Re: how to get the taskId in "candidate-groups" sicenario?
stree jang
do-not-reply at jboss.com
Tue Feb 22 20:24:06 EST 2011
stree jang [http://community.jboss.org/people/streejang] created the discussion
"Re: how to get the taskId in "candidate-groups" sicenario?"
To view the discussion, visit: http://community.jboss.org/message/589121#589121
--------------------------------------------------------------
Hi Helal,
Before the execution of this sample process, I do have created a "market" group, a user "test1", and created the membership.
When this process is executed until this task, I wonder the way to acquire the current running task's taskId.
It was mentioned through this way, we can get a taskList, then further to get specific taskId. However this taskList.size() always be 0. I don't understand...
----
List<Task> taskList = taskService.findGroupTasks("test1");
System.out.println(taskList.size());
----
Besides I tried your way, also get the 0 result...
List<Task> taskList2 = taskService.createTaskQuery().candidate("test1").list();
System.out.println("taskList2.size(): " + taskList2.size());
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589121#589121]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110222/9531e2ad/attachment.html
More information about the jboss-user
mailing list