KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > assignment > StandardAssignmentManager


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 /**
11  *
12  * @author Sasa Bojanic
13  *
14  */

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 JavaDoc engineName,
25                                String JavaDoc procId,
26                                String JavaDoc actId,
27                                List userIds,
28                                List responsibleIds,
29                                String JavaDoc 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       //if (extAttribs!=null)
36
List ret=new ArrayList();
37       ret.add(processRequesterId);
38       return ret;
39    }
40
41 }
42
Popular Tags