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&...]