com.ibm.commerce.approval.commands
Interface ApprovalProcessCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
ApprovalProcessCmdImpl

public interface ApprovalProcessCmd
extends TaskCommand

Delegates to ApprovalProcessRecordsCmd to process an approval action. 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 will set up for and call ApprovalProcessRecordsCmd.


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 list of approval status IDs to be acted on.
 void setBusinessFlowEventData(BusinessFlowEventData businessFlowEventData)           Sets the data structure used to process the approval.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of the Command Interface class.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class.
See Also:
Constant Field Values
Method Detail

setAction

public void setAction(java.lang.Integer action)
Sets the list of approval status IDs to be acted on.
Parameters:
action - The type of approval action beign taken: approve, reject, or cancel (represented by integers)

setBusinessFlowEventData

public void setBusinessFlowEventData(BusinessFlowEventData businessFlowEventData)
Sets the data structure used to process the approval.
Parameters:
businessFlowEventData - The data for the event representing the approval action.