LoadVirtualPositionAndVirtualCatalogueDetails
Changed on:
2 Nov 2023
Overview
Loads the virtual position details and then sends an 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
Loads the virtual position details and then sends an event {eventName}
Accepts
- VIRTUAL_CATALOGUE
Actions
- This rule produces a SendEventAction that forwards the incoming event as an inline event with the given name {eventName}.
Rule parameters
Parameter | Description |
eventName | The name of event to be triggered |
type | The type of Virtual Position & Virtual Catalogue* |
*This needs to be either “BASE” or “AGGREGATE” for the 2 types of Virtual Catalogue. |
Event attributes
Parameter | Description | Data Type | Required? |
virtualCatalogueInventoryCatalogueRef | The ref of the inventory catalogue this virtual position goes | String | Optional |
virtualPositionProductRef | The product ref of the virtual position | String | Optional |
virtualPositionGroupRef | The group reference value of the virtual position | String | Optional |
Exceptions
No Exceptions are generated from this rule
Configuration example
1{
2 "name": "FLUENTRETAIL.globalinventory.LoadVirtualPositionAndVirtualCatalogueDetails",
3 "props": {
4 "eventName": "CheckVirtualPositionExists",
5 "type": "BASE"
6 }
7}
Language: json
Detailed Technical Description
The generated event contains the following event attributes:
Parameter | Description | Notes |
virtualCatalogueRef | The ref of the virtual catalogue | |
virtualCatalogueType | The type of the virtual catalogue | |
virtualCatalogueInventoryCatalogueRef | The inventory catalogue ref this virtual catalogue is made of | |
virtualCatalogueProductCatalogueRef | The product catalogue ref this virtual catalogue is made of | |
virtualCatalogueControlGroupRef | The control group ref this virtual catalogue is made of | |
virtualCatalogueNetworkIds | The network references this virtual catalogue is made of | |
virtualPositionRef | The ref of the virtual position | |
virtualPositionProductRef | The product ref of the virtual position | |
virtualPositionQuantity | The quantity of the virtual position | |
virtualPositionGroupRef | The group reference value of the virtual position | |
virtualPositionType | The virtual position type | |
targetVirtualPositionRef | The ref of the virtual position | same as the value of virtualPositionRef |
locationRef | The ref of the location | Contains the same value as the {locationRef} incoming event attribute |
productRef | The product ref of the virtual position | Same value as the value of {productRef} incoming event attribute |
- The rule queries a virtual catalogue using the value of the event and adds all the virtual catalogue information to the new event as attributes. See output actions for all the event attribute names. This rule makes another query to fetch virtual position details using the
`{entityRef}`
of the incoming event (as the virtual catalogue`{entityRef}`
) and the virtual position`ref`
.`ref`
- The virtual position is constructed in the following way.
`ref`
- virtual position ref = if the input parameter
`{productRef}:{locationRef}:BASE`
is BASE`{type}`
- virtual position ref = virtual position ref = if the input parameter
`{productRef}:{rootEntityRef}:BASE`
is AGGREGATE`{type}`
- virtual position ref =
- The virtual position information is also added to the new event as attributes.
- If there is no virtual catalogue or virtual position found, the rule won't add virtual catalogue or virtual position details to the generated event, however it will still trigger the new event .
`{eventName}`
Version History
v2.0.0
First release