public interface HandleApprovalsCmd
extends com.ibm.commerce.tools.command.ToolsControllerCommand
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. 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.
Modifier and Type | Field and Description |
---|---|
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".
|
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
static final java.lang.String NAME
java.lang.Integer getAprvAct()
java.lang.String getAprvIds()
java.lang.String getComments()
java.lang.String getViewTask()
void setAprvAct(java.lang.Integer newAprvAct)
newAprvIds
- The action. This corresponds to the value of the APPROVAL column
in the flow transition (FLTRANSITN) table which will be used to select the
appropriate transition.void setAprvIds(java.lang.String newAprvIds)
newAprvIds
- The list of approval status IDs to be acted on.void setComments(java.lang.String newComments)
newComments
- The optional approval/rejection comments supplied by the approver.void setViewTask(java.lang.String newViewTask)
newViewTask
- The view task to be set upon completion of the command.