How do we Register the class in Rule Engine for creating custom code? #434
Unanswered
sugeshshun
asked this question in
Q&A
Replies: 1 comment
-
It's described here. var reSettingsWithCustomTypes = new ReSettings { CustomTypes = new Type[] { typeof(Utils) } };
new RulesEngine.RulesEngine(workflowRules.ToArray(), null, reSettingsWithCustomTypes); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are trying to create custom method in rule engine. As per the document we need to register the class (Utils) to call the custom method
I have tried like below, but am not sure my class is registered or not?
"Expression": "Utils.CheckContains(input1.country, "india,usa,canada,France") == true"
Beta Was this translation helpful? Give feedback.
All reactions