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 HRAssignementHandler implements AssignmentHandler{ 17 18 public String selectActor(AssignmentContext assignmentContext) { 19 System.out.println("In selectActor of HRAssignementHandler : "); 20 System.out.println(" --> Previous actor : " + assignmentContext.getPreviousActorId()); 21 if("bossOfBenj".equals(assignmentContext.getPreviousActorId())){ 22 System.out.println(" --> Next actor : Hrofbenj"); 23 return "Hrofbenj"; 24 } 25 return ""; 26 } 27 28 } | Popular Tags |