org.enhydra.shark.api.internal.assignment
Interface AssignmentManager


public interface AssignmentManager

AssignmentManager is responsible for evaluating assignments.

Author:
Sasa Bojanic

Method Summary
 void configure(CallbackUtilities cus)
          Method configure is called at Shark start up, to configure implementation of AssingmentManager.
 java.util.List getAssignments(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId, java.lang.String processRequesterId, PerformerData xpdlParticipant, java.util.List xpdlResponsibleParticipants)
          Method getAssignments evaluates a List of users that get an assignment for Activity actId.
 ParticipantMappingManager getParticipantMapPersistenceManager()
           
 UserGroupManager getUserGroupManager()
           
 

Method Detail

configure

public void configure(CallbackUtilities cus)
               throws java.lang.Exception
Method configure is called at Shark start up, to configure implementation of AssingmentManager.

Parameters:
cus - an instance of CallbackUtilities used to get properties for configuring.
Throws:
java.lang.Exception - Thrown if configuring doesn't succeed.

getAssignments

public java.util.List getAssignments(WMSessionHandle shandle,
                                     java.lang.String procId,
                                     java.lang.String actId,
                                     java.lang.String processRequesterId,
                                     PerformerData xpdlParticipant,
                                     java.util.List xpdlResponsibleParticipants)
                              throws java.lang.Exception
Method getAssignments evaluates a List of users that get an assignment for Activity actId.

Parameters:
procId - id of a process.
actId - id of an activity to make assignemts for
processRequesterId - user id of process requester (user that started process, or if process is sub-flow one that started calling process).
xpdlParticipant - structure providing information about performer of the activity as definied in XPDL
xpdlResponsibleParticipants - list of PerformerData structures providing information about XPDL participants representing responsibles
Returns:
List of user ids to make assignments for.
Throws:
java.lang.Exception - Thrown if evaluation cannot resolve some exception internally.

getParticipantMapPersistenceManager

public ParticipantMappingManager getParticipantMapPersistenceManager()

getUserGroupManager

public UserGroupManager getUserGroupManager()