public class AssignmentEntity
extends java.lang.Object
| Constructor and Description |
|---|
AssignmentEntity(Assignment assignment)
Constructs with Assignment value object.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
complete(DistinguishedName user,
ActivityResult result,
java.lang.String justification)
Signals completion of the assignment to the workflow engine and provides
the engine with the activity result and justification in the same call.
|
java.util.Date |
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.
|
Assignment |
getValueObject()
Returns the value object holding details about this assignment.
|
void |
lock(DistinguishedName userDN)
Locks the assignment.
|
void |
save(DistinguishedName userDN,
java.util.List inputParameters)
Saves this assignment with the specified list of input parameters.
|
void |
setValueObject(Assignment assignment)
Sets the value object holding details about this assignment.
|
void |
unlock(DistinguishedName personDN)
Unlocks the assignment.
|
public AssignmentEntity(Assignment assignment)
assignment - Assignment.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 complete(DistinguishedName user, ActivityResult result, java.lang.String justification) throws WorkflowException
user - Participant of the assignment.result - ActivityResult holding the result of the completing assignment.justification - Justification provided by the workflow participant at
the time of completing the pending 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 occured trying to
delegate the assignment.WorkflowExceptionpublic java.util.Collection getPotentialOwners()
throws WorkflowException
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.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.public java.util.Date defer(int deferralDays)
throws WorkflowException
deferralDays - the number of days to defer the workitemWorkflowException - if there is a failure to defer the workitempublic static AssignmentEntity getAssignment(long assignmentId) throws WorkflowException
assignmentId - Id of the assignmentWorkflowException - 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 void save(DistinguishedName userDN, java.util.List inputParameters) throws WorkflowException
userDN - DistinguishedName of the system user saving this assignment.inputParameters - List of input parameters to be saved for this assignment.
The order is important as there are no names provided
for the parameters, just the values.WorkflowException - Thrown if unable to save this assignment.public Assignment getValueObject()
public void setValueObject(Assignment assignment)
assignment - Assignment value object.