public class ProcessInventoryRequirementReserveInventoryActionCmdImpl extends AbstractProcessNounActionCmdImpl implements ProcessInventoryRequirementActionCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CONFIG_GROUPING_SIDE_BY_SIDE_INTEGRATION
Name of the configuration grouping for the side-by-side integration flow.
|
static java.lang.String | CONFIG_PROPERTY_PARTIAL_RESERVE
Name of the configuration property for allow partial reservation.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String | DELTA_RESERVE_DEFAULT
the default value indicating that if it is a delta reservation
|
static java.lang.String | DELTA_RESERVE_YES
the value indicating it is a delta reservation
|
static java.lang.String | PARTIAL_RESERVE_DEFAULT
the default value indicating that if allow partial reservation
|
static java.lang.String | USERDATAFIELD_DELTA_RESERVE
Name of the userdata field to indicate whether it is a delta reservation.
|
static java.lang.String | USERDATAFIELD_PARTIAL_RESERVE
Name of the userdata field for allow partial reservation.
|
Constructor and Description |
---|
ProcessInventoryRequirementReserveInventoryActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List | appendToOrigOrderType(OrderItemType domOrderItem, java.util.List origOrderItems, java.util.List orignalList)
This method is to append new generated items to original Order Noun.
|
protected AcknowledgeInventoryRequirementType | callReserveInventoryService(ProcessInventoryRequirementType pirtObject)
Call the outbound service to reserve the inventory.
|
protected BusinessContextType | getBusinessContext()
Returns a business context with a standard set of context data.
|
protected java.lang.String | getIsAllowPartialReservation()
Returns the value of AllowPartialReservation.
|
protected java.lang.String | getIsDeltaReservation(OrderType order)
This method will loop through the order items.
|
void | performExecute()
This method performs the main business logic of the class.
|
protected void | updateFulfillmentCenterForOrderItem(OrderType origOrderNoun, OrderItemType origOrderItem, OrderItemType domOrderItem)
Update fulfillment center for order item.
|
protected void | updateInventoryStateForVirtualAllocation(java.util.List aListOrders)
Update order items in noun to "allocated" state and set their fulfillment centers as null, which indicate that the order items are "virtually allocated".
|
void | validate()
This method to validate if the InventoryRequirementType passed from the caller command is a valid order.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CONFIG_GROUPING_SIDE_BY_SIDE_INTEGRATION
public static final java.lang.String CONFIG_PROPERTY_PARTIAL_RESERVE
public static final java.lang.String USERDATAFIELD_PARTIAL_RESERVE
public static final java.lang.String USERDATAFIELD_DELTA_RESERVE
public static final java.lang.String PARTIAL_RESERVE_DEFAULT
public static final java.lang.String DELTA_RESERVE_DEFAULT
public static final java.lang.String DELTA_RESERVE_YES
public ProcessInventoryRequirementReserveInventoryActionCmdImpl()
public void validate() throws AbstractApplicationException
protected AcknowledgeInventoryRequirementType callReserveInventoryService(ProcessInventoryRequirementType pirtObject)
public void performExecute() throws java.lang.Exception
protected BusinessContextType getBusinessContext()
protected void updateInventoryStateForVirtualAllocation(java.util.List aListOrders) throws java.lang.Exception
protected void updateFulfillmentCenterForOrderItem(OrderType origOrderNoun, OrderItemType origOrderItem, OrderItemType domOrderItem) throws java.lang.Exception
protected java.util.List appendToOrigOrderType(OrderItemType domOrderItem, java.util.List origOrderItems, java.util.List orignalList) throws java.lang.Exception
protected java.lang.String getIsAllowPartialReservation()
protected java.lang.String getIsDeltaReservation(OrderType order)