SendEventForInventoryPosition
Rule
Changed on:
5 Nov 2026
Overview
Sends an Event from an Inventory Quantity to its parent Inventory Position, inline.Use it after the SetState Rule in the ruleset that deactivates an Inventory Quantity, so on hand is recalculated without that Inventory Quantity.| Plugin Name | Inventory Reference Module |
|---|---|
| Namespace | [[account.id]].globalinventory |
- Product Catalogue workflow
- Inventory Catalogue workflow
- Control Group workflow
- Virtual Catalogue workflow
UI Description
Send {eventName} to the inventory quantity's parent inventory position
Accepts
- INVENTORY_QUANTITY
Actions
- This Rule produces an inline SendEventAction for the parent Inventory Position
Rule parameters
| Name | Type | Description | Required |
`eventName` | `String` | The name of the Event to send to the parent Inventory Position | Yes |
Event attributes
| Name | Type | Description | Required |
`inventoryPositionRef` | `String` | The Inventory Position Reference. If not provided, it is taken from the Inventory Quantity Reference. | No |
Exceptions
- This Rule throws a
`PropertyNotFoundException`when the Rule parameter(s) is not provided.
Configuration example
1{
2 "name": "[[account.id]].globalinventory.SendEventForInventoryPosition",
3 "props": {
4 "eventName": "CalculateOnHand"
5 }
6}Detailed Technical Description
This Rule execution includes the following steps:- Validate that
`eventName`has been provided - Resolve the Inventory Position Reference:
- From the
`inventoryPositionRef`Event attribute, when provided - Otherwise from the Inventory Quantity Reference, which must follow
`{inventoryPositionRef}:{quantityType}:{fulfilmentId}`
- From the
- Retrieve the Inventory Position, so its status and on hand are current
- Send
`eventName`inline to the Inventory Position:- Entity subtype: the Inventory Catalog type, so the Event matches the
`INVENTORY_POSITION`rulesets of the Inventory Catalog workflow - Entity status: the Inventory Position status
- Attributes: the incoming Event attributes plus
`inventoryPositionRef`,`inventoryPositionType`,`inventoryPositionStatus`and`inventoryPositionOnHand`
- Entity subtype: the Inventory Catalog type, so the Event matches the