Fluent Commerce Logo
Docs
Sign In

ProductPositionEventsForProduct

Rule

Changed on:

2 Nov 2023

Overview

Send to each position using the productRef from the attributes.

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

Send scheduled event to each inventory position using the productRef from the event attributes.

Accepts

  • INVENTORY_POSITION

Actions

  • This rule produces a SendEventAction that will send a scheduled event {eventName} with attribute Retailer id

Rule parameters

Parameter

Description

eventName

The name of to be triggered

Event attributes

Parameter

Description

Data Type

Required?

productRef

The associated product Ref

String

Required

Exceptions

If `eventName`  property is not set in the , a PropertyNotFoundException will be thrown.

Configuration example

1{
2  "name": "FLUENTRETAIL.globalinventory.ProducePositionEventsForProduct",
3  "props": {
4    "eventName": "VariantProductStatusChanged"
5  }
6}

Detailed Technical Description

This will send a to each position using the `productRef` from the attributes. `productRef` is taken from the incoming . The will query all positions for a given product ref, after that, it will generate a of `{eventName}` for each position and send them one by one.

Version History

2023-08-02

v2.0.0

refers to the