|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.apps.workflow.WorkflowAssignmentMO
This provides management capabilities for an assignment, or work item.
Constructor Summary | |
---|---|
WorkflowAssignmentMO(PlatformContext platform,
javax.security.auth.Subject subject,
long id)
Constructs the the managed object with a platform context, a subject, and the managed object representing the workflow assignment. |
Method Summary | |
---|---|
void |
complete()
Signals completion of the assignment to the workflow engine. |
void |
complete(ActivityResult result)
Signals completion of the activity to the workflow engine and provides the engine with the activity result in the same call. |
void |
defer(int deferralTime,
java.lang.String deferralReason)
Defers the assignment for the specified number of days In ITIM 4.6, the only item that can be deferred is compliance alert manual activity |
void |
delegate(PersonMO newOwner)
Delegates/forwards the assignment to another participant. |
WorkflowActivityMO |
getActivity()
Returns the activity that generated this assignment. |
Assignment |
getData()
Returns details about this assignment. |
long |
getID()
Returns the identifier of the assignment. |
java.util.List |
getInputParameters()
Returns the parameter list of the assignment. |
java.util.Collection |
getPotentialOwners()
Returns the list of potential owners of the activity. |
java.util.Collection |
getPotentialOwners(boolean onlyExistingPotentialOwners)
Returns the existing list of potential owners of the activity. |
void |
lock()
Locks the assignment so that other participants do not duplicate the effort to complete it unless the lock is released. |
void |
unlock()
Unlocks the assignment so that other participants may themselves lock or or complete it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkflowAssignmentMO(PlatformContext platform, javax.security.auth.Subject subject, long id)
platform
- PlatformContext holding platform connection information.subject
- Subject representing the authenticated caller.id
- long representing the id of the assignment.Method Detail |
public long getID()
public WorkflowActivityMO getActivity() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the activity.public void complete() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
ActivityResult.STATUS_COMPLETE
completion status and
(@link ActivityResult#SUCCESS} summary result.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
complete the assignment.
ApplicationException
- Thrown if an error occured trying to
process the completion.public void complete(ActivityResult result) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
result
- ActivityResult holding the result of the activity.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
complete the activity.
ApplicationException
- Thrown if an error occured trying to
process the completion.public Assignment getData() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the assignment.public java.util.List getInputParameters() throws java.rmi.RemoteException, ApplicationException
RelevantDataItem representing the input parameters.
The order is important as there are no names provided for the
parameters, just the values.
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the assignment's
input parameters.
public void delegate(PersonMO newOwner) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
newOwner
- PersonMO representing the new owner of the assignment.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client delgating is not a member
of the potential owner list or if the delegate is not a member
of the potential owner list. Potential owners are defined during
the design time of the activity.
ApplicationException
- Thrown if unable to delegate the assignment.public void lock() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is not a member of
of the potential owner list. The potential owners are
defined during the design time of the activity.
ApplicationException
- Thrown if unable to lock the assignment.public java.util.Collection getPotentialOwners() throws java.rmi.RemoteException, ApplicationException
PersonMO.
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve potential
owners due to application error.
public java.util.Collection getPotentialOwners(boolean onlyExistingPotentialOwners) throws java.rmi.RemoteException, ApplicationException
onlyExistingPotentialOwners
- A flag to indicate that only
existing potential owner(s) should be returned, when its
value is 'true'. If 'false' then an ApplicationException is
thrown if a potential owner is not present.
PersonMO.
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve potential
owners due to application error.
public void unlock() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is not a member of
the potential owner list to unlock the assignment.
Potential owners are defined during the design time of
the activity.
ApplicationException
- Thrown if unable to unlock the assignment.
This may be due to the assignment being completed already.public void defer(int deferralTime, java.lang.String deferralReason) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
deferralTime
- the number of days to defer this assignment.
If deferralDays is more than the limit set for the activity
(which is maximum deferral days - already deferred days),
it will be deferred for the number of days defined in the activity as the
maximum deferral limit.
If deferralDays would push the due date beyond the maximum deferral limit, the workitem
will be deferred until the last possible due date (initial creation time of activity +
maximum deferral limit of activity)deferralReason
- the explanation of why this assignment was deferred (to be audited)
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
defer the assignment.
ApplicationException
- Thrown if unable to defer the assignment.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |