JBoss Community

Group assignments

reply from Max Bryan in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community