[jboss-user] [jBPM] - Group assignments
Max Bryan
do-not-reply at jboss.com
Mon Aug 30 14:35:57 EDT 2010
Max Bryan [http://community.jboss.org/people/MBryan] replied to the discussion
"Group assignments"
To view the discussion, visit: http://community.jboss.org/message/559601#559601
--------------------------------------------------------------
Okay, i figured out how to implement an assignment:
<task-node name="endoskopie">
<task name="endoskopie">
<assignment class='org.jbpm.sim.tutorial.business.newProcess.DoctorAssignmentHandler' />
</task>
...
</task-node>
public class DoctorAssignmentHandler implements AssignmentHandler {
@Override
public void assign(Assignable assignable, ExecutionContext executionContext)
throws Exception {
assignable.setActorId("doctor");
}
}
But now i have additional questions:
-How can i tell jpdl, that the doctor used in the assignment is the same as in the swimlane doctor?
-If no doctor is available, how can i tell jpdl, that it should use another role, e.g. a nurse?
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/559601#559601]
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/20100830/6ef929d1/attachment.html
More information about the jboss-user
mailing list