public class UndoPaymentActionsCmdImpl extends TaskCommandImpl implements UndoPaymentActionsCmd
1. If the original action data is for the approval payment, then the ReverseApprove action is executed. And if the ReverseApprove action keeps pending or fails, there will be a tickler.
2. If the original action data is for other types of payment, then only a tickler is created. But it leaves you an extension point. And you can customize the corresponding method to handle the compensated payment action for these payment actions, respectively. Input parameters include:
Constructor and Description |
---|
UndoPaymentActionsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | executeCompensatePaymentAction()
This method executes the compensated payment action.
|
ActionData | getOriginalActionData()
This method returns the original action data that has been successfully executed.
|
java.lang.String | getTicklerComments()
This method returns the comments of the tickler.
|
protected void | handleUndoPaymentActionForApproval()
This method handles the compensate payment action of the approval payment action.
|
protected void | handleUndoPaymentActionForApproveAndDeposit()
This method handles the compensate payment action of the ApproveAndDeposit payment action.
|
protected void | handleUndoPaymentActionForCredit()
This method handles the compensate payment action of the Credit payment action.
|
protected void | handleUndoPaymentActionForDeposit()
This method handles the compensate payment action of the Deposit payment action.
|
protected void | handleUndoPaymentActionForReverseApproval()
This method handles the compensate payment action of the ReverseApproval payment action.
|
protected void | handleUndoPaymentActionForReverseCredit()
This method handles the compensate payment action of the ReverseCredit payment action.
|
protected void | handlUndoPaymentActionForReverseDeposit()
This method handles the compensate payment action of the ReverseDeposit payment action.
|
boolean | isReadyToCallExecute()
This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command.
|
boolean | isTicklerNeeded()
This method returns whether a tickler is necessary when the undo payment action is not successfully executed.
|
void | performExecute()
This method executes the main logic of this command.
|
void | reset()
This method resets the command fields.
|
void | setOriginalActionData(ActionData localOriginalActionData)
This method sets the original action data that has been successfully executed.
|
void | setTicklerComments(java.lang.String localTicklerComments)
This method sets the comments of the tickler.
|
void | setTicklerNeeded(boolean localTicklerNeeded)
This method sets whether a tickler is necessary when the undo payment action is not successfully executed.
|
public void setOriginalActionData(ActionData localOriginalActionData)
public ActionData getOriginalActionData()
public void performExecute() throws ECException
protected void executeCompensatePaymentAction()
protected void handleUndoPaymentActionForApproval()
You can extend this method when the out-of-the-box feature can not fulfill your requirement.
protected void handleUndoPaymentActionForApproveAndDeposit()
You can extend this method when the out-of-the-box feature can not fulfill your requirement.
protected void handleUndoPaymentActionForDeposit()
You can extend this method when the out-of-the-box feature can not fulfill your requirement.
protected void handleUndoPaymentActionForReverseApproval()
You can extend this method when the out-of-the-box feature can not fulfill your requirement.
protected void handlUndoPaymentActionForReverseDeposit()
You can extend this method when the out-of-the-box feature can not fulfill your requirement.
protected void handleUndoPaymentActionForReverseCredit()
You can extend this method when the out-of-the-box feature can not fulfill your requirement.
protected void handleUndoPaymentActionForCredit()
You can extend this method when the out-of-the-box feature can not fulfill your requirement.
public boolean isTicklerNeeded()
public void setTicklerNeeded(boolean localTicklerNeeded)
public java.lang.String getTicklerComments()
public void setTicklerComments(java.lang.String localTicklerComments)
public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.
public boolean isReadyToCallExecute()