public class DoInventoryActionCmdImpl extends TaskCommandImpl implements DoInventoryActionCmd
DoInventoryActionCmd
task command.
This is the base interface for the inventory component. This command handles the different inventory models so that the Order component only needs to call this task command with the required inventory operation. This command performs the low level tasks based on the current store's inventorySystem configuration.
There are 10 usages identified as interfaces between the order commands and this interface command. For every usage, different parameters are required.
action=GET_DEFAULT_ATP_PARAMETER, this usage builds default ATP(Available To Promise) parameters to perform inventory operations.
During different phases in the order shopping flow, different default inventory behavior is expected. Depending on the current phase,
it builds a different ATPParameter value. Different store implementations could request different inventory behavior by passing abbreviated orders,
and those abbreviations are used to build ATPParameter
. They could also
specify a ATPParameter
instance to order command, in which case, there is no need to build a default ATPParameter
. Every time
the order component need to do an inventory operation, the order command must set the ATPParameter
again to ensure that the inventory
component is synchronized with the changed order.
Parameters:
Parameter Name | Type | Descriptions |
istrCallerCommandName | String | The command name that requested the default ATPParameter |
istrOrderIds | String[] | The vector of orderId used to resolve the order items to be backordered, reversed, checked, merged, allocated, or remerged. |
requestProperties | TypedProperty | The source of the requested inventory operation. This request could originate from either the commandContext.requestProperties, or requestProperties. |
action=CHECK_INVENTORY, this usage checks the inventory for the OrderItemDisplayCmd
and OrderPrepareCmd
commands. During OrderItemDisplayCmd
processing,
it checks the inventory to validate whether the inventory is available. During OrderPrepareCmd
processing,
for ATP inventory systems, the inventory operation depends on ATPParameter
used. For non-ATP inventory systems, it resolves the FFMCENTER_ID
and updates it into the order item, and sets the inventoryStatus of the checked orderItem to new inventory status "AVL".
Parameters:
Parameter Name | Type | Descriptions |
istrCallerCommandName | String | The command name that requested the inventory check. |
istrOrderIds | String[] | The unique order identifier. The check inventory operation checks all order items belonging to this order. |
atpParameter | ATPParameter | For ATP inventory systems, the ATPParameter is required to determine which inventory operation is needed |
action=RESOLVE_FULFILLMENTCENTER, for ATP inventory systems, it gets all eligible FFMCENTER by querying the OrderItemAccessBean
.
For non-ATP inventory systems, it can resolve the FFMCENTER_ID from either the OrderItemAccessBean
or the catentry_id and quantity.
Parameters:
Parameter Name | Type | Descriptions |
istrCallerCommandName | String | The command name that requested the inventory check. |
items | Item[] | The order items are considered when determining fulfillment centers. This is required for ATP inventory systems, optional for non-ATP inventory systems. |
catEntry_id | String | Together with the quantity and quantityMeasure values, this specifies the input to the resolveFulfillmentCenterCmd |
quantity | String | Together with the catEntry_id and quantityMeasure values, this specifies the input to resolveFulfillmentCenterCmd. This is a catalog quantity |
quantityMeasure | String | Together with the catEntry_id and quantityMeasure values, this specifies the input to resolveFulfillmentCenterCmd |
action=UPDATE_FULFILLMENTCENTER, for ATP inventory systems, it checks the inventory without updating the FFMCENTER_ID into the order item. For non-ATP inventory systems, it resolves the fulfillmentCenter and sets this identifier into the Order item.
Parameters:
Parameter Name | Type | Descriptions |
istrCallerCommandName | String | The command name that requested the inventory check |
istrOrderIds | String[] | The unique order identifier. This is required. |
iUniqueOrderitemIdList | Hashtable | The changed order item. This list is used to get unique catentry, to identify the touched orderItem. It is used when adding order items. This is optional for Non-ATP inventory systems, which only need it to resolve ffm for those touched order items. |
FlushNeeded | Boolean | An optional parameter used to flush the changes to the db for inventory stored procedures. It picks up the changes when new order items have been inserted or order item quantities have changes |
continue | String | An optional parameter that specifies whether to continue if an exception is thrown by the resolveFuifillmentCenter command. |
atpParameter | ATPParameter | For ATP inventory systems, the ATPParemeter is required to fulfill inventory operation |
action=ALLOCATE_INVENTORY, for ATP inventory systems, allocate Inventory(or check Inventory) could happen in order Capture or Order Management.
The command OrderPrepareCmd
allocates inventory as defined in the ATPParameter
. The command OrderProcessCmd
forces inventory allocation or backorders
the order item. To allocate Inventory during the OrderItemMoveCmd
,
inventory must be allocated for the order from which the inventory is moved from, and for the order to which the inventory is moved. For non-ATP inventory systems,
inventory allocation can only happen on orderProcess. Before non-ATP inventory is allocated, it must first check the inventory status.
If this orderItem has ever been allocated, then is compares the allocated quantity with the required quantity. It does nothing if there is no change on the required quantity.
Otherwise, first it reverses the allocated quantity, and then updates the inventory for this order item. Finally, it sets the inventoryStatus
as Inventory allocated.
For no-Inventory systems, only the inventory status is updated.
Parameters:
Parameter Name | Type | Descriptions |
istrCallerCommandName | String | The command name that requested the inventory check. |
astrInOrders | String[] | The order to move an order item into. Only used by the OrderItemMoveCmd. An optional parameter, if omitted, the command does nothing. |
astrOutOrders | String[] | The order from which to move the order item. Only used by the OrderItemMoveCmd. An optional parameter, if omitted, the command does nothing. |
istrOrderIds | String[] | The unique order identifier. All order items that belong to this order will be allocated during inventory allocation. This parameter is required when allocating inventory. |
atpParameter | ATPParameter | For ATP inventory systems, the ATPParemeter is required to fulfill inventory operation. |
action=REVERSE_INVENTORY, for ATP inventory systems, it deallocates existing or expected inventory, and sets the inventoryStatus as not allocated. An orderItem is required. For non-ATP inventory systems, it deallocates inventory.
Parameters:
Parameter Name | Type | Descriptions |
orderItem | OrderAccessBean | The allocated order item that requires inventory reversal. |
action=GET_ESTIMATE_AVAILABILITY_DATE, for ATP inventory systems, it calls the CheckInventoryAvailabilityCmd
to set an estimated time and shipoffset.
For non-ATP inventory systems, it sets the availability time as the current system timestamp plus the value of shippingoffset. The calling command must ensure that the inventory
is available before calling this action.
Parameters:
Parameter Name | Type | Descriptions |
ihsAllOrderItems | OrderItemAccessBean[] | The collection of orderItem for which to get the estimate availability date. |
ihsOrderItemFulfillmentCentersMaps | Hashtable | An optional parameter for ATP inventory systems. |
action=RESERVE_INVENTORY, for ATP inventory systems, it calls the command reserveInventoryCmd
. For non-ATP inventory systems, it calls the updateInventoryCmd
.
Parameters:
Parameter Name | Type | Descriptions |
iCatEntry_id | Long | A required parameter that specifies the catalog entry for which to reserve Inventory. |
iFulfillmentCenterId | Integer | The fulfillmentCenter at which the inventory is reserved. |
dQuantity | Double | The quantity to reserve |
istrReservationInstance | String | The description for the reservation |
iReservationType | String | The reservation type |
iStore_id | Long | The store with which the reservation is associated. |
action=ADJUST_RESERVE_INVENTORY,for ATP inventory systems, it calls the command AdjustInentoryReservationCmd
. For non-ATP inventory systems it calls updateInventoryCmd
.
Parameters:
Parameter Name | Type | Descriptions |
iReservationId | String | The unique reservation identifier that requires adjustment. |
iCatEntry_id | Long | A required parameter that specifies the catalog entry for which to reserve Inventory. |
iFulfillmentCenterId | Integer | The fulfillmentCenter at which the inventory is reserved. |
dQuantity | Double | The quantity to reserve |
iStore_id | Long | The store with which the reservation is associated. |
action=GET_INVENTORYCATALOG, it gets the inventory quantity from the allocatedQuantity and neededQuantity columns of ORDERITEMS
table.
The values in the database might use different units of measure with catalog quantity. This command converts between those two quantities.
For ATP inventory systems, the QUANTITYMEASURE
column of the BASEITEM
table is used in the conversion.
For non-ATP inventory systems, the QUANTITYMEASURE
column of the INVENTORY
table is used in the conversion.
Parameters:
Parameter Name | Type | Descriptions |
quantity | Double | The catalog quantity to convert into inventory quantity. |
orderitem | OrderItemAccessBean | The orderItem to convert from a catalog quantity into an inventory quantity. The quantity manager needs to get the from and to quantity units from the orderItem. |
CheckInventoryAvailabilityCmd
CheckInventoryCmd
GetEligibleFulfillmentCentersCmd
ResolveFulfillmentCenterCmd
ReverseUpdateInventoryCmd
ReserveInventoryCmd
AdjustInventoryReservationCmd
UpdateInventoryCmd
ResolveOrderItemsCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
static int |
DOM_INVENTORY
Inventory constants for DOM inventory.
|
ADJUST_RESERVE_INVENTORY, ALLOCATE_INVENTORY, ATP_INVENTORY, CHECK_INVENTORY, defaultCommandClassName, EXTERNAL_IMS, GENERIC_CALLER_CMD, GET_DEFAULT_ATP_PARAMETER, GET_ESTIMATE_AVAILABILITY_DATE, GET_INVENTORYCATALOG, INVENORY_STATUS_CONVERTOR, INVENTORY_ALLOCATION_CHECK, NAME, NO_ACTION, NO_INVENTORY, NON_ATP_INVENTORY, ORDER_CALCULATE, ORDER_CANCEL, ORDER_CANCEL_EXTERNAL, ORDER_PRE_PROCESS, ORDER_PREPARE, ORDER_PROCESS, ORDERITEM_BASE_CMD, ORDERITEM_DELETE, ORDERITEM_DISPLAY, ORDERITEM_MOVE, ORDERITEM_SELECT, QUOTE_PREPARE, QUOTEITEM_BASE, RELEASE_EXPIRED_ALLOCATIONS, RELEASE_TO_FULFILLMENT, RESERVE_INVENTORY, RESOLVE_FULFILLMENTCENTER, REVERSE_INVENTORY, SHIP_ITEMS, UPDATE_FULFILLMENTCENTER
Constructor and Description |
---|
DoInventoryActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getAction()
This method returns the action parameters, this action is used to specify the needed inventory operation
|
ATPParameters |
getATPParms()
This method returns the input ATP parameters.
|
java.lang.String |
getCallerCommandName()
This method returns the callerCommandName
|
java.lang.Long |
getCatEntryId()
This method returns the catalog entry unique identifier.
|
java.util.Vector |
getCatEntryIdNotAvailinInv()
This method returns the Vector with Catalog Entry IDs which are not available in the requested amount in inventory
|
java.lang.String |
getContinue()
This method returns whether to continue when there is exception thrown in ResolveFulfillmentCenter
|
ATPParameters |
getDefaultATPParms()
This method returns the default ATP parameters,different caller command has different default inventory behavior
|
boolean |
getFlushNeeded()
This method returns whether flush needed for SP to catch the changes to DB
|
java.lang.Integer |
getFulfillmentCenterId()
This method returns the fulfillmentCenter parameters
It is used for action checkInventory,reverseInventory,resolveFulfillmentCenter,UpdateFulfillmentCenter, but it is optional if order item is set
|
java.util.Vector |
getFulfillmentCenters()
This method returns the Vector of FulfillmentCenter
|
java.util.Hashtable |
getInvalidlyAllocateOrderItemsAfterAllocation()
This method returns invalidlyAllocatedOrderItems
|
int |
getInventorySystem() |
java.util.Vector |
getItems()
This method returns Item to resolveFulfillmentcenter
|
java.lang.String[] |
getMoveInOrders()
This method returns the output order where input order items are moved to.
|
java.lang.String[] |
getMoveOutOrders()
This method returns the output order where input order items are moved to.
|
java.lang.Integer |
getNeededQuantity()
This method returns the needed quantity, it is converted from catalog quantity
|
java.lang.String[] |
getOrderId()
This method returns orderId, inventory component need this orderId to get the current situation for order and order item
|
OrderItemAccessBean |
getOrderItem()
This method returns order item
|
java.util.Hashtable |
getOrderItemFulfillmentCentersMaps()
This method returns lists of fulfillment centers which can ship items specified by the setOrderItems method.
|
java.lang.Integer |
getPreferredFulfillmentCenterId()
This method returns the preferred fulfillment center,it is optional for usage ResolveFulfillmentCenter and GetEstimateAvailableTime
|
java.lang.Double |
getQuantity()
This method returns quantity to check the inventory.
|
java.lang.String |
getQuantityMeasure()
This method returns a quantity measure to check the inventory (optional).
|
java.lang.String |
getReservationInstance()
This method returns the reservation description identifying the instance.
|
java.lang.Long |
getReservationType()
This method returns the reservation type.
|
java.lang.Long |
getReserveId()
This method returns the reservation identifier created after executing this command.
|
java.lang.Integer |
getShippingModeId()
This method returns the shipping mode id.
|
java.lang.Integer |
getStoreId()
This method returns a store id, it is optional
|
java.util.Hashtable |
getUniqueOrderitemIdList()
This method returns the uniqueOrderItemIdList, this list records the touched order item during order item add/update
|
java.lang.String |
getUnitOfMeasure()
This method returns the unit of measure
|
static boolean |
isATPParametersIgnorable(TypedProperty ahshATPParameters,
CommandContext commandContext)
This method returns true if the ATP parameters are ignorable.
|
static java.lang.Boolean |
orderExists(java.lang.String astrOrderId)
Return true if the specified order is known to exist,
false if it is known to not exist,
or null if unknown.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
This method should be called after a command has been executed to reset its state variables.
|
void |
setAction(int action)
This method sets the action parameter, this action is used to specify the needed inventory operation.
|
void |
setATPParms(ATPParameters newATPParms)
This method sets the ATP parameters, this ATPParameters will be used to determine inventory operation needed.
|
void |
setCallerCommandName(java.lang.String cmdName)
This method sets callerCommandName, different caller may have different inventory behavior.
|
void |
setCatEntryId(java.lang.Long catEntry_id)
This method sets the catalog entry unique identifier.
|
void |
setContinue(java.lang.String strContinue)
This method sets whether to continue
|
void |
setFlushNeeded(boolean flushNeeded)
This method sets whether flush needed for SP to catch the changes to DB
|
void |
setFulfillmentCenterId(java.lang.Integer fulfillmentCenter_id)
This method sets the fulfillmentCenter parameters to check inventory.
|
void |
setInventorySystem(int ainventorySystem) |
void |
setItems(java.util.Vector newItems)
This method sets Item to check inventory
|
void |
setMoveInOrders(java.lang.String[] inOrders)
This method sets a destination order for the output order items.
|
void |
setMoveOutOrders(java.lang.String[] iabOutOrders)
This method sets the orders from which order items will be moved.
|
void |
setOrderId(java.lang.String[] orderIds)
This method sets orderId, inventory component need this orderId to get the current situation for order and order item
|
void |
setOrderItem(OrderItemAccessBean newOrderItem)
This method sets orderItem, if this inventory operation is only operated on this orderItem.
|
void |
setOrderItemFulfillmentCentersMaps(java.util.Hashtable orderItemFulfillmentCentersMap)
This method sets lists of fulfillment centers which can ship items specified by the setOrderItems method.
|
void |
setPreferredFulfillmentCenterId(java.lang.Integer preferredFulfillmentCenterId)
This method sets the preferred fulfillment center.
|
void |
setQuantity(java.lang.Double quantity)
This method sets a quantity to check the inventory.
|
void |
setQuantityMeasure(java.lang.String quantityMeasure)
This method sets a quantity measure to check the inventory (optional).
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties.
|
void |
setReservationId(java.lang.Long rid)
This method sets the reservation id for ATP enabled stores.
|
void |
setReservationInstance(java.lang.String argReservationInstance)
This method sets the reservation description identifying the instance.
|
void |
setReservationType(java.lang.Long argReservationType)
This method sets the reservation type.
|
void |
setShippingModeId(java.lang.Integer shippingModeId)
This method sets the shipping mode id.
|
void |
setStoreId(java.lang.Integer storeId)
This method sets a store id to check the inventory.
|
void |
setUniqueOrderitemIdList(java.util.Hashtable uniqueOrderItemIdList)
This method sets the uniqueOrderItemIdList, this list records the touched order item during order item add/update
|
void |
setUnitOfMeasure(java.lang.String unitOfMeasure)
This method sets the unit of measure
|
void |
validateParameters()
Checks the required parameter to be set beforehand for this task command to execute.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public static final int DOM_INVENTORY
public void setRequestProperties(TypedProperty aRequestProperties)
ATPParameter
for ATP. It is not mandatory as
we could also get requestProperties from command context.setRequestProperties
in interface DoInventoryActionCmd
aRequestProperties
- request properties.public void setATPParms(ATPParameters newATPParms)
setATPParms
in interface DoInventoryActionCmd
newATPParms
- ATPParameterspublic ATPParameters getATPParms()
getATPParms
in interface DoInventoryActionCmd
public void setAction(int action)
setAction
in interface DoInventoryActionCmd
action
- public int getAction()
getAction
in interface DoInventoryActionCmd
public java.lang.Long getCatEntryId()
getCatEntryId
in interface DoInventoryActionCmd
public void setCatEntryId(java.lang.Long catEntry_id)
setCatEntryId
in interface DoInventoryActionCmd
catEntry_id
- public java.lang.Integer getFulfillmentCenterId()
getFulfillmentCenterId
in interface DoInventoryActionCmd
public void setFulfillmentCenterId(java.lang.Integer fulfillmentCenter_id)
setFulfillmentCenterId
in interface DoInventoryActionCmd
fulfillmentCenter_id
- public OrderItemAccessBean getOrderItem()
getOrderItem
in interface DoInventoryActionCmd
public void setOrderItem(OrderItemAccessBean newOrderItem)
setOrderItem
in interface DoInventoryActionCmd
newOrderItem
- The orderItem to be operated onpublic java.util.Hashtable getOrderItemFulfillmentCentersMaps()
getOrderItemFulfillmentCentersMaps
in interface DoInventoryActionCmd
public void setOrderItemFulfillmentCentersMaps(java.util.Hashtable orderItemFulfillmentCentersMap)
setOrderItemFulfillmentCentersMaps
in interface DoInventoryActionCmd
orderItemFulfillmentCentersMap
- public java.lang.Integer getPreferredFulfillmentCenterId()
getPreferredFulfillmentCenterId
in interface DoInventoryActionCmd
public void setPreferredFulfillmentCenterId(java.lang.Integer preferredFulfillmentCenterId)
setPreferredFulfillmentCenterId
in interface DoInventoryActionCmd
preferredFulfillmentCenterId
- the identifier of the preferred fulfillment center.public java.lang.Integer getShippingModeId()
getShippingModeId
in interface DoInventoryActionCmd
public void setShippingModeId(java.lang.Integer shippingModeId)
setShippingModeId
in interface DoInventoryActionCmd
shippingModeId
- This parameter is optional for usage resolveFulfillmentCenterpublic java.lang.Double getQuantity()
getQuantity
in interface DoInventoryActionCmd
public void setQuantity(java.lang.Double quantity)
setQuantity
in interface DoInventoryActionCmd
quantity
- this parameter is mandatory for usage GetInventoryQuantity, optional for non-atp usage checkInventory,reverseUpdateInventory,allocateInventory,resolveFulfillmentCenter,updateFulfillmentCenterpublic java.lang.String getQuantityMeasure()
getQuantityMeasure
in interface DoInventoryActionCmd
public void setQuantityMeasure(java.lang.String quantityMeasure)
setQuantityMeasure
in interface DoInventoryActionCmd
quantityMeasure
- public java.lang.Integer getStoreId()
getStoreId
in interface ECCommand
getStoreId
in interface DoInventoryActionCmd
getStoreId
in class AbstractECTargetableCommand
public void setStoreId(java.lang.Integer storeId)
setStoreId
in interface DoInventoryActionCmd
storeId
- integerpublic java.lang.String getReservationInstance()
getReservationInstance
in interface DoInventoryActionCmd
public void setReservationInstance(java.lang.String argReservationInstance)
setReservationInstance
in interface DoInventoryActionCmd
argReservationInstance
- reservation description, it is required for reserveInventorypublic java.lang.Long getReservationType()
INVRSRVTYP
table.getReservationType
in interface DoInventoryActionCmd
public void setReservationType(java.lang.Long argReservationType)
INVRSRVTYP
table.setReservationType
in interface DoInventoryActionCmd
argReservationType
- reservation typepublic java.lang.Long getReserveId()
getReserveId
in interface DoInventoryActionCmd
public java.lang.String getContinue()
getContinue
in interface DoInventoryActionCmd
public void setContinue(java.lang.String strContinue)
setContinue
in interface DoInventoryActionCmd
strContinue
- it is optional for usage resolveFulfillmenter for non-ATPpublic java.lang.String getUnitOfMeasure()
getUnitOfMeasure
in interface DoInventoryActionCmd
public void setUnitOfMeasure(java.lang.String unitOfMeasure)
setUnitOfMeasure
in interface DoInventoryActionCmd
unitOfMeasure
- it ispublic java.lang.String getCallerCommandName()
getCallerCommandName
in interface DoInventoryActionCmd
public void setCallerCommandName(java.lang.String cmdName)
setCallerCommandName
in interface DoInventoryActionCmd
cmdName
- public java.lang.String[] getOrderId()
getOrderId
in interface DoInventoryActionCmd
public void setOrderId(java.lang.String[] orderIds)
setOrderId
in interface DoInventoryActionCmd
orderIds
- it is required for usage reverseInventory for ATP in OrderItemBase
,allocateInventory for ATP for orderprepare,orderprocesspublic java.util.Vector getItems()
getItems
in interface DoInventoryActionCmd
public void setItems(java.util.Vector newItems)
setItems
in interface DoInventoryActionCmd
newItems
- it is optional for resolveFulfillmentcenter/updateFulfillmentCenterpublic java.lang.Integer getNeededQuantity()
getNeededQuantity
in interface DoInventoryActionCmd
public void setReservationId(java.lang.Long rid)
setReservationId
in interface DoInventoryActionCmd
rid
- public java.lang.String[] getMoveInOrders()
getMoveInOrders
in interface DoInventoryActionCmd
public void setMoveInOrders(java.lang.String[] inOrders)
setMoveInOrders
in interface DoInventoryActionCmd
inOrders
- String[]public java.lang.String[] getMoveOutOrders()
getMoveOutOrders
in interface DoInventoryActionCmd
public void setMoveOutOrders(java.lang.String[] iabOutOrders)
setMoveOutOrders
in interface DoInventoryActionCmd
iabOutOrders
- String[]public java.util.Hashtable getUniqueOrderitemIdList()
getUniqueOrderitemIdList
in interface DoInventoryActionCmd
public void setUniqueOrderitemIdList(java.util.Hashtable uniqueOrderItemIdList)
setUniqueOrderitemIdList
in interface DoInventoryActionCmd
uniqueOrderItemIdList
- this parameter is required for usage updateFillmentcenterpublic boolean getFlushNeeded()
getFlushNeeded
in interface DoInventoryActionCmd
public void setFlushNeeded(boolean flushNeeded)
setFlushNeeded
in interface DoInventoryActionCmd
flushNeeded
- public void validateParameters() throws ECException
Checks the required parameter to be set beforehand for this task command to execute. Make sure all the required parameters were passed in, or collected from somewhere. As different inventory operation may need different parameter, the required parameter will also be checked against specified action.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If mandatory parameters are not passed in, throw ECApplicationException
specifying _ERR_BAD_MISSING_CMD_PARAMETERpublic void performExecute() throws ECException
As the facade interface for inventory component, this command will check the operation set by order command. It also determines the needed operation based on the store's inventory type. Then it will forward to the corresponding task command. To customize this class if new action added, only need to override the protected method doMoreAction.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- thrown when RemoteException, CreateException, NamingException, FinderException is caught in StoreAccessBeanpublic void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public ATPParameters getDefaultATPParms()
getDefaultATPParms
in interface DoInventoryActionCmd
public java.util.Vector getCatEntryIdNotAvailinInv()
getCatEntryIdNotAvailinInv
in interface DoInventoryActionCmd
public java.util.Vector getFulfillmentCenters()
getFulfillmentCenters
in interface DoInventoryActionCmd
public java.util.Hashtable getInvalidlyAllocateOrderItemsAfterAllocation()
getInvalidlyAllocateOrderItemsAfterAllocation
in interface DoInventoryActionCmd
public static boolean isATPParametersIgnorable(TypedProperty ahshATPParameters, CommandContext commandContext) throws ECException
ahshATPParameters
- the ATP parameters.commandContext
- to check whether the store in the command context is using ATPECException
public int getInventorySystem()
public void setInventorySystem(int ainventorySystem)
ainventorySystem
- The inventorySystem to set.public static final java.lang.Boolean orderExists(java.lang.String astrOrderId)
nOrderId
-