Processes approvals or rejections. The approver may either approve or reject one or more approval requests. The approver may supply an optional comment which will be stored in the approval request's record in the APRVSTATUS table. This comment can be viewed by the request submitter.
Behaviour This command will raise a business flow event to handle each approval or rejection. The business flow event will handle the updating of the APRVSTATUS table as well as any other activities which have been defined for this transition. The status of the approval requests record in the APRVSTATUS table will be updated to 1 for approved or 2 for rejected.
The command treats each approval or rejection as a separate transaction so it is possible that if command is invoked to process a batch of approvals or rejections, some may succeed and others may fail.
The command will set the resultMsg for the view it sets to indicate the success or failure of the processing. The value of resultMsg will be the appropriate key into the ubfapprovalsNLS properties file for the message to be displayed by the JSP.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName The default implementation class is "com.ibm.commerce.approval.commands.HandleApprovalsCmdImpl" |
static java.lang.String |
NAME The name of this interface is "com.ibm.commerce.approval.commands.HandleApprovalsCmd". |
Method Summary | |
---|---|
java.lang.Integer |
getAprvAct() Gets the action. |
java.lang.String |
getAprvIds() Gets the list of approval status IDs to be acted on. |
java.lang.String |
getComments() Gets the comments. |
java.lang.String |
getViewTask() Gets the view task name. |
void |
setAprvAct(java.lang.Integer newAprvAct) Sets the action. |
void |
setAprvIds(java.lang.String newAprvIds) Sets the list of approval status IDs to be acted on. |
void |
setComments(java.lang.String newComments) Sets the comments. |
void |
setViewTask(java.lang.String newViewTask) Sets the view task name. |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
performExecute,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
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 java.lang.Integer getAprvAct()
public java.lang.String getAprvIds()
public java.lang.String getComments()
public java.lang.String getViewTask()
public void setAprvAct(java.lang.Integer newAprvAct)
public void setAprvIds(java.lang.String newAprvIds)
newAprvIds
- The list of approval status IDs to be acted
on.public void setComments(java.lang.String newComments)
newComments
- The optional approval/rejection comments
supplied by the approver.public void setViewTask(java.lang.String newViewTask)
newViewTask
- The view task to be set upon completion of the
command.