public interface ApprovalProcessRecordsCmd
extends com.ibm.commerce.command.TaskCommand
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.
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
static final java.lang.String NAME
void setAction(java.lang.Integer action)
action
- The action being performed: approve, reject, or cancelvoid setActorId(java.lang.Long actorId)
actorId
- The user acting on the approvalvoid setBusinessEntityId(java.lang.Long businessEntityId)
businessEntityId
- The entity on which the approval is being donevoid setBusinessFlowId(java.lang.Long businessFlowId)
businessFlowId
- The flow being used for this approvalvoid setComment(java.lang.String comment)
comment
- The reason supplied by actor for performing the action