ForwardIfInventoryQuantityOfTypeExists
Rule
Changed on:
12 Aug 2025
Overview
Conditionally trigger another Ruleset when the Inventory Position and Quantity of the specified type exist.| Plugin Name | Inventory Reference Module |
|---|---|
| Namespace | [[account.id]].globalinventory |
- Product Catalogue workflow
- Inventory Catalogue workflow
- Control Group workflow
- Virtual Catalogue workflow
UI Description
Forward event {eventName} if the inventory position and quantity of {type} exists.
Accepts
- INVENTORY_POSITION
Actions
- This Rule conditionally produces a SendEventAction
Rule parameters
| Name | Type | Description |
`eventName` | `String` | The name of event to be triggered if inventory position and quantity exists |
`type` | `String` | Type of the inventory quantity |
Event attributes
| Name | Type | Description | Required |
`inventoryQuantityExists` | Boolean | Indicates if the inventory quantity exists or not | No |
`inventoryQuantityTypes` | List<String> | All the inventory quantity types that exist for the given inventory position | No |
`inventoryPostionRef` | String | The reference of the inventory position | No |
Exceptions
This rule does NOT throw any exceptions.
Configuration example
1{
2 "name": "[[account.id]].globalinventory.ForwardIfInventoryQuantityOfTypeExists",
3 "props": {
4 "eventName": "BatchInventoryPositionUpdate",
5 "type": "LAST_ON_HAND"
6 }
7}Detailed Technical Description
This Rule will conditionally produce a SendEventAction with entitySubtype derived from {entitySubtype}. If {entitySubtype} is null, entitySubtype would be hardcoded to 'DEFAULT'. The Rule condition is defined by the existence of the Inventory Position and Quantity of`type` parameter. When the Rule condition is met, the Event will be produced with a name defined by the `eventName` parameter.