1 package org.enhydra.shark.assignment; 2 3 4 import org.enhydra.shark.api.*; 5 import org.enhydra.shark.api.internal.assignment.*; 6 import org.enhydra.shark.api.internal.working.CallbackUtilities; 7 8 import java.util.*; 9 10 15 public class StandardAssignmentManager implements AssignmentManager { 16 17 private CallbackUtilities cus; 18 public void configure (CallbackUtilities cus) throws RootException { 19 this.cus=cus; 20 } 21 22 23 public List getAssignments (SharkTransaction t, 24 String engineName, 25 String procId, 26 String actId, 27 List userIds, 28 List responsibleIds, 29 String processRequesterId, 30 PerformerData xpdlParticipant, 31 List xpdlResponsibleParticipants) throws RootException { 32 33 if (userIds!=null && userIds.size()>0) return userIds; 34 if (responsibleIds!=null && responsibleIds.size()>0) return responsibleIds; 35 List ret=new ArrayList(); 37 ret.add(processRequesterId); 38 return ret; 39 } 40 41 } 42 | Popular Tags |