com.ibm.commerce.edp.commands

Class ProcessPaymentEventCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AEDPPaymentTaskCmd, AEDPTaskCmd, ProcessPaymentEventCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ProcessPaymentEventCmdImpl
    extends AEDPPaymentTaskCmdImpl
    implements ProcessPaymentEventCmd
    This is the default implementation of the ProcessPaymentEventCmd task command.

    Behaviour:

    • This task command sets the priority of payment event as medium, so the ECEvent will process the event as soon as possible. It is invoked when order begin currently, the customer can use this command when they want to accelerate the payment event.

    Input parameters:

    orderId A Long that indicates the id of the current order.
    commandContext The command context.

    Output parameters:

    None.

    Task commands called:

    None.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessPaymentEventCmdImpl

        public ProcessPaymentEventCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        A boolean that is true if the command is ready to execute and false otherwise.
      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the business logic of this command implementation. It changes the payment event in event bus to medium to accelerate the backend payment action execution.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - This exception is thrown for any kind of EDP exceptions.
      • reset

        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.

        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AEDPPaymentTaskCmdImpl