com.ibm.commerce.inventory.commands

Class PickBatchGenerateCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.base.helpers.EJBConstants, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PickBatchGenerateCmd, Protectable, ECConstants, ToolsControllerCommand, ECToolsConstants, 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 PickBatchGenerateCmdImpl
    extends ToolsControllerCommandImpl
    implements PickBatchGenerateCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
    Generates a pick batch for specified fulfillment center and store.

    This controller command will call GeneratePickBatchCmd to generate a pick batch. The order releases with 'SHIP' status for the specified fulfillment center and store will be included in the pick batch generation. If there are more than the maximum number of order releases, which are eligible, when a pick batch is generated. Only the maximum number of order releases are picked up in this pick batch. And the rest will be picked up by the next pick batch generation. A pack slip XML will be generated for each eligible order release and a pick ticket XML will be generated for the whole batch. An invoice XML may also be generated for each eligible order release.

    This command requires to have the store id and language id set in the command context.

    If you run this command from the scheduler, run it at a store-level command. Do not run it as a site-level command.

    Uses the FulfillmentCenterAccessBean.

    If the execute completes successfully, PickBatchGenerateRedirectView is called. If the execute fails, PickBatchGenerateErrorView is called.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • PickBatchGenerateCmdImpl

        public PickBatchGenerateCmdImpl()
    • Method Detail

      • getIsExpedited

        public java.lang.String getIsExpedited()
        Return expedited setting, if expedited="Y", then only expedited release will be gathered;
        Returns:
        expedited setting
      • getFfmcenterId

        public java.lang.String getFfmcenterId()
        Returns fulfillment center identifier.
        Returns:
        Fulfillment center identifier.
        See Also:
        setFfmcenterId(java.lang.String)
      • getMoreOrderReleases

        public java.lang.String getMoreOrderReleases()
        Returns the moreOrderReleases flag to indicate there are more eligible order releases not included in this pick batch.
        Returns:
        Flag identifying more order releases.
        See Also:
        setMoreOrderReleases(java.lang.String)
      • getPickBatchId

        public java.lang.String getPickBatchId()
        Returns pick batch identifier.
        Returns:
        Pick batch identifier.
        See Also:
        setPickBatchId(java.lang.String)
      • setPickBatchId

        public void setPickBatchId(java.lang.String newPickBatchId)
        Sets the pick batch identifier.
        Parameters:
        newPickBatchId - pick batch identifier
        See Also:
        getPickBatchId()
      • setIsExpedited

        public void setIsExpedited(java.lang.String newExpedited)
        Set the expedited setting
        Specified by:
        setIsExpedited in interface PickBatchGenerateCmd
        Parameters:
        newExpedited -
      • validateParameters

        public void validateParameters()
                                throws ECException
        Checks the information needed for pick batch generation. Verifies that store id and language id are set in the command context.
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - com.ibm.commerce.exception.ECApplicationException If mandatory parameters are not passed in, throw ECApplicationException.
      • getResources

        public AccessVector getResources()
                                  throws ECException
        Gets the access vector accessed by this command.

        Uses FulfillmentCenterAccessBean.

        Specified by:
        getResources in interface ECCommand
        Overrides:
        getResources in class AbstractECTargetableCommand
        Returns:
        A vector of resource action pairs.
        Throws:
        ECException -
        • ECSystemException Naming error, _ERR_CREATE_EXCEPTION
        • ECSystemException Finder error, _ERR_FINDER_EXCEPTION
        • ECSystemException Naming error, _ERR_NAMING_EXCEPTION
        • ECSystemException Remote error, _ERR_REMOTE_EXCEPTION
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the generation of pick batch by calling GeneratePickBatchCmd. The order releases with 'SHIP' status for the specified fulfillment center and store will be included in the pick batch generation. If there are more than the maximum number of order releases, which are eligible, when a pick batch is generated. Only the maximum number of order releases are picked up in this pick batch. And the rest will be picked up by the next pick batch generation. A pack slip XML will be generated for each eligible order release and a pick ticket XML will be generated for the whole batch. An invoice XML may also be generated for each eligible order release.

        Sets pick batch id, and more order releases flag locally and in response properties.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException