3 Replies Latest reply on Aug 30, 2010 2:35 PM by mbryan

    Group assignments


      Hey folks,


      i'm working with jpdl and i have to groups of actors that can solve one task. I'm working with doctors and nurses. Let's say, all the doctors are occupied and a nurse has to do the job. How can i write that down in jpdl?


      Thank you

        • 1. Re: Group assignments

          Please have a look at section of user guide: http://docs.jboss.com/jbpm/v4/userguide/html_single/#task

          • 2. Re: Group assignments

            Sorry, i forgot to mention two things: i'm working with jpdl 3.1.7 and with jbpm-simulation, so i don't only have a processdefintion, i also have a experiment-definition.


            i found http://docs.jboss.com/jbpm/v3/userguide/tutorial.html#taskassignmentexample this example and it is said that i'm supposed to add a few lines of code, but since everything in my project looks a bit different, this example doesn't work for me.

            • 3. Re: Group assignments

              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' />



              public class DoctorAssignmentHandler implements AssignmentHandler {
                  public void assign(Assignable assignable, ExecutionContext executionContext)
                          throws Exception {


              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