Fluent Commerce Logo
Docs
Sign In

Core Reference Module

Package

Changed on:

17 Feb 2025

Publisher:Fluent Commerce
Website:Fluent Commerce

Download reference module

Version History

2025-02-17

Key Changes:

2025-01-20

Key Changes:

JsonPath provision for Event attributes has been fixed for the following Rules:

2024-07-23

Improved Integrity Checks: The jar file in the Core Module now complies with standard integrity verification tools.

  • Benefit: This ensures that the jar file passes CRC checks, preventing errors when verifying or reading the jar file.
  • Technical Fix: Previously, tools like
    `unzip`
    and standard Python libraries might fail to verify or read the jar file due to integrity issues. This update resolves these issues, ensuring smooth operation.No changes were made to the rules or any other files within the Core Module.
2024-06-12

Bug fixes:

  • Fixed issue with 
    ``SetState``
     rule not handling GraphQL failure responses gracefully.
  • Enabled Rubix retry mechanism to work properly with the 
    ``SetState``
     rule, reducing errors related to concurrent updates when the same entity is updated via different processes.
2023-06-19

Enhancement:

  • Added a new ScheduledEvent rule to Core Reference Module. This rule will allow you to schedule an event to occur after a specified amount of time has passed.

Bug fixes:

  • The 
    `SendWebhook`
     rule will no longer fail with an ActionException unexpectedly
  • The 
    `SetState`
     rule now works correctly with the INVOICE entity
2023-04-19

Bug fix:

  • The 
    `SetState`
     rule now works correctly in Fulfilment Options Workflows.
2023-03-09

Bug fixes:

  • The 
    `SetState`
     rule now works correctly in Locations Workflows.
  • The 
    `SetState`
     rule no longer causes some statuses in a Workflow to need to be removed in order to pass validation.
  • The 
    `SetState`
     rule no longer causes orchestration events to get stuck in Pending status and Audit events to no longer be logged.
  • The 
    `SetState`
     rule no longer causes an exception to be thrown when an entity level is changed.
2022-11-30

The first release candidate of the Core Reference Module.

Overview

The Core Reference Module is a foundational Reference Module. 

It provides a base set of general purpose Rules:

  • that other Modules are built upon 
  • or that can be included in your own Workflows

Extensible by design, use this Module as a base to build a solution for the needs of your customers.

Detailed Technical Description

Features

The Core Reference Module contains a collection of general purpose Rules to power your Workflows:

  • Change the state of an Entity
  • Send an Event to trigger a Ruleset for the same Entity
  • Send a Webhook
  • Create conditional logic based on the value or presence of a property

Workflows

The Core Reference Module doesn't provide any Reference Workflows.

Its Rules are designed as follows:

Rules

The Rules below make up the Core Module:

Name

Description

SetState

Change the status field of this entity to the value provided.

SendEvent

Send an event to trigger another Ruleset on the same entity.

IfPropertyEquals

Conditionally trigger another Ruleset when the specified entity field or event attribute matches the provided value.

IfPropertyNotEquals

Conditionally trigger another Ruleset when the specified entity field or event attribute does not match the provided value. Typically used as an "else" case for the "IfPropertyEquals" rule.

IfPropertyIsPresent

Conditionally trigger another Ruleset when the specified entity field or event attribute is not null.

IfPropertyIsNotPresent

Conditionally trigger another Ruleset when the specified entity field or event attribute is null.Typically used as an "else" case for the "IfPropertyIsPresent" rule.

IfPropertyIsGreaterThan

Conditionally trigger another Ruleset when the specified entity field or event attribute is greater than the provided value. A usage example includes pushing an order through a fraud-check flow only when the 

`totalPrice`
 field is greater than 
`100`
.

IfPropertyIsLessThan

Conditionally trigger another Ruleset when the specified entity field or event attribute is less than the provided value.

IfPropertyIsBetween

Conditionally trigger another Ruleset when the specified entity field or event attribute is between the provided values.

SendWebhook

Send a configurable Webhook based on a setting.

ScheduledEvent

Send an event after a specified amount of time has passed.

Capability type:Module