Fetching inventory availability from Sterling Intelligent Promising Inventory Visibility
You can fetch the inventory availability from Sterling™ Intelligent Promising Inventory Visibility.
The Sterling Order Management System Inventory Adapter supports the implementation of
OMPGetInventoryFromCacheUE
user exit (UE) for which the class is
com.ibm.iv.adapter.IVReadCachedAvailabilityUEImpl_v1
. When you implement the
application-provided IVReadCachedAvailabilityUEImpl_v1
UE, it invokes the
IVReadCachedAvailability
service that fetches the inventory availability from Sterling Intelligent Promising Inventory Visibility.
The
IVReadCachedAvailabilityUEImpl_v1
considers the input, sets some default
attribute values, and invokes a custom API for network or node level. The
IVReadCachedAvailabilityUEImpl_v1
transforms the user exit input XML to a valid
input to IVReadCachedAvailability
service.Note: In the Applications Manager, the service name references provided in this topic adheres to the
<InventoryOrgCode_>ServiceName<_ActivatorVersion>
naming
convention.The
getAvailabilitycache
, getItemListForOrdering
and
getCompleteItemList
APIs call the OMPGetInventoryFromCacheUE
user
exit that fetches inventory availability from Sterling Intelligent Promising Inventory Visibility.Note: If
you are using the Sterling Intelligent Promising Inventory Visibility integration adapter that is installed by
using
Functionality=SIV
, ensure that you use the class
com.ibm.iv.adapter.IVReadCachedAvailabilityUEImpl
implementation class.Sample UE Input for
network
<InventoryAlerts AlertLevel="" AlertType="" DistributionRuleId="US_Group" InventoryOrganizationCode="" Node="" OrganizationCode="DEFAULT" UseDefaultDistributionRuleId="Y">
<InventoryItems>
<InventoryItem InventoryItemKey="127987349374983" DeliveryMethod="SHP" ItemID="SKU1024" ProductClass="NEW" UnitOfMeasure="EACH"/>
<InventoryItem InventoryItemKey="830984809340" DeliveryMethod="SHP" ItemID="SKU2048" ProductClass="NEW" UnitOfMeasure="EACH"/>
</InventoryItems>
</InventoryAlerts>
Sample Service Input for
network
Sample Service Input
<InventoryVisibilityAPI URL="" HTTPMethod="" Content-Type="application/json">
<Input>
{
"lines": [{
"unitOfMeasure": "EACH",
"itemId": "SKU1024",
"productClass": "NEW",
"lineId": "1",
"deliveryMethod": "SHP"
"Content-Type": application/json"
},{
"unitOfMeasure": "EACH",
"itemId": "SKU2048",
"productClass": "NEW",
"lineId": "2",
"deliveryMethod": "SHP"
}],
"distributionGroupId": "US_Group"
}
</Input>
</InventoryVisibilityAPI>
Sample UE Output for
network
<InventoryItemList InventoryOrganizationCode="" OrganizationCode="DEFAULT" >
<InventoryItem InventoryItemKey="127987349374983" ItemID="SKU1024" ProductClass="NEW" UnitOfMeasure="EACH">
<InventoryAlertsList >
<InventoryAlerts InventoryAlerts AlertType="REALTIME_ONHAND" OrganizationCode="DEFAULT" AlertLevel="3" AlertQuantity="5.5" DistributionRuleId="US_Group" OnhandAvailableDate="2016-11-01" OnhandAvailableQuantity="15.4">
</InventoryAlertsList>
</InventoryItem>
<InventoryItem InventoryItemKey="830984809340" ItemID="SKU2048" ProductClass="NEW" UnitOfMeasure="EACH">
<InventoryAlertsList >
<InventoryAlerts AlertType="REALTIME_ONHAND" OrganizationCode="DEFAULT" AlertLevel="3" AlertQuantity="5.5" DistributionRuleId="US_Group" OnhandAvailableDate="2016-11-01" OnhandAvailableQuantity="40.0">
</InventoryAlertsList>
</InventoryItem>
</InventoryItemList>
Sample UE Input for
node
<InventoryAlerts AlertLevel="" AlertType="" DeliveryMethod="SHP" InventoryOrganizationCode="" Node="" OrganizationCode="DEFAULT" UseDefaultDistributionRuleId="Y">
<InventoryItems>
<InventoryItem InventoryItemKey="127987349374983" ItemID="SKU1024" ProductClass="NEW" UnitOfMeasure="EACH"/>
</InventoryItems>
</InventoryAlerts>
Sample Service Input for
node
<InventoryVisibilityAPI Content-Type="application/json" URL="" HTTPMethod="POST">
<Input>
{
"lines":[{
"shipNodes":[["dc-HartfordCT","store-BostonMA"]],
"deliveryMethod":"SHP",
"lineId":"1",
"unitOfMeasure":"EACH",
"productClass":"NEW",
"itemId":"SKU1024"}]
}
</Input>
</InventoryVisibilityAPI>
Sample UE Output for
node
<InventoryItemList InventoryOrganizationCode="" OrganizationCode="DEFAULT" >
<InventoryItem InventoryItemKey="127987349374983" ItemID="SKU1024" ProductClass="NEW" UnitOfMeasure="EACH">
<InventoryAlertsList >
<InventoryAlerts AlertType="REALTIME_ONHAND" OrganizationCode="DEFAULT" AlertLevel="3" AlertQuantity="5.5" Node="store-BostonMA" OnhandAvailableDate="2016-11-01" OnhandAvailableQuantity="15.4">
</InventoryAlertsList>
</InventoryItem>
</InventoryItemList>
For more information, see Javadoc.