SendEventToAllInventoryQuantities
Changed on:
2 Nov 2023
Overview
Send an event {eventName} to inventory quantities of type {inventoryQuantityTypes} using event attributes
Plugin Name | Inventory Reference Module |
---|---|
Namespace | [[account.id]].globalinventory |
The Inventory Reference Module is the foundation for inventory 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 Inventory Module includes the following areas:
- Product Catalogue workflow
- Inventory Catalogue workflow
- Control Group workflow
- Virtual Catalogue workflow
UI Description
Send an event {eventName} to inventory quantities of type {inventoryQuantityTypes} using event attributes
Accepts
- INVENTORY_POSITION
Actions
- This rule produces a SendEventAction that will send an inline event to each the qualified inventory quantities.
Rule parameters
Parameter | Description |
eventName | The name of event to be triggered |
inventoryQuantityTypes | List of inventory quantity types |
Event attributes
Parameter | Description | Data Type | Required? |
inventoryPosition | The inventory position whose associated inventory quantities are receiving the event | The type is a Java object, required and defined below | Required |
Exceptions
- If rule property or
`eventName`
are not set in the workflow, a PropertyNotFoundException will be thrown.`inventoryQuantityTypes`
- If event attribute is missing, an EventAttributeNotFoundException will be thrown.
`inventoryPosition`
Configuration example
1{
2 "name": "FLUENTRETAIL.globalinventory.SendEventToAllInventoryQuantities",
3 "props": {
4 "eventName": "QuantityResetEvent",
5 "inventoryQuantityTypes": [
6 "RESERVED"
7 ]
8 }
9}
Language: json
Detailed Technical Description
The rule checks all the Inventory Quantities under a given Inventory Position to find ones which match the type or types
`{inventoryQuantityTypes}`
`{eventName}`
1public class InventoryPosition {
2
3 private String ref;
4
5 private String type;
6
7 private String status;
8
9 @NonNull
10 private String productRef;
11
12 @NonNull
13 private String locationRef;
14
15 private List<InventoryQuantity> inventoryQuantities;
16
17 private List<Attribute> attributes;
18
19 @JsonPOJOBuilder(withPrefix = "")
20 public static final class Builder {
21
22 }
23}
Language: java
Name: InventoryPosition
Description:
[Warning: empty required content area]Version History
v23.8.2
refers to the plugin