[jboss-user] [JBoss jBPM] - Re: pooled actors

peterah do-not-reply at jboss.com
Fri Nov 2 06:50:31 EDT 2007


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);
  | 	}
  | 
  | }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101230#4101230

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101230



More information about the jboss-user mailing list