Fluent Commerce Logo
Docs

CreateParcelsForFulfilment

RuleRules are designed to be building blocks for workflow logic.

Changed on:

8 Aug 2025

Overview

This rule is executed to create articles based on the items packed into parcels.
Plugin NameOrder Reference Module
Namespace[[account.id]].order
The Order Reference Module is the foundation for order-related implementations. It provides reference workflows for click & collect, home delivery 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

Create parcels from details on the event attribute articles

Accepts

  • Fulfilment

Actions

  • This Rule produces a createArticle `MutateAction`

Event attributes

ParameterDescriptionData TypeRequired?
packedItemsThe list of packed and rejected fulfilment itemsObjectRequired

Exceptions

This rule may result in the following exceptions:
  • All generated exceptions will be wrapped with RubixException: 400;
  • Throw `IllegalArgumentException` if an incoming event has no `packedItems` attribute.

Configuration example

1{
2  "name": "[[account.id]].order.CreateParcelsForFulfilment",
3  "props": null
4}

Detailed Technical Description

This rule gets the `packedItems` attribute from the event. After that, the rule creates one or more parcels(articles) based on the information from the '`packedItems.articles`’ attribute if they are not empty. 
Workflow Builder (Modeller) Screenshot
No alt provided

Version History