SplitDeltasAndDownToInventoryPosition
Changed on:
11 Sept 2024
Overview
Notifies the inventory positions of the incoming deltas with event
`{eventName}`
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
Notifies the inventory positions of the incoming deltas with event {eventName}
Accepts
- INVENTORY_CATALOGUE
Actions
- This rule produces a SentEventAction with name for each delta record.
`{eventName}`
Rule parameters
Parameter | Type | Description |
| String | The name of the event to be triggered |
Event attributes
Parameter | Description | Data Type | Required? |
| A list of delta inventory quantities to be created | [InventoryDelta] | Yes |
InventoryDelta sub-attribute
Parameter | Description | Data Type | Required? |
| The Id of the delta that uniquely identifies this delta element | String | No |
| The inventory position type | String | No |
| The ref of the variant product associated to the inventory position | String | No |
| The location ref associated to the inventory position | String | No |
| The quantity | Integer | No |
Exceptions
If there is no inventory position found for any of the delta records, a
`RubixException`
Configuration example
1{
2 "name": "[[account.id]].globalinventory.SplitDeltasAndDownToInventoryPosition",
3 "props": {
4 "eventName": "CreateInventoryDelta"
5 }
6}
Language: json
Detailed Technical Description
This rule parses/deserializes the
`deltas`
`InventoryDelta`
`deltas`
`productRef`
`locationRef`
`entitySubtype`
`:`
If
`entitySubtype`
`DEFAULT`
For example, for
`"productRef":"PRD"`
`"locationRef":"LOC"`
`"entitySubtype":"DEFAULT"`
`PRD:LOC:DEFAULT`
Please note that the generated inventory position reference is used to group all the
`InventoryDelta`
`InventoryDelta`
`deltas`
`InventoryDelta`
`InventoryDelta`
InventoryDelta DTO Definition
1 public class InventoryDelta {
2 private String productRef;
3 private String locationRef;
4 private Integer qty;
5 private String type;
6 private String deltaId;
7 }
Language: java
Name: InventoryDelta
Description:
[Warning: empty required content area]Version History
v2.0.0
Refers to the Product Release Version