Replies: 2 comments
-
Hi @Gareth064 , There is a bug in our dependency library where if a class has same name as input parameter, it gives higher precedence to type. You can either set AutoRegisterInputType as false in ReSettings Or you can change the name of your input parameter //{
// "WorkflowName": "Discount",
// "Rules": [
// {
// "RuleName": "GiveDiscount10",
// "Expression": "myInput.country == \"india\""
// }
// ]
// }
var re = new RulesEngine.RulesEngine(workflowRules);
var input1 = new input1 { country = "india" };
var resultList = await re.ExecuteAllRulesAsync("CountryCheck", new RuleParameter("myInput",input1); |
Beta Was this translation helpful? Give feedback.
-
Awesome, thank you @abbasc52 this is working and getting me going the way I was hoping. |
Beta Was this translation helpful? Give feedback.
-
Hey guys. I have just picked up this package as it looks like it will be very useful when applying Rules to make UI changes on my Blazor WASM App. But before I start adding it in, I am doing a small test app to see how it works.... and I'm already stumped :(
Can anyone tell me what is wrong here...
Results in
Beta Was this translation helpful? Give feedback.
All reactions