public class OrderProcessCheckApprovalCmdImpl extends TaskCommandImpl implements OrderProcessCheckApprovalCmd
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
OrderProcessCheckApprovalCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkApproval()
This method implemented the business logic of whether the order requires approval.
|
java.lang.String |
getEventIdentifier()
Allow the entry action to return an eventIdentifier to start an automatic transition.
|
void |
performExecute()
Calls checkApproval() to find out if the approval is required.
|
void |
reset()
Resets all instance variables.
|
void |
setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
The BusinessFlowEventListener will use this method to pass in all data the command needs.
|
void |
setEntityId(java.lang.Long anEntityId)
Allow UBF passes an entity Id to the entry action command.
|
void |
setEntityObject(java.lang.Object anEntityObject)
Allow UBF passes an entity object to the entry action command to avoid instantiating another instance of entity object.
|
void |
validateParameters()
Validates parameters.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public boolean checkApproval()
throws ECException
ECExceptionpublic java.lang.String getEventIdentifier()
getEventIdentifier in interface com.ibm.commerce.ubf.commands.EntryActionCmdpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
setBusinessFlowEventData in interface com.ibm.commerce.ubf.commands.EntryActionCmdanEventData - The business flow event data which includes all information, including requestPropoerties,
commandContext and so forth.public void setEntityId(java.lang.Long anEntityId)
setEntityId in interface com.ibm.commerce.ubf.commands.EntryActionCmdanEntityId - The entity Id.public void setEntityObject(java.lang.Object anEntityObject)
setEntityObject in interface com.ibm.commerce.ubf.commands.EntryActionCmdanEntityObject - The entity object.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException