Fluent Commerce Logo
Docs
Sign In

IfPropertyEquals

Rule

Changed on:

23 Apr 2024

Overview

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

UI Description

If {jsonpath} is {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 event to send if the check passes.

Configuration example

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

Language: json

Detailed Technical Description

This Rule will conditionally produce a SendEventAction, or a custom Audit Event if the Rule condition is not met.

The Rule condition is defined by the

`jsonPath`
and the
`value`
parameters. The
`jsonPath`
may identify a field on an entity, or an Event Attribute. If the
`jsonPath`
property matches the
`value`
provided, the Event will be produced for the same Context as the currently executing Event, but with a new name defined by the
`eventName`
parameter.

Workflow Builder (Modeller) Screenshot
No alt provided

Version History

2023-08-02

v23.8.1

Refers to the Product Release Version

Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo