ValidateProductCategoriesExist
Changed on:
18 Oct 2024
Overview
Validate the incoming Product event to confirm that the given Categories already exist.
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
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 |
| [String] | A list of categories this product belongs to | No |
Exceptions
- This Rule throws an if any of the specified Categories do not exist.
`IllegalArgumentException`
Configuration example
1{
2 "name": "[[account.id]].globalinventory.ValidateProductCategoriesExist"
3}
Language: json
Detailed Technical Description
This Rule parses / deserializes `categoryRefs`
- Checks if that Category(ies) exists in the Product Catalog, using the field value of the incoming event as the Product Catalog Reference.
`entityRef`
- An will be thrown if at least one Category does not exist in the Product Catalog.
`IllegalArgumentException`
- Otherwise, the Rule does not have any output Actions.
Version History
v.24.10.28
This Rule has been extended with a pagination logic to ensure correct execution when a given Product is associated with more than 100 Categories.
The Rule Version refers to the Product Release Version.
v2.0.0
refers to plugin