tigergraph / ecosys

TigerGraph Ecosystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to build a rules engine in TigerGraph

dmccreary opened this issue · comments

We would like to build a simple rules engine that stores and executes rules TigerGraph. To get started we just would like to add Boolean expressions to a search query. For example, this is a "composite" rule which is an AND of three other rules.

Select all customers where:
STATE = 'MN' OR STATE = "IA" OR STATE = "WI" OR STATE = "ND" OR STATE = "SD" // midwest states rule
AND
PRODUCT_PURCHASED = "P123" OR PRODUCT_PURCHASED = "P456" // product family 898
AND
NET_PROMOTER_SCORE < 7

We would like to have a simple web user interface (strong preference for REACT and Antd) that allows people to define the rules, give them names and recombines them. We would also like a node that tracks how many times rules are executed.

Thanks!