Integrating Sterling Order Management System with Sterling Intelligent Promising Inventory Visibility
Complete the steps to enable the integration of Sterling™ Order Management System with Sterling Intelligent Promising Inventory Visibility.
Note: The existing
SIVactivator functionality is deprecated. Instead, a new
SIV_1.1activator functionality is introduced.
Procedure
Note: In the Applications Manager, the service name references provided in this topic
adheres to the
<InventoryOrgCode_>ServiceName<_ActivatorVersion> naming
convention. Similarly, the action name references provided in this topic adheres to the
Actionname<_ActivatorVersion> naming convention.-
In the Applications Manager, enable the following events to call the actions and the
corresponding services:
Note: The HUB or default event must be enabled with the enterprise action that is activated. The actions are created as part of activation.
INVENTORY_CHANGE.DEMAND_CHANGEevent - calls theDemandChangeaction, which in turn calls theIVAdjustDemandAsynchronouslyservice.INVENTORY_CHANGE.SUPPLY_CHANGE_LISTevent - calls theSupplyChangeaction, which in turn calls theIVAdjustSupplyAsynchronouslyservice.- I
NV_SNAPSHOT.SUPPLY_SYNCevent - calls theSupplySyncaction, which in turn calls theIVSyncSupplySynchronouslyservice. INV_SNAPSHOT.DEMAND_SYNCevent - calls theDemandSyncaction, which in turn calls theIVSyncDemandSynchronouslyservice.
-
Activate the integration
The following services are generated for each enterprise:
- IVAdjustDemandAsynchronously - This is a general service that considers demands raised by
the
INVENTORY_CHANGE.DEMAND_CHANGEevent, copies the message to a JMS queue, and calls theIVAdjustDemandSynchronouslyservice. This service enables the replication of demand from Sterling Order Management System to Sterling Intelligent Promising Inventory Visibility. This allows the external systems to invoke the Sterling Intelligent Promising Inventory Visibility REST APIs for availability lookups. Starting this service invokes theIVAdjustDemandSynchronouslyservice and transforms the XML message into JSON and POSThttps://api.watsoncommerce.ibm.com/inventory/{tenantId}/v1/demandsREST API call.Sample REST Input<InventoryVisibilityAPI URL="https://api.watsoncommerce.ibm.com/inventory/tenant1/v1/demands" HTTPMethod="POST" Content-Type="application/json"> <Headers/> <Input> { "demands": [{ "productClass": "NEW", "minShipByDate": "1900-01-01T00:00:00Z", "shipNode": "Matrix-Store-001", "unitOfMeasure": "EACH", "type": "OPEN_ORDER", "segmentType": " ", "segment": " ", "itemId": "SKU1024", "cancelDate": "2500-01-01T00:00:00Z", "shipDate": "2017-10-04T00:00:00Z", "tagNumber": "|||", "referenceType": " ", "changedQuantity": 1.0, "reference": " ", "sourceTs": "2017-10-04T17:14:37-00:00" }] } </Input> </InventoryVisibilityAPI>Sample REST Output<InventoryVisibilityAPI URL="https://api.watsoncommerce.ibm.com/inventory/tenant1/v1/demands" HTTPMethod="POST"> <ResponseHeaders /> <Output Status="202"/> </InventoryVisibilityAPI> - IVAdjustSupplyAsynchronously - This is a general service that considers supplies raised
by the
INVENTORY_CHANGE.SUPPLY_CHANGE_LISTevent, copies the message to a JMS queue, and calls theIVAdjustSupplySynchronouslyservice. This service enables the replication of supply from Sterling Order Management System to Sterling Intelligent Promising Inventory Visibility. This allows the external systems to invoke the Sterling Intelligent Promising Inventory Visibility REST APIs for availability lookups. Starting this service invokes theIVAdjustSupplySynchronouslyservice and transforms the XML message into JSON and POSThttps://api.watsoncommerce.ibm.com/inventory/{tenantId}/v1/suppliesREST API call.Sample REST Input<InventoryVisibilityAPI URL="https://api.watsoncommerce.ibm.com/inventory/tenant1/v1/supplies" HTTPMethod="POST" Content-Type="application/json"> <Input> { "supplies": [{ "adjustmentReason": "POS_ORDER", "shipNode": "Matrix-Store-001", "lineReference": " ", "productClass": "NEW", "type": "ONHAND", "itemId": "SKU1024", "reference": " ", "tagNumber": "|||", "sourceTs": "2016-12-05T17:14:37-00:00", "eta": "1900-01-01TT00:00:00Z", "segment": " ", "segmentType": " ", "changedQuantity": -1.0, "unitOfMeasure": "EACH", "referenceType": " ", "shipByDate": "2500-01-01TT00:00:00Z" },{ "adjustmentReason": "POS_ORDER", "shipNode": "Matrix-Store-001", "lineReference": " ", "productClass": "NEW", "type": "ONHAND", "itemId": "SKU2048", "reference": " ", "tagNumber": "|||", "sourceTs": "2016-12-05T17:14:37-00:00", "eta": "1900-01-01T00:00:00Z", "segment": " ", "segmentType": " ", "changedQuantity": -1.0, "unitOfMeasure": "EACH", "referenceType": " ", "shipByDate": "2500-01-01T00:00:00Z" }] } </Input> </InventoryVisibilityAPI>Sample REST Output<InventoryVisibilityAPI URL="https://api.watsoncommerce.ibm.com/inventory/tenant1/v1/supplies" HTTPMethod="POST"> <Output Status="202"/> </InventoryVisibilityAPI> - IVSyncDemandService SDF Service - This service provides a synchronized replication of
demand to ensure consistency between order and inventory operations. This service is raised by the
INVENTORY_SNAPSHOT.DEMAND_SYNCevent and is very similar to theIVAdjustDemandSynchronouslyservice, except for which a URL is invoked. The same XSLT is used for translation, but theHTTPMethodcomponent is set to PUT instead of POST. - IVSyncSupplyService SDF Service - This service provides a synchronized replication of
supply to ensure consistency between order and inventory operations. This service is raised by the
INVENTORY_SNAPSHOT.SUPPLY_SYNCevent and is very similar toIVAdjustSupplySynchronously, except for which a URL is invoked. The same XSLT is used for translation, but theHTTPMethodcomponent is set to PUT instead of POST.
- IVAdjustDemandAsynchronously - This is a general service that considers demands raised by
the
-
For the asynchronous services, ensure to Configure the properties in the
customer_overrides.propertiesfile. - Configure the InventorySnapShot agent for JMS Queues and connection information.