Class ResolveReleasesCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, ResolveReleasesCmd,,,,,,

    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


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

        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.
        aCommandContext - The command context as CommandContext object.
        the instance from the command context.
      • 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
        newRequestProperties - receipt properties All parameters are optional (null allowed) for this method, though may be required for the command.
        See Also:
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Ready to be executed.
        Specified by:
        isReadyToCallExecute in interface
        isReadyToCallExecute in class AbstractECTargetableCommand
        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
        validateParameters in class AbstractECTargetableCommand
        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
        performExecute in class AbstractECTargetableCommand
        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
        reset in class AbstractECTargetableCommand