microsoft / RulesEngine

A Json based Rules Engine with extensive Dynamic expression support
https://microsoft.github.io/RulesEngine/
MIT License
3.47k stars 528 forks source link

Rule Engine #585

Open ankurcts opened 4 months ago

ankurcts commented 4 months ago

I have created a rule in the rule engine in the azure blob storage that is Validatealert and this rule defines the expression which contains the left and right-side dynamic value but somehow, the right-side value creates an issue. So, are we supporting right side dynamic value or not? For example-

{ 'RuleName': 'ValidateAlert', 'Expression':(account.AuthorizationKey.ToString()==(account.AuthorizationKey.ToString()==commonEvent.DynamicAuthorizationKey.ToString()), 'ErrorMessage': 'Failed : Dynamic alert is invalid.' }

I'm getting the parser issue that is 'Exception while parsing expression Enum type 'DynamicAuthorizationKey' not found'. I tried with multiple permutation and combination to resolve that issue but just want to verify whether microsoft is supporting or not right side dynamic value in the rule engine definition.

Kindly have a look into this issue, and please suggest to me an appropriate solution.

asulwer commented 1 week ago

can you provide a better example?