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
1
vote
1 answer
Prettify a CodeEffect rule clause automatically
Is there a way to prettify the rule clause automatically?
For example, automatically format a rule from this:
Check if A is equal to B or ( B contains abc and C is not equal to A ) or ( C has no value and ( A starts with xyz or A doesn't end with…

Wagner DosAnjos
- 6,304
- 1
- 15
- 29
1
vote
1 answer
Passing a Reusable rule id into an action
I would have like to use reusable execution Rules as an action but saw on a post that it is not supported by code effects.
For example: If Temperature is 54 then RuleA.
Is there any support for passing the ruleid into an action so it can be added…

Joe
- 11
- 1
1
vote
1 answer
Quotes in CodeEffects Rule Editor values always fails
I'm working on an issue where our users are creating a CodeEffects rule and when adding in a string expression to be evaluated sometimes use quotes in the text, this causes an error when the rule is loaded in the controller and can be seen in the…

John Lucas
- 1,618
- 14
- 19
1
vote
1 answer
Building Rule Based on JSON Object
Currently, we are exploring CodeEffects for our one of the rule engine proposal.
We have a dynamic type which is a JSON string. During runtime, we need to apply the rule for JSON using CodeEffects. Is it support for FlexSource or any other…

Prakash
- 13
- 6
1
vote
1 answer
Problem with rule validation - valid on save, invalid on load
While testing the unchanged CodeEffects asp.net core demo application (Editor 5.0.4.8, Engine 5.0.2.6) I've found an interesting problem.
If I create an execution rule that checks for example if FirstName contains two spaces, I can save this rule…

peterr
- 111
- 1
- 5
1
vote
1 answer
CodeEffects - filter data source based on input parameter from other data source
Is there any possibility to filter data source based on the selected item in another data source?
If it is possible please share some directions. Thanks.

Zole
- 69
- 5
1
vote
1 answer
External method and action not working in demo
Using the unchanged CodeEffects asp.net core demo project (downloaded 25th Sept 2018) I encounter problems whenever I try to use external method IsToday or external action RequestInfo in the rule editor.
The exception is thrown both when trying to…

peterr
- 111
- 1
- 5
1
vote
1 answer
CodeEffects Rule Engine. How to use + operator in evaluation rules
We are doing POC on business rules using CodeEffects rule engine. Trying to write evaluation rules using rule editor. Here question is how to use + operator between custom functions to evaluate specific rule. For example, I would like to write rule…

Satya
- 11
- 1
1
vote
1 answer
multilingual codeeffects rule editor
How can I render the CodeEffects Rule Editor in a different language (Let's say Arabic).
I am using a custom class as the source object for the rule model and passing that in the viewbag to the view, there i am rendering the rule editor using that.…

Usman
- 13
- 1
- 4
1
vote
1 answer
Codeeffect Rule Engine - How to define rules to check length of string
I have to define a rule like <> length is < 5 or >5 AND not equal to 'N/A'.
I am not able to get Len() function in the list of operators for the string data type.
Please suggest if any field level attributes needs to define.

Sachin Gedam
- 13
- 4
1
vote
0 answers
UI for creating business rules in NRules
I have been searching for a rules engine to be used in a data import system i am creating.
I found several rules engines but it looks like NRules is the most popular also i found CodeEffects which is good but not free.
So i was wondering if there…

Khaled
- 841
- 3
- 13
- 22
1
vote
1 answer
CodeEffects - Existing rules error after upgrade
After upgrading codeeffects from 4.3.2.6 to 4.3.6.7 existing rules that have any coded actions or methods fail to load with the error:
"The highlighted rule elements could not be located in the current source object. Please update this rule or roll…

Iain
- 45
- 6
1
vote
1 answer
Q: Loading CodeEffects RuleEditor instance with a different source object
I am attempting to load a selected source object from a dropdown menu into the Rule Editor.
I'm already creating the RuleModel from the selected source object in a new instance of the RuleEditor and loading the settings into CodeEffects from the…

Jake Webber
- 21
- 3
1
vote
1 answer
Code Effects business-rules rule engine dropdown fields issue
We are trying to run sample code effects business-rule engine MVC sample by using an existing .NET class as a Source Object, this class have two drop-down Fields. FieldA have string datatype, whereas FieldB is of int data type as shown below both…

Muhammad Salman
- 11
- 2
1
vote
1 answer
Build a CodeEffect Rule
Is there a way to build a ruleset in codeeffects from a string? The default way over the ASP/MVC RuleEditor is currently not an option.

Andreas
- 11
- 1