Parse UI dynamic rules to nrules framework.

80 views
Skip to first unread message

Victor Souza

unread,
Mar 12, 2020, 7:12:42 AM3/12/20
to NRules Users
Please i need examples of parsing dynamic rules generated by the user on the UI. Can anyone help me? I couldnt find any example about this on the documentation.

Thanks a lot.

Sergiy Nikolayev

unread,
Mar 19, 2020, 10:45:28 PM3/19/20
to NRules Users
There is no UI for writing rules with NRules. Rules are authored in C#, so you would use Visual Studio or Visual Studio Code.
The closest thing to what you are asking is a special rules language: https://github.com/NRules/NRules.Language, but that still does not come with a UI or IDE.

Victor Souza

unread,
Mar 19, 2020, 11:12:51 PM3/19/20
to NRules Users
Thanks for the answer Sergiy, but i need to create a system that have some rules white in code, but i also need to give the opportunity to the user to create or edit new rules. Do you have any advise about how to do this?

Thanks for the help.

Alexander Saevsky

unread,
Mar 20, 2020, 9:11:48 AM3/20/20
to NRules Users
Victor, I wonder what a problem can be here.
I typed in GOOGLE ".net linq expression parser" - and got a lot of suggestions.
The first was:
Since rules in NRules are just linq expressions it should not be a problem to parse the string and feed the rule to the engine.
I am going to do it myself, but not just now. I will share my results if (and when) I will elaborate on this issue.

Reply all
Reply to author
Forward
0 new messages