Fluent Commerce Logo
Docs
Sign In

IfPropertyNotEquals

Rule

Changed on:

7 Feb 2025

Overview

Conditionally another when the specified field or does not match the provided value.

This is typically used as an "else" case for the IfPropertyEquals .

Plugin NameCore Reference Module
Namespace[[account.id]].core

The is a foundational

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.

UI Description

If {jsonpath} is not {value}, do {eventName}

Accepts

  • All Orchestration Entities

Actions

Rule parameters

Name

Type

Description

`jsonpath`

`JsonPath`

The path to the value being compared, see JsonPath.

`value`

`Object`

Value to compare against.

`eventName`

`String`

Name of the to send if the check passes.

Event attributes

The expected can be defined with the `jsonpath` parameter value.

Exceptions

  • This Rule throws a `PropertyNotFoundException` when the Rule parameter(s) is not provided.

Configuration example

1{
2    "name": "[[account.id]].core.IfPropertyNotEquals",
3    "props": {
4        "jsonpath": "fulfilmentChoice.deliveryType",
5        "value": "EXPRESS",
6        "eventName": "DefaultSourcingStrategy"
7    }
8}

Detailed Technical Description

This will conditionally produce a SendEventAction.

The condition is defined by the specified `jsonpath` and `value` properties. 

The `jsonpath` parameter may identify:

  • A field on an Entity 
  • Or an Event attribute

If the specified `jsonpath` property does not match the `value` provided, the will be produced for the same Context as the currently executing , but with a new name defined by the `eventName` parameter.

If the specified `jsonpath` property is missing (i.e., `null`), the will not be produced. 

Workflow Builder (Modeller) Screenshot
No alt provided

Version History

2025-02-17

v25.2.17

This :

  • NO longer produces a custom Audit Event if the Rule condition is not met
  • Evaluates to false when the specified `jsonpath` property is missing (i.e., `null`).

The Version refers to the Product Release Version.

2025-01-20

v25.1.20

This has been fixed to support JsonPath provision for attributes.

The Version refers to the Product Release Version.

2023-08-02

v23.8.1

Refers to the Product Release Version