com.ibm.commerce.inventory.commands

Class ResolveReleasesCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ResolveReleasesCmd, 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 ResolveReleasesCmdImpl
    extends TaskCommandImpl
    implements ResolveReleasesCmd
    Default implementation of the ResolveReleasesCmd interface. Updates and / or return a list of releases available to be shipped.

    This command first retrieves all the NEW releases for a given order.

    If there is an item in each release "tied" with tieship code. Then it will try to resolve it for being tied to future order, backorder, and to be ready among releases.

    The resolved releases will be moved from NEW to RDY on ordreleases.status returned a list of newly resolved releases via getResolvedOrderReleases()

    This command requires to have the order id set in the command context. Required parameters are listed in the validateParameters() method.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • ORDRELEASE_RDY

        public static final java.lang.String ORDRELEASE_RDY
        ORDRELEASE table constants
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResolveReleasesCmdImpl

        public ResolveReleasesCmdImpl()
    • Method Detail

      • getInstance

        public static ResolveReleasesCmd getInstance(CommandContext aCommandContext)
                                              throws ECException
        Returns the instance from the command context. Creates one in the command context if one is not there already.
        Parameters:
        aCommandContext - The command context as CommandContext object.
        Returns:
        the instance from the command context.
        Throws:
        ECException
      • setRequestProperties

        public void setRequestProperties(TypedProperty newRequestProperties)
                                  throws ECApplicationException
        Sets the information into the command local variable. Caller sets up the parameters in the properties field then it calls this method which calls the setters for each property.
        Specified by:
        setRequestProperties in interface ResolveReleasesCmd
        Parameters:
        newRequestProperties - receipt properties All parameters are optional (null allowed) for this method, though may be required for the command.
        Throws:
        ECApplicationException
        See Also:
        validateParameters()
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Ready to be executed.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        Always true.
      • validateParameters

        public void validateParameters()
                                throws ECException

        Checks the information of the command Make sure all the required parameters were passed in, or collected from somewhere. Fields required to be set beforehand

        • order has been set
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - If mandatory parameters are not passed in, throw ECApplicationException specifying _ERR_BAD_MISSING_CMD_PARAMETER
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the execution of resolving releases.

        If this is an expected inventory receipt, the quantity received and quantity remaining of the corresponding expected inventory record detail will be updated.

        If the receipt is created successfully, the receipt identifier will be returned and the receipt will be made available to the distribution arrangement by calling MakeReceiptAvailableCmd.

        Utilizes the following beans

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException -
        • ECSystemException Create error, _ERR_CREATE_EXCEPTION
        • ECSystemException Finder error, _ERR_FINDER_EXCEPTION
        • ECSystemException Naming error, _ERR_NAMING_EXCEPTION
        • ECSystemException Remote error, _ERR_REMOTE_EXCEPTION
      • reset

        public void reset()
        Resets the command local variable.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand