Fluent Commerce Logo
Docs
Sign In

LoadProductAndLocationStatus

Rule

Changed on:

26 May 2025

Overview

Forward {eventName} () with the "productStatus" and "locationStatus" if the product and exist.

Plugin NameInventory Reference Module
Namespace[[account.id]].globalinventory

The is the foundation for related implementations. It provides reference Workflows for inventory ingestion and processing. Extensible by design, use this Module as a base to build a solution to the needs of your customers.

The Module includes the following areas:

  • Product Catalogue workflow
  • Inventory Catalogue workflow
  • Control Group workflow
  • Virtual Catalogue workflow

UI Description

Forward event {eventName} (inline event) with the attribute "productStatus" and "locationStatus" if the product and location exist.

Accepts

  • INVENTORY_POSITION

Actions

  • This rule produces a SendEventAction with name ="eventName" with "productStatus" and "locationStatus" attributes

Rule parameters

Parameter

Description

eventName

The name of to be triggered

productCatalogueRef

The product catalogue ref for loading the variant product information.

Event attributes

Parameter

Description

Data Type

Required?

productRef

Variant product ref for the position

String

Required

locationRef

ref for the position

String

Required

Exceptions

  • This rule will throw a PropertyNotFoundException if `eventName` property is not provided.
  • This rule will throw a PropertyNotFoundException which is a subclass of RubixException if the `productCatalogueRef` property is not provided.

Configuration example

1{
2  "name": "FLUENTRETAIL.globalinventory.LoadProductAndLocationStatus",
3  "props": {
4    "eventName": "CheckProductStatus",
5    "productCatalogueRef": "PRODUCT_CATALOGUE_001"
6  }
7}

Detailed Technical Description

Based on the product catalogue `ref` ( property), product ref ( attributes) and ref ( attributes), the loads the corresponding variant product and in one API query request. Then the adds the "productStatus" and "locationStatus" into attributes and produces one `SendEventAction` with the name from property.

Version History

2023-08-02

v2.0.0

refers to the