java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.inventory.commands.PickBatchGenerateCmdImpl
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 eligible order releases 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.
Store id and language id need to be set in the command context before calling.
Uses the FulfillmentCenterAccessBean.
If the execute completes successfully, PickBatchGenerateRedirectView is called. If the execute fails, PickBatchGenerateErrorView is called.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The internal copyright field. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.inventory.commands. PickBatchGenerateCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.tools.common. ECToolsConstants |
EC_LINE_SEPARATOR,
EC_TOOLS_FULFILLMENT_CENTER_ID,
EC_TOOLS_MERCHANT_CENTER_URL,
EC_TOOLS_STORE_LANGUAGE_URL,
EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED,
EC_TOOLS_STORES_EMPTY,
EC_TOOLS_STORES_NO_ACCESS,
EC_TOOLS_STORES_NOT_ADMINISTRATOR,
EC_XML,
EC_XMLFILE,
EC_XMLFILEOBJECT,
EC_XMLOBJECT,
EC_XMLSTRING |
Constructor Summary | |
---|---|
PickBatchGenerateCmdImpl() |
Method Summary | |
---|---|
protected
void |
checkNumberFormatException() Checks that the numeric fields are numeric. |
java.lang.String |
getFfmcenterId() Returns fulfillment center identifier. |
java.lang.String |
getMoreOrderReleases() Returns the moreOrderReleases flag to indicate there are more eligible order releases not included in this pick batch. |
java.lang.String |
getPickBatchId() Returns pick batch identifier. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
void |
performExecute() Performs the generation of pick batch by calling GeneratePickBatchCmd . |
void |
setFfmcenterId(java.lang.String newFfmcenterId) Sets fulfillment center identifier. |
void |
setMoreOrderReleases(java.lang.String newMoreOrderReleases) Sets the moreOrderReleases flag to indicate if there are more eligible order releases not included in this pick batch. |
void |
setPickBatchId(java.lang.String newPickBatchId) Sets the pick batch identifier. |
void |
setRequestProperties(
TypedProperty reqParms) Sets request property, fulfillment center id. |
void |
validateParameters() Checks the information needed for pick batch generation. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public PickBatchGenerateCmdImpl()
Method Detail |
---|
public java.lang.String getFfmcenterId()
setFfmcenterId(java.lang.String)
public java.lang.String getMoreOrderReleases()
setMoreOrderReleases(java.lang.String)
public java.lang.String getPickBatchId()
setPickBatchId(java.lang.String)
public void setFfmcenterId(java.lang.String newFfmcenterId)
PickBatchGenerateCmd
setFfmcenterId
in interface
PickBatchGenerateCmd
newFfmcenterId
- fulfillment center identifierPickBatchGenerateCmd.setFfmcenterId(java.lang.String)
,
getFfmcenterId()
public void setMoreOrderReleases(java.lang.String newMoreOrderReleases)
PickBatchGenerateCmd
setMoreOrderReleases
in interface
PickBatchGenerateCmd
newMoreOrderReleases
- flag indicating more order
releasesPickBatchGenerateCmd.setMoreOrderReleases(java.lang.String)
,
getMoreOrderReleases()
public void setPickBatchId(java.lang.String newPickBatchId)
newPickBatchId
- pick batch identifiergetPickBatchId()
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ToolsControllerCommandImpl
reqParms
- request properties
ECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If mandatory parameters are not passed in,
throw ECApplicationException.ECException
protected void checkNumberFormatException() throws ECApplicationException
ECApplicationException
- Specify _ERR_CMD_INVALID_PARAM if
fulfillment center id is not numeric.public AccessVector getResources() throws ECException
Uses FulfillmentCenterAccessBean.
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
-
public void performExecute() throws ECException
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 eligible
order releases 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.
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException