public class PickBatchGenerateCmdImpl extends ToolsControllerCommandImpl implements PickBatchGenerateCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
PickBatchGenerateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkNumberFormatException()
Checks that the numeric fields are numeric.
|
java.lang.String | getFfmcenterId()
Returns fulfillment center identifier.
|
java.lang.String | getIsExpedited()
Return expedited setting, if expedited="Y", then only expedited release will be gathered;
|
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 | setIsExpedited(java.lang.String newExpedited)
Set the expedited setting
|
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.
|
public static final java.lang.String COPYRIGHT
public java.lang.String getIsExpedited()
public java.lang.String getFfmcenterId()
public java.lang.String getMoreOrderReleases()
public java.lang.String getPickBatchId()
public void setFfmcenterId(java.lang.String newFfmcenterId)
public void setMoreOrderReleases(java.lang.String newMoreOrderReleases)
public void setPickBatchId(java.lang.String newPickBatchId)
public void setIsExpedited(java.lang.String newExpedited)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void validateParameters() throws ECException
protected void checkNumberFormatException() throws ECApplicationException
public AccessVector getResources() throws ECException
Uses FulfillmentCenterAccessBean.
public void performExecute() throws ECException
Sets pick batch id, and more order releases flag locally and in response properties.