1 5 6 package org.exoplatform.services.workflow.delegation; 7 8 import org.jbpm.delegation.AssignmentHandler; 9 import org.jbpm.delegation.AssignmentContext; 10 11 16 public class BossAssignementHandler implements AssignmentHandler{ 17 18 public String selectActor(AssignmentContext assignmentContext) { 19 System.out.println("In selectActor of BossAssignementHandler : "); 20 System.out.println(" --> Previous actor : " + assignmentContext.getPreviousActorId()); 21 if("benj".equals(assignmentContext.getPreviousActorId()) || 22 "bossOfBenj".equals(assignmentContext.getPreviousActorId())){ 23 System.out.println(" --> Next actor : bossOfBenj"); 24 return "bossOfBenj"; 25 } 26 return ""; 27 } 28 } 29 | Popular Tags |