Deprecated feature

Mandato de tarea DoInventoryActionCmd

El mandato de tarea DoInventoryActionCmd interactúa con todas las operaciones de inventario.

Mandato de tarea

com.ibm.commerce.inventory.commands.DoInventoryActionCmd

Clase de implementación

com.ibm.commerce.inventory.commands.DoInventoryActionCmdImpl

Posibles llamantes

OrderItemAddCmdImpl

OrderItemUpdateCmdImpl

OrderItemDeleteCmdImpl

OrderItemDisplayCmdImpl

OrderItemMoveCmdImpl

PrepareOrderCmdImpl

OrderCalculateCmdImpl

OrderCancelCmdImpl

OrderProcessCmdImpl

PreprocessOrderCmdImpl

ProcessOrderCmdImpl

ReleaseOrdersToFulfillmentCOCmdImpl

ReleaseShortShipConfirmCmdImpl

Comportamiento

Esta es la interfaz base para el componente de inventario. Este mandato maneja los diferentes modelos de inventario para que el componente de pedido solo tenga que llamar a este mandato de tarea con la acción requerida y los parámetros correspondientes especificados. Este mandato realiza las tareas de bajo nivel basándose en la configuración del sistema de inventario de la tienda actual.

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; 
			}
		}