Can the following rule syntax be supported?
vampireslove opened this issue · 1 comments
vampireslove commented
Can the following rule syntax be supported?
{"$and":[{"status.state":{"$eq":"running"}}]}
{"$or":[{"source":{"$eq":"weather"}},{"$and":[{"scope":{"$eq":"Service"}},{"status.state":{"$eq":"running1"}}]}]}
{"$and":[{"status.temperature":{"$gt":10,"$lt":26}},{"status.pm25":{"$lt":90}},{"status.wetness":{"$eq":89}}]}
rgehrsitz commented
Why not just implement your rules in the JSON format that is used by the engine? For example, your first rule would be:
{
"conditions": {
"all": [
{
"identifier": "status.state",
"operator": "=",
"value": "running"
}
]
}
}