CodeEffects is one of the fastest and most intuitive XML-based .NET business rule engines out there. It implements a web-based rule editor and a lambda-based rule evaluation engine. Details can be found at CodeEffects.com/Doc. This tag should be used with questions related to any feature or use case of CodeEffects rules engine.
Questions tagged [codeeffects]
66 questions
3
votes
1 answer
Codeeffect rule editor allows to select only one action even though there are multiple actions to select from
I have requirements to use codeeffect rule editor for our feature. We have dynamic actions to render in the rule editor which user can select from.
So for that i have created the rule editor using FlexSource type. I tried to configure actions in…

hiren bhudrani
- 31
- 1
3
votes
1 answer
Codeeffects Linq Error: E106 The given ruleset does not contain any rules with type System.Xml.Linq.XElement
When I try to the following LINQ Filter
var productsInfo = from product in productsElement.Descendants("product").Filter(rule)
from photo in product.Descendants("photo")
from parameter in…

Kenneth Roberts
- 33
- 2
3
votes
1 answer
The given ruleset does not contain any rules with type System.Object, mscorlib,
First, I am using www.codeeffects.com framework to make a business rule evaluator, but in my case I need the types to be 100% dynamic.
I have the following code in my Proof of Concept method.
public ActionResult Save(RuleModel ruleEditor)
{
…

Luis Valencia
- 32,619
- 93
- 286
- 506
2
votes
1 answer
Nested "If-else" statements in CodeEffects rule
I am using CodeEffects rule editor for writing business rules in our application. I have many if-else conditions which are actually nested-if type rules. With no support of nested-if, I need to re-write all if conditions every time.
But I can't find…

Amit Dhandal
- 21
- 2
1
vote
1 answer
Flexsource properties not appearing in rule editor
I followed the demo project here https://codeeffects.com/Doc/Business-Rule-Flex-Source for a sample of how the Flex properties work. My rules are evaluated correctly, but the editor does not show the fields.
I have looked at all of the properties…

Stuart
- 11
- 1
1
vote
0 answers
CodeEffects exception with .net core 3.1 and running in docker container
After the upgrade from .net core 2.2 to 3.1 (without changing codeffects related code or library versions) we have problems when loading the xml into the rule editor (in the backend), but only when running the application in a docker container…

peterr
- 111
- 1
- 5
1
vote
1 answer
Fix issue in CodeEffects editor return error in MVC
I have issue when filter data using filter editor, I'm using object(order) to get data
I get this error :
System.NotSupportedException: 'Cannot compare elements of type…

Rio
- 11
- 1
1
vote
1 answer
Evaluating object with List property
I try to evaluate this rule

David
- 11
- 4
1
vote
0 answers
CodeEffects LoadSettings() not updating with new data without a hard reload (Angular)
Currently have an Angular implementation of CE being initialized and loadSettings being applied OnInit. When the component is destroyed and reloaded, I can see that the new data is correct for loadSettings(), but CE continues to display the original…

Tek
- 11
- 2
1
vote
1 answer
How to distinguish validation and business rules while creating through editor
I have right now two types of rules one is input validation rule and the other one is business rules. How do I distinguish rules while creating through the editor. I am saving all the rules in the database. While evaluating the rules I fetched all…

Muhammad Adnan Khan
- 23
- 3
1
vote
1 answer
While rule evaluation Db Connection null exception
I stuck in a scenario while evaluating the rule it initializes the class B and calls the default constructor, but I am injecting the Db Connection through parameter constructor. Please see the below code and advice.
public class A
{
…

Muhammad Adnan Khan
- 23
- 3
1
vote
1 answer
RuleEditor.GetClientSettings() throws NRE on generic Method after upgrading to v5.0.19.4 from v5.0.14.6
After I upgraded CodeEffects.Rule.Editor.Web.Core nuget from v5.0.14.6 to v5.0.19.4, I'm getting the following NullReferenceException when calling RuleEditor.GetClientSettings():
Message:
System.NullReferenceException : Object reference not…

Wagner DosAnjos
- 6,304
- 1
- 15
- 29
1
vote
1 answer
Element has the incorrect method name from GetRuleXml() after instantiating rule from XML
I manipulate the rule XML dynamically. Unfortunately, after I create the rule from the XML (RuleModel.Create) the resulting XML (RuleModel.GetRuleXml()) loses the action method name. I am able to workaround the issue by rebinding the rule to the…

Wagner DosAnjos
- 6,304
- 1
- 15
- 29
1
vote
1 answer
Xml.IsRuleValid is failing after upgrade from CodeEffects 4.3.7.2 to 5
We are trying to upgrade from CodeEffects 4.3.7.2 to 5. However, our existing rule xml fail when executing CodeEffects.Rule.Common.Xml.IsRuleValid. We are just loading the Xml into an XmlDocument and calling Xml.IsRuleValid. This is all existing and…

Daniel Lee
- 13
- 3
1
vote
1 answer
How can I provide a custom gui to code effects?
New member here. I am using Code Effects with ASP.NET Core. I want to have a custom UI to define rules and actions, using drop downs. How hard would this be?
It's just a matter of generating custom xml and adding it to an xml document for execution…

Blade5
- 21
- 2