public class HumanResourceMO extends java.lang.Object implements WorkflowResourceMO
| Constructor and Description |
|---|
HumanResourceMO(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the the managed object with a platform context
and the subject representing the human participant.
|
HumanResourceMO(PlatformContext platform,
javax.security.auth.Subject subject,
AccountMO account)
Constructs the the managed object with a platform context, a subject,
and the managed object representing the human participant account.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(WorkflowSearchResultsMO results,
java.util.Locale locale)
Deprecated.
As of ITIM 4.6
getAssignments(WorkflowSearchResultsMO, Locale). |
AccountMO |
getAccount()
Returns the human participant account.
|
void |
getAssignmentGroups(WorkflowSearchResultsMO results,
java.util.Locale locale)
Retrieves groups of assignments for the participant involved.
|
java.util.Collection |
getAssignments()
Returns the assignments representing the human participant account.
|
void |
getAssignments(WorkflowSearchResultsMO results,
java.util.Locale locale)
Retrieves the assignments for the participant involved.
|
void |
getAssignments(WorkflowSearchResultsMO results,
java.lang.String processDesignId,
java.lang.String activityDesignId,
java.util.Locale locale)
Retrieves the assignments for the participant with the given
process design id and activity design id.
|
void |
getAssignmentsByDueDate(WorkflowSearchResultsMO results,
int searchLimit)
Retrieves the assignments for the participant involved.
|
public HumanResourceMO(PlatformContext platform, javax.security.auth.Subject subject)
platform - PlatformContext holding platform connection information.subject - Subject representing the authenticated caller.public HumanResourceMO(PlatformContext platform, javax.security.auth.Subject subject, AccountMO account)
platform - PlatformContext holding platform connection information.subject - Subject representing the authenticated caller.account - AccountMO representing the human participant account.public java.util.Collection getAssignments()
throws java.rmi.RemoteException,
AuthorizationException,
ApplicationException
getAssignments in interface WorkflowResourceMOWorkflowAssignmentMO for the human resource.java.rmi.RemoteException - Thrown if unable to communicate with platform.AuthorizationException - Thrown if subject is not a System Administrator
and try to obtain assignments representing the human participant
account other than himself.ApplicationException - Thrown if unable to retrieve the resource's
assignments.WorkflowAssignmentMOpublic void getAssignments(WorkflowSearchResultsMO results, java.util.Locale locale) throws java.rmi.RemoteException, ApplicationException
getAssignments in interface WorkflowResourceMOresults - WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of Assignment)
of the search.locale - User's locale to sort with. null value defaults
to Locale.USjava.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to retrieve the resource's
assignments.Assignmentpublic void getAssignmentsByDueDate(WorkflowSearchResultsMO results, int searchLimit) throws java.rmi.RemoteException, ApplicationException
results - WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of Assignment)
of the search.searchLimit - specifies an integer limit on the maximum number of
results to be returned, -1 to place no additional limit
on the size of the resultsjava.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to retrieve the resource's
assignments.Assignmentpublic void getAssignments(WorkflowSearchResultsMO results, java.lang.String processDesignId, java.lang.String activityDesignId, java.util.Locale locale) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
getAssignments in interface WorkflowResourceMOresults - WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of Assignment)
of the search.processDesignId - Design Id of the process definition to query for
AssignmentGroup.getProcessDesignId().activityDesignId - Design Id of the activity definition to query for
AssignmentGroup.getActivityDesignId().locale - User's locale to sort with. null value defaults
to Locale.USjava.rmi.RemoteException - Thrown if unable to communicate with platform.AuthorizationException - Thrown if subject is not a System Administrator
and try to obtain assignments representing the human participant
account other than himself.ApplicationException - Thrown if unable to retrieve the resource's
assignments.Assignmentpublic void getAssignmentGroups(WorkflowSearchResultsMO results, java.util.Locale locale) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
getAssignmentGroups in interface WorkflowResourceMOresults - WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of AssignmentGroup)
of the search.locale - User's locale to sort with. null value defaults
to Locale.USjava.rmi.RemoteException - Thrown if unable to communicate with platform.AuthorizationException - Thrown if subject is not a System Administrator
and try to obtain assignments representing the human participant
account other than himself.ApplicationException - Thrown if unable to retrieve the resource's
assignments.AssignmentGrouppublic void execute(WorkflowSearchResultsMO results, java.util.Locale locale) throws java.rmi.RemoteException, ApplicationException
getAssignments(WorkflowSearchResultsMO, Locale).results - WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of Assignment)
of the search.locale - User's locale to sort with. null value defaults
to Locale.USjava.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to execute the search.
This is most likely caused by an invalid
parameter in the request.Assignmentpublic AccountMO getAccount()