Triggering inventory cache push synchronization

Inventory cache synchronization runs in two modes: Monitor Option 1 mode, where the Activity Based Monitor focuses on distinct inventory items in the YFS_INVENTORY_ACTIVITY table, and Monitor Option 3 mode, which is Full Sync. This monitor focuses on all inventory items maintained by the inventory organization provided. If no InventoryOrganizationCode is provided, all inventory items are monitored.

The inventory push is triggered in Monitor Option 1 or Monitor Option 3 mode, the availability change message from Sterling Order Management is routed to the SyncInventoryAvailability Service and sent to the HCL Commerce Inventory service.
  • In Activity based Inventory Sync, if inventory goes above or below a threshold, that is, if the inventory level changes (additional inventory available) or inventory falls under a specified threshold, the availability change message from Sterling Order Management is routed to the SyncInventoryAvailability Service and sent to the HCL Commerce Inventory service.
    Figure 1. Monitor Option 1 mode

    To trigger inventory cache push synchronization in Monitor Option 1 mode, run the following command:

    <INSTALL_DIR>/bin/triggeragent.sh <RTAM_CRITERIA_ID_OP1>
  • When a full inventory sync is required where the entire catalog inventory is synchronized, the inventory push is triggered in Monitor Option 3 mode, where the availability change message from Sterling Order Management is routed to the SyncInventoryAvailabilityCSV Service. This service creates InventoryAvailability.csv file, which is consumed by the HCL Commerce scheduler.
    Figure 2. Monitor Option 3 mode

    To trigger inventory cache push synchronization in Monitor Option 3 mode, run the following command:

    <INSTALL_DIR>/bin/triggeragent.sh <RTAM_CRITERIA_ID_OP3>