[JBoss jBPM] - Get tasks by a user's group
by dnowak
Hi,
I'm just getting off with jBPM, and this is my first post in this forum: Hello everyone :)
So far, I've gotten everything to work, until now. I'd like to get a list of all tasks assigned to groups a specific user belongs to.
Example: User frank1 is in group sales and management. A task is assigned to management. I want to get this task by placing a query about tasks for frank1.
Basically something like "findPooledTaskInstances(actorID)", which I've found in the guide:
"To fetch the group task list for a given user, proceed as follows: Make a collection that includes the user's actorId and all the ids of groups that the user belongs to. With TaskMgmtSession.findPooledTaskInstances(String actorId) or TaskMgmtSession.findPooledTaskInstances(List actorIds) you can search for task instances that are not in a personal task list (actorId==null) and for which there is a match in the pooled actorIds. "
The result unfortunately is empty:( How can I accomplish this?
Thanks a lot and best regards,
Damian
PS: Is there any API about Groups? I defined some groups in the JBPM Console, but can't find any way to access them. Help please? :/
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220728#4220728
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220728
17 years
[JBoss jBPM] - A question on Transitions
by Toriton
Hi all, i ahve a little question.
This is a part of my Process definition
| <state name="stateA">
| <event type="node-enter">
| <action class="com.example.AnActionHandler"></action>
| </event>
| <event type="node-leave">
| <cancel-timer name="MailSender"/>
| </event>
| <timer duedate="30 seconds" name="MailSender" transition="to nodeMail"></timer>
| <transition to="stateB" name="to stateB"></transition>
| <transition to="nodeMail" name="to nodeMail"></transition>
| </state>
|
In this case i have a stateA that have 2 transitions, one is related at normal workflow, the transition named to stateB, and the other that is invoked only from a timer.
And it work properly if i invoke the signal() method from a webapp that i use to test the process workflow.
But the question is: there is any chance to configure the transition nodeMail to be invoked only by the timer? and not from the signal() method?
Because if configured as i described before, the signal() method is perfect anyway to call correctly the transition to stateB, but if the order of the transitions is changed in:
| <transition to="nodeMail" name="to nodeMail"></transition>
| <transition to="stateB" name="to stateB"></transition>
|
the transition named to nodeMail is the only one transition available invoking the signal() method.
I know that i can call transition by name too, but i was looking if there was a chance to lock some transition to be executed if who is calling is not the one i expect.
Thank in advance for any :) reply.
T.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220607#4220607
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220607
17 years