Replies: 2 comments 2 replies
-
@pawanrai to be honest I don’t understand the explanation of the problem when you load rules into one session. Maybe you have a small repro scenario or can explain it differently? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I found the problem. All the rules were part of same assembly, hence adding a condition to only load specific rules worked... Thanks snikolayev for looking into this |
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
-
We just started using Nrules in C#.net. There are multiple complex checks in our system that we are creating separate Nrule classes for. But in Then/Action method of Nrule classes we are appending text to the errortext property of the object like below:
obj.ErrorText += "This is error No#1"
Now, whenever we are using single session to load rules and then facts and perform the rule engine check then in single object's errortext property in getting value n time where n is the number of classes representing different rules that were loaded in session. However, this error message is because the first rule class ran and identified this error.
However, when we load and execute rules in separate sessions and fire them separately it works perfectly fine.
Could anyone please suggest what is wrong with the implementation.
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions