JSS Rule Engine 0.1.1— Now supporting more Sitecore rules than ever!

Jack Spektor
2 min readJul 22, 2024

--

Remember the Sitecore rule engine runner I’ve built previously for XM Cloud?

I’m continuing working on it and good news — we have a new release 0.1.1

It’s still very draft, but now I can proudly say that it supports 50% of the Sitecore rules and operators available.

All covered in unit tests and ready to use!

Here is a short list of Sitecore rule engine features supported now:

Logical Rules:

  • And
  • Or
  • True
  • Except True

Date Rules:

  • Date has passed
  • Day of month
  • Day of week
  • Month of year

Request rules:

  • Request Cookie Exists
  • Request Cookie Value
  • Request Parameter Exists
  • Request Parameter Value
  • Request Referral

Number Operators:

  • Is Equal To
  • Is Not Equal To
  • Is Greater Than
  • Is Greater Than Or Equal
  • Is Less Than
  • Is Less Than Or Equal

String Operators:

  • Is Regex Match
  • String Ends With
  • String Equal To (Ignore Case)
  • String Equal To
  • String Not Equal To (Ignore Case)
  • String Not Equal To
  • String Starts With
  • String Ends With
  • String Contains

In the backlog for next release:

Updating the NextJS npm personalization package to use the new rules from the rule-engine, as well as support for item and field rules and operators.

Stay tuned!

--

--

Jack Spektor
Jack Spektor

Written by Jack Spektor

Sitecore MVP 2018–2020, Sitecore Developer in AKQA, traveler and lover of life.

No responses yet