com.ibm.commerce.inventory.scheduled.commands

Class ReleaseToFulfillmentCmdImpl

    • Constructor Detail

      • ReleaseToFulfillmentCmdImpl

        public ReleaseToFulfillmentCmdImpl()
        This is the class constructor.
    • Method Detail

      • invokeOrderReleaseMessaging

        public static void invokeOrderReleaseMessaging(java.lang.Long anOrderRn,
                                                       java.lang.Long allocationRn,
                                                       java.lang.Integer anStoreId,
                                                       CommandContext aProcessingContext,
                                                       TypedProperty ahshRequestProperties)
                                                throws ECException
        Invoke order release messaging.
        Parameters:
        anOrderRn - the order Id
        allocationRn - the allocation number
        anStoreId - the store Id
        aProcessingContext - the command context
        ahshRequestProperties - the command request properties
        Throws:
        ECException - for failures
      • isGeneric

        public boolean isGeneric()
        Determine whether this command is generic. It always return false.
        Specified by:
        isGeneric in interface ControllerCommand
        Overrides:
        isGeneric in class ControllerCommandImpl
        Returns:
        Return false to indicate that this command cannot be run by a generic user.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Determine whether it is ready to execute the command. It always returns true.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        Return true to indicate that this command is ready to be executed.
      • performExecute

        public void performExecute()
                            throws ECException
        Executes the business logic of this command implementation.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECSystemException - If it cannot commit the transaction started by the command throws com.ibm.commerce.exception.ECSystemException with ECMessage.STA_COMMIT_DB_FAILURE
        ECSystemException - If the OrderJDBCHelper.findOrderToRelease has SQL exception throws com.ibm.commerce.exception.ECSystemException with ECMessage._ERR_FINDER_EXCEPTION
        ECSystemException - If the OrderJDBCHelper.findOrderToRelease has SQL exception throws com.ibm.commerce.exception.ECSystemException with ECMessage._ERR_SQL_EXCEPTION
        ECException
      • reset

        public void reset()
        Reset instance variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • validateParameters

        public void validateParameters()
                                throws ECException
        Extracts and validates the input parameters of this command implementation. Check mandatory parameters.

        Parameters

        • storeId
          • the store id

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECSystemException - If the store id has not been specified throws com.ibm.commerce.exception.ECSystemException with ECMessage._ERR_DIDNT_SET_MERCHANT

        ECException - for failures -- if the storeId was not specified