How to create Rules Engine using Wappler?

Hello All,

Is it possible to create a similar rules engine in NodeJS using Wappler?

Can anybody guide on the DB structure, the APIs to run it & the UI part?

Yes, you can.

@ Notum is being overly simplistic.

The kind he wants it's difficult to make. Infinitely nested conditions.

A small hint is to store the conditions as a JSON object. But then you end up with a "nice" computer science exercise, how structure the object and how to iterate the conditions and travel deep (some sort of recursion?) into the nested conditions.

Asking ChatGPT could be interesting.

As for the UI I don't know how to make because it's not my area of expertise.

Thanks @Notum for your input. However, I want to create similar feature for my application for the users to define conditions.

Thanks @Apple for your insights. Yeah, even I have started to realize this will become too complex. Anyways, as you suggested, I will try using ChatGPT to understand the logic for implementing such feature.