Fluent Commerce Logo
Docs
Sign In

VerifyingFulfilmentItems

Rule

Changed on:

29 Nov 2023

Overview

The verifies the quantity of items fulfilled in the incoming fulfilment and sends the corresponding when it matches the quantity from the input parameter.

Plugin NameOrder Reference Module
Namespace[[account.id]].order

The is the foundation for order-related implementations. It provides reference workflows for , and mixed baskets and those needed to build your own. Extensible by design, use this Module as a base to build a solution to your customers' needs.

UI Description

Verifies the quantity (not a number, quantity here refers to ALL, PARTIAL or NONE) of items fulfilled in the incoming fulfilment entity and sends an event with the corresponding event name when it matches the quantity from the input parameter.

Accepts

  • FULFILMENT

Actions

  • This rule creates and sends an event if the quantity is matched.

Rule parameters

Parameter

Description

eventName

The name of to be triggered.

quantity

Quantity fulfilled, to be matched with fulfilment item's fulfilled quantities: NONE, ALL or PARTIAL.

Event attributes

This does not directly identify any attributes.



Exceptions

This will throw an RubixException: 400

  • if fulfilment cannot be found with `Id`
  • if fulfilment items cannot be found for `fulfilmentId`
  • if quantity type is not supported

Configuration example

1{
2  "name": "<ACCOUNTID>.order.VerifyingFulfilmentItems",
3  "props": {
4    "eventName":"AllFulFilled",
5    "quantity":"ALL"
6  }
7}

Version History

2023-08-03

v1.0.0

refers to