public class GeneratePickBatchCmdImpl extends TaskCommandImpl implements GeneratePickBatchCmd
GeneratePickBatchCmd interface.
Generates a pick batch for specified fulfillment center and store.
This is a task command.
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.
Uses the following access beans:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
GeneratePickBatchCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generatePackslip(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name,
java.lang.String order_number,
java.lang.String release_number,
java.lang.String customer_number,
java.lang.String order_date)
Deprecated.
uses
GeneratePackSlipCmd instead. |
void |
generatePickbatch(int maxOrderReleases)
This method generates a pick batch with no delay for select how age orders.
|
void |
generatePickbatch(int maxOrderReleases,
int delayInMins)
Performs the generation of pick batch if there are any eligible order
releases.
|
java.lang.String |
generatePickticket(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name)
Generates the pick ticket XML for the whole batch.
|
java.lang.String |
generatePickticket(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name,
boolean isExpedited)
Generates the pick ticket XML for the whole batch.
|
java.lang.Integer |
getFfmcenterId()
Returns fulfillment center identifier.
|
java.lang.String |
getIsExpedited()
Returns the inIsExpedited.
|
java.lang.Integer |
getLanguageId()
Returns language identifier.
|
int |
getMaxOrdReleasesPerPickbatch()
Returns the maximum number of the order releases included in a pick batch.
|
java.lang.String |
getMoreOrderReleases()
Returns the flag to indicate if there are more eligible order releases
not included in this pick batch.
|
java.lang.Long |
getPickBatchId()
Returns the pick batch identifier.
|
java.lang.Integer |
getStoreentId()
Returns the store entity identifier.
|
boolean |
isReadyToCallExecute()
This command is ready to be executed.
|
java.lang.String |
parsePackslipForDtd10(java.lang.String packSlipXML)
Generate pack slip for dtd1.0 by parsing the pack slip for dtd2.0
This method is called by PickPackListResult.jsp
|
java.lang.String |
parsePickSlipForDtd10(java.lang.String pickSlipXML)
Generate pick ticket for dtd1.0 by parsing the pick ticket for dtd2.0
This method is called by PickPackListResult.jsp
|
void |
performExecute()
Pulls the MaxOrdReleasesPerPickbatch
|
void |
reset()
Resets the command local variable.
|
void |
setFfmcenterId(java.lang.Integer newFfmcenterId)
Sets fulfillment center identifier.
|
void |
setIsExpedited(java.lang.String newIsExpedited)
Sets the inIsExpedited.
|
void |
setLanguageId(java.lang.Integer newLanguageId)
Sets language identifier.
|
void |
setMaxOrdReleasesPerPickbatch(int newMaxOrdReleasesPerPickbatch)
Sets the maximum number of the order releases included in a pick batch.
|
void |
setMoreOrderReleases(java.lang.String newMoreOrderReleases)
Set the moreOrderReleases flag to indicate if there are more eligible order releases
not included in this pick batch.
|
void |
setPickBatchId(java.lang.Long newPickBatchId)
Sets the pick batch identifier.
|
void |
setRequestProperties(TypedProperty newRequestProperties)
Pulls fulfillment center and IsExpedited identifier from the input parameter
and saves locally.
|
void |
setStoreentId(java.lang.Integer newStoreentId)
Sets the store entity identifier.
|
void |
validateParameters()
Checks the information needed for pick batch generation.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.Integer getFfmcenterId()
GeneratePickBatchCmdgetFfmcenterId in interface GeneratePickBatchCmdGeneratePickBatchCmd.getFfmcenterId(),
setFfmcenterId(java.lang.Integer)public java.lang.Integer getLanguageId()
GeneratePickBatchCmdgetLanguageId in interface GeneratePickBatchCmdGeneratePickBatchCmd.getLanguageId(),
setLanguageId(java.lang.Integer)public int getMaxOrdReleasesPerPickbatch()
GeneratePickBatchCmdgetMaxOrdReleasesPerPickbatch in interface GeneratePickBatchCmdGeneratePickBatchCmd.getMaxOrdReleasesPerPickbatch(),
setMaxOrdReleasesPerPickbatch(int)public java.lang.String getMoreOrderReleases()
GeneratePickBatchCmdgetMoreOrderReleases in interface GeneratePickBatchCmdGeneratePickBatchCmd.getMoreOrderReleases(),
setMoreOrderReleases(java.lang.String)public java.lang.Long getPickBatchId()
GeneratePickBatchCmdgetPickBatchId in interface GeneratePickBatchCmdGeneratePickBatchCmd.getPickBatchId(),
setPickBatchId(java.lang.Long)public java.lang.Integer getStoreentId()
GeneratePickBatchCmdgetStoreentId in interface GeneratePickBatchCmdGeneratePickBatchCmd.getStoreentId(),
setStoreentId(java.lang.Integer)public void setFfmcenterId(java.lang.Integer newFfmcenterId)
GeneratePickBatchCmdsetFfmcenterId in interface GeneratePickBatchCmdnewFfmcenterId - fulfillment center identifierGeneratePickBatchCmd.setFfmcenterId(java.lang.Integer),
getFfmcenterId()public void setLanguageId(java.lang.Integer newLanguageId)
GeneratePickBatchCmdsetLanguageId in interface GeneratePickBatchCmdnewLanguageId - language identifierGeneratePickBatchCmd.setLanguageId(java.lang.Integer),
getLanguageId()public void setMaxOrdReleasesPerPickbatch(int newMaxOrdReleasesPerPickbatch)
GeneratePickBatchCmdsetMaxOrdReleasesPerPickbatch in interface GeneratePickBatchCmdnewMaxOrdReleasesPerPickbatch - maximum number of the order releasesGeneratePickBatchCmd.setMaxOrdReleasesPerPickbatch(int),
getMaxOrdReleasesPerPickbatch()public void setMoreOrderReleases(java.lang.String newMoreOrderReleases)
setMoreOrderReleases in interface GeneratePickBatchCmdnewMoreOrderReleases - flagGeneratePickBatchCmd.setMoreOrderReleases(java.lang.String),
getMoreOrderReleases()public void setPickBatchId(java.lang.Long newPickBatchId)
GeneratePickBatchCmdsetPickBatchId in interface GeneratePickBatchCmdnewPickBatchId - pick batch identifierGeneratePickBatchCmd.setPickBatchId(java.lang.Long),
setPickBatchId(java.lang.Long)public void setStoreentId(java.lang.Integer newStoreentId)
GeneratePickBatchCmdsetStoreentId in interface GeneratePickBatchCmdnewStoreentId - store entity identifierGeneratePickBatchCmd.setStoreentId(java.lang.Integer),
getStoreentId()public void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
setRequestProperties in interface GeneratePickBatchCmdnewRequestProperties - request propertiesECApplicationExceptionsetFfmcenterId(java.lang.Integer),
setIsExpedited(java.lang.String),
GeneratePickBatchCmd.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)public boolean isReadyToCallExecute()
isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandpublic void validateParameters()
throws ECException
StoreId and language id must be set in the command context.
Also checking that fulfillment center id is not null.
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - If mandatory parameters are not set, throw ECApplicationException.ECExceptionpublic void performExecute()
throws ECException
MaxOrdReleasesPerPickbatchgeneratePickBatch() method to complete.performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - If the MaxOrderReleasesPerPickbatch does not convert
to a numeric, error specifies _ERR_CMD_INVALID_PARAMgeneratePickbatch(int)public void generatePickbatch(int maxOrderReleases)
throws ECException
maxOrderReleases - maximum number of order releases in a pick batchECException - generatePickbatch(int, int)public void generatePickbatch(int maxOrderReleases,
int delayInMins)
throws ECException
Here is the flow of events, highlighting the use of access beans, commands and other methods.
setPickBatchId method.
GeneratePackSlipCmd for each order release.
PrepareInvoiceCmd.
generatePickticket method.
maxOrderReleases - maximum number of order releases in a pick batchdelayInMins - number of minutes the past to use as criteria for
selecting orders in a pick batch
orders.timeplaced < current time - delayInMins minutesECException - GeneratePackSlipCmd,
generatePickticket(java.lang.String, java.lang.String, java.lang.String),
setPickBatchId(java.lang.Long)public java.lang.String generatePickticket(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name)
throws ECException
pickBatchId - pick batch identifierstore_name - store nameffmcenter_name - fulfillment center nameECException - public java.lang.String generatePickticket(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name,
boolean isExpedited)
throws ECException
pickBatchId - pick batch identifierstore_name - store nameffmcenter_name - fulfillment center nameisExpedited - ECException - public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic java.lang.String getIsExpedited()
public void setIsExpedited(java.lang.String newIsExpedited)
newIsExpedited - The inIsExpedited to setpublic java.lang.String generatePackslip(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name,
java.lang.String order_number,
java.lang.String release_number,
java.lang.String customer_number,
java.lang.String order_date)
throws ECException
GeneratePackSlipCmd instead.pickBatchId - pick batch identifierstore_name - store entity nameffmcenter_name - fulfillment center nameorder_number - order numberrelease_number - release numbercustomer_number - customer numberorder_date - order dateECExceptionpublic java.lang.String parsePackslipForDtd10(java.lang.String packSlipXML)
throws ECApplicationException
parsePackslipForDtd10 in interface GeneratePickBatchCmdpackSlipXML - the pack slip XML for dtd2.0ECApplicationException - if any exception occurs while parsing the XMLpublic java.lang.String parsePickSlipForDtd10(java.lang.String pickSlipXML)
throws ECApplicationException
parsePickSlipForDtd10 in interface GeneratePickBatchCmdpickSlipXML - the pick slip XML for dtd2.0ECApplicationException - if any exception occurs while parsing the XML