This content has been marked as final.
Show 4 replies
-
1. Re: pooled actors
peterah Nov 2, 2007 6:50 AM (in response to armita)you may assign pooled actors with an AssignmentHandler
for example with processdefinition.xml like this:<task name="test"> <assignment class="RoleAssignmentHandler"> </assignment> </task>
then create class RoleAssignmentHandler :public class RoleAssignmentHandler implements AssignmentHandler { public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception { String[] actors = {"Bill","John"}; assignable.setPooledActors(actors); } }
-
2. Re: pooled actors
kukeltje Nov 2, 2007 8:03 AM (in response to armita)you can also put a groupname in the pooled actors attribute
-
3. Re: pooled actors
armita Nov 2, 2007 10:32 AM (in response to armita)I also find out that you can set somethng like actor-id="actorId" in the assignment when defining it as a pooled actor. But Jbpm gives an error informing that it could not find the pooled actor.
My question is how can I set up the pooled actors so that Jbpm could find them. -
4. Re: pooled actors
kukeltje Nov 3, 2007 8:38 AM (in response to armita)actor-id != pooled actor.
actor-id is an individual actor (ie a 'user' in the jbpm identity table) and what this is is up to you.
pooled actors contains a list of individual actors and/or groups (in the jbpm identity table)
So setting up 'pooled' actors is greating a group and making users member of that group