public class CancelOrderCmdImpl extends AEDPPaymentTaskCmdImpl implements CancelOrderCmd
CancelOrderCmd
task command.
EDP
order,
and cancels this EDP
order.commandContext |
The command context. |
orderId |
A Long that specifies the order id. |
forceFlag |
A Boolean that indicates if the request will be forced or no. |
defaultCommandClassName, NAME
Constructor and Description |
---|
CancelOrderCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getForcedCancel()
This method returns the forced flag that shows if this request will be forced or not.
|
boolean |
isReadyToCallExecute()
This method is called by the Command Framework to check if all basic mandatory parameters
have been set for this command.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
processBG()
This method actually executes the approve reversal action, and cancels the
active payment instructions of current
EDP order. |
void |
processFG()
This method is the main method to process the current cancel order
request.
|
void |
reset()
This method resets the command fields.
|
void |
setForcedCancel(java.lang.Boolean paramFlag)
This method sets the forced flag that shows if the cancel request will be forced or not.
|
getErrorMessageMap, getStoreId, insertActionListToActionDetailHash, insertActionListToEditActionDetailHash, isBgJobInWorking, isProcessBGExecutableInFG, setBgJobStatusInDb, setErrorMessageMap, setStoreId, toString, validateInsideProcessFG
getCurrency, getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatus
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public void setForcedCancel(java.lang.Boolean paramFlag)
forceFlag
whether they want to do the a
forced request or not.setForcedCancel
in interface CancelOrderCmd
paramFlag
- A Boolean that indicates if the request is forced or not.public java.lang.Boolean getForcedCancel()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AEDPPaymentTaskCmdImpl
public void processBG() throws EDPException, ECException
EDP
order. Then it cancels current
EDP
order.EDPException
ECException
public void processFG() throws ECException, EDPException
EDP
order has been canceled, if it is,
directly return.
It then checks all atomic payments of current EDP
order. And put all those
approved atomic payments to the reverse approval list to be
reverse approved later.
If the reverse approval list is empty and there are no active payment
instructions for current EDP
order, then cancel this EDP
order.ECException
EDPException