microsoft / microsoft/RulesEngine

Rule Engine

Open
#585 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
616
Avg merge
6m
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the rule-engine expression parser and the ValidateAlert example in the issue. Reproduce the “Enum type 'DynamicAuthorizationKey' not found” error using the supplied expression, then determine whether right-side dynamic values are supported. Done means a confirmed supported syntax or a focused parser or documentation change addressing this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.