Processes an approval action with respect to the approval records. Approval actions include the approver approving or rejecting or the submitter canceling. The approver may supply an optional comment which will be stored in the approval request's record in the APRVSTATUS table.
Before executing this task command the following sets should be performed:
Behaviour
This command loop through the records in the APRVSTATUS table for the given entity. Records that are for the given entity, but whose approver_id does not match the actor, get deleted. If there is a record whose approver_id matches the actor for the given entity, the status and action timestamp are updated.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName The default implementation class. |
static java.lang.String |
NAME The name of the Command Interface class. |
Method Summary | |
---|---|
void |
setAction(java.lang.Integer action) Sets the action being performed: approve, reject, or cancel. |
void |
setActorId(java.lang.Long actorId) Sets the user performing the action. |
void |
setBusinessEntityId(java.lang.Long businessEntityId) Sets the ID of the business entity object being acted on. |
void |
setBusinessFlowId(java.lang.Long businessFlowId) Sets the flow being used for this approval process. |
void |
setComment(java.lang.String comment)
Sets a comment that the actor wants included with the
action. |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public void setAction(java.lang.Integer action)
action
- The action being performed: approve, reject, or
cancelpublic void setActorId(java.lang.Long actorId)
actorId
- The user acting on the approvalpublic void setBusinessEntityId(java.lang.Long businessEntityId)
businessEntityId
- The entity on which the approval is being
donepublic void setBusinessFlowId(java.lang.Long businessFlowId)
businessFlowId
- The flow being used for this
approvalpublic void setComment(java.lang.String comment)
comment
- The reason supplied by actor for performing the
action