|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.workflow.model.AssignmentEntity
Class that provides management capabilities for an Assignment in a workflow Activity.
Constructor Summary | |
---|---|
AssignmentEntity(Assignment assignment)
Constructs with Assignment value object. |
Method Summary | |
---|---|
void |
complete(DistinguishedName user)
Signals completion of the assignment to the workflow engine. |
void |
complete(DistinguishedName user,
ActivityResult result)
Signals completion of the assignment to the workflow engine and provides the engine with the activity result in the same call. |
void |
defer(int deferralDays)
Defers the workitem for specified number of days In 4.6, the only item that can be deferred is Compliance Alert Manual Activity |
void |
delegate(DistinguishedName personDN,
DistinguishedName currentPersonDN)
Re-assign (delegate) the assignment to another person. |
ActivityEntity |
getActivity()
Returns the activity associated with this assignment. |
static AssignmentEntity |
getAssignment(long assignmentId)
Returns an assignment associated with the id. |
java.util.List |
getInputParameters()
Returns list of input parameters for this assignment. |
java.util.Collection |
getPotentialOwners()
Returns a list of potention participants this work item could be delegated. |
java.util.Collection |
getPotentialOwners(boolean onlyExistingPotentialOwners)
Returns existing potential owner(s) of the activity. |
Assignment |
getValueObject()
Returns the value object holding details about this assignment. |
void |
lock(DistinguishedName userDN)
Locks the assignment. |
void |
setValueObject(Assignment assignment)
Sets the value object holding details about this assignment. |
void |
unlock(DistinguishedName personDN)
Unlocks the assignment. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AssignmentEntity(Assignment assignment)
assignment
- Assignment value object.Method Detail |
public void complete(DistinguishedName user) throws WorkflowException
user
- Participant of the assignment.
WorkflowException
- Thrown if an error occured trying to
process the completion.public void complete(DistinguishedName user, ActivityResult result) throws WorkflowException
user
- Participant of the assignment.result
- ActivityResult holding the result of the completing assignment.
WorkflowException
- Thrown if an error occured trying to
process the completion.public void delegate(DistinguishedName personDN, DistinguishedName currentPersonDN) throws WorkflowException
personDN
- DistinguishedName of the person delegated the assignment.currentPersonDN
- Person distinguished name of the current logged in user. This parameter is null
if this work is done on behalf of the System Administrator.
WorkflowException
- if an error occurred trying to
delegate the assignment.
WorkflowException
public java.util.Collection getPotentialOwners() throws WorkflowException
WorkflowException
- Thrown if an error occured trying to retrieve the owners
of this work item.public java.util.Collection getPotentialOwners(boolean onlyExistingPotentialOwners) throws WorkflowException
onlyExistingPotentialOwners
- A flag to indicate that only
existing potential owner(s) should be returned, when its
value is 'true'. If 'false' then an WorkflowException is
thrown if a potential owner is not present.
WorkflowException
- Thrown if an error occured trying to retrieve the owners
of this work item.public void lock(DistinguishedName userDN) throws WorkflowException
userDN
- DistinguishedName of the system user locking the assignment.
WorkflowException
- Thrown if an error occured trying to
lock the assignment.
WorkflowException
public void unlock(DistinguishedName personDN) throws WorkflowException
personDN
- Person distinguished name of the current logged in user. This parameter is null
if this work is done on behalf of the System Administrator.
WorkflowException
- Thrown if an error occured trying to
unlock the assignment.
WorkflowException
public void defer(int deferralDays) throws WorkflowException
deferralDays
- the number of days to defer the workorder
WorkflowException
- if there is a failure to defer the workitempublic static AssignmentEntity getAssignment(long assignmentId) throws WorkflowException
assignmentId
- Id of the assignment
WorkflowException
- Thrown if unable to retrieve the assignment.public ActivityEntity getActivity() throws WorkflowException
WorkflowException
- Thrown if unable to retrieve the activity.public java.util.List getInputParameters() throws WorkflowException
WorkflowException
- Thrown if unable to retrieve the input
parameters.public Assignment getValueObject()
public void setValueObject(Assignment assignment)
assignment
- Assignment value object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |