ValidateProductCategoriesExist
Rule
Changed on:
12 Aug 2025
Overview
Validate the incoming Product event to confirm that the given Categories already exist.| Plugin Name | Inventory Reference Module |
|---|---|
| Namespace | [[account.id]].globalinventory |
- Product Catalogue workflow
- Inventory Catalogue workflow
- Control Group workflow
- Virtual Catalogue workflow
UI Description
Validates the incoming product event to confirm the given categories already exist.
Accepts
- PRODUCT_CATALOGUE
Actions
- This Rule does not produce any Actions
Rule parameters
This Rule has no Input Parameters.
Event attributes
| Name | Type | Description | Required |
`categoryRefs` | [String] | A list of categories this product belongs to | No |
Exceptions
- This Rule throws an
`IllegalArgumentException`if any of the specified Categories do not exist.
Configuration example
1{
2 "name": "[[account.id]].globalinventory.ValidateProductCategoriesExist"
3}Detailed Technical Description
This Rule parses / deserializes`categoryRefs` event attribute. If there is at least one Category Reference provided in the incoming event attributes, it:- Checks if that Category(ies) exists in the Product Catalog, using the
`entityRef`field value of the incoming event as the Product Catalog Reference. - An
`IllegalArgumentException`will be thrown if at least one Category does not exist in the Product Catalog. - Otherwise, the Rule does not have any output Actions.
Version History
See previous versions
2023-08-03