KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > assignment > AssignmentManager


1 package org.enhydra.shark.api.internal.assignment;
2
3 import org.enhydra.shark.api.*;
4 import org.enhydra.shark.api.internal.working.CallbackUtilities;
5
6 import java.util.List JavaDoc;
7
8 /**
9  * AssignmentManager is responsible for evaluating assignments.
10  *
11  * @author Sasa Bojanic
12  */

13 public interface AssignmentManager {
14
15    /**
16     * Method configure is called at Shark start up, to configure
17     * implementation of AssingmentManager.
18     *
19     * @param cus an instance of CallbackUtilities used to get
20     * properties for configuring.
21     *
22     * @exception RootException Thrown if configuring doesn't succeed.
23     */

24    void configure (CallbackUtilities cus) throws RootException;
25
26    /**
27     * Method getAssignments evaluates a List of users that get
28     * an assignment for Activity <i>actId</i>.
29     *
30     * @param t SharkTransaction.
31     * @param engineName String defined for Shark instance.
32     * @param procId id of a process.
33     * @param actId id of an activity to make assignemts for
34     * @param userIds a List of user ids mapped for participant
35     * defined in XPDL.
36     * @param responsibleIds a List of user ids mapped for responsible
37     * participant from the XPDL
38     * @param processRequesterId user id of process requester (user that
39     * started process, or if process is sub-flow
40     * one that started calling process).
41     *
42     * @return List of user ids to make assignments for.
43     *
44     * @exception RootException Thrown if evaluation cannot resolve some
45     * exception internally.
46     */

47    List JavaDoc getAssignments (
48                         SharkTransaction t,
49                         String JavaDoc engineName,
50                         String JavaDoc procId,
51                         String JavaDoc actId,
52                         List JavaDoc userIds,
53                         List JavaDoc responsibleIds,
54                         String JavaDoc processRequesterId,
55                         PerformerData xpdlParticipant,
56                         List JavaDoc xpdlResponsibleParticipants) throws RootException;
57
58 }
59
60
Popular Tags