Instruction de tâche DoInventoryActionCmd

L'instruction de tâche DoInventoryActionCmd communique avec toutes les opérations de stock.

Instruction de tâche

com.ibm.commerce.inventory.commands.DoInventoryActionCmd

Classe d'implémentation

com.ibm.commerce.inventory.commands.DoInventoryActionCmdImpl

Appelants possibles

OrderItemAddCmdImpl

OrderItemUpdateCmdImpl

OrderItemDeleteCmdImpl

OrderItemDisplayCmdImpl

OrderItemMoveCmdImpl

PrepareOrderCmdImpl

OrderCalculateCmdImpl

OrderCancelCmdImpl

OrderProcessCmdImpl

PreprocessOrderCmdImpl

ProcessOrderCmdImpl

ReleaseOrdersToFulfillmentCOCmdImpl

ReleaseShortShipConfirmCmdImpl

Comportement

Il s'agit de l'interface de base pour le composant de stock. Cette commande gère les différents modèles de stock de sorte que le composant Order n'a qu'à appeler cette instruction de tâche avec l'action requise et les paramètres correspondants spécifiés. Cette commande exécute les tâches de bas niveau en fonction de la configuration du système de stock du magasin actuel.


        switch(Action){
			case GET_DEFAULT_ATP_PARAMETER:
				build ATP parameter for different caller commands
			  (different commands have different default ATP parameters	)
				break;
			case CHECK_INVENTORY:
				check whether inventory is available
				break;
			case RESOLVE_FULFILLMENTCENTER:
				resolve the right fulfillment center
				break;
			case UPDATE_FULFILLMENTCENTER:	
				update the fulfillment center
				break;
			case ALLOCATE_INVENTORY:
				allocate inventory
				break;
			case REVERSE_INVENTORY:
				reverse inventory for those items that are canceled/deleted
				break;
			case GET_ESTIMATE_AVAILABILITY_DATE:
				get estimated availability date 
				break;
			case RESERVE_INVENTORY:
				create a reservation of a requested quantity of inventory for a given item,
				fulfillment center and store.	
				break;
			case ADJUST_RESERVE_INVENTORY:
				adjust the inventory for a given inventory reservation by the amount of the given quantity
				break;
			case GET_INVENTORYCATALOG:
				return inventory quantity
				break; 
			case SHIP_ITEMS:
				ship the items for the order
				break;
				default: {
				doMoreAction(); (a protected method that can be customized to add new inventory actions
				in this facades)
				break; 
			}
		}