Next Topic »
Code Effects Implementation Examples
Rule Editor is a free web-based business rules authoring and management component that supports all current .NET web platforms. The list below links articles that provide details, NuGet links and code samples of implementation of Rule Editor on each platform.
Clasic ASP.NET WebForms 4.5 and below
Classic ASP.NET MVC 4.5 and below
ASP.NET 4.6 and up
ASP.NET MVC 4.6 and up
ASP.NET Core 2.0 and up
You can download and run demo projects that demonstrate Rule Editor and Rule Engine in action.
Note that even though Code Effects 5.0 supports older web platforms such as ASP.NET MVC 4.5, your project still has to be compiled with at least .NET Framework 4.6.2. See the Prerequisites section of each topic for details.
One of the goals of Rule Editor development is to be completely independent from particular .NET web platform, whether it's ASP.NET, MVC, Core, or any of the future web initiatives from Microsoft. Therefore, the basic steps of integration of Rule Editor in a web application has been simplified to the point where it becomes pretty much identical in all current .NET web platforms:
- Reference Rule Editor's assembly from the NuGet. Refer to the list of implementation examples above for correct NuGet links based on the web platform of your choice.
- Reference two Code Effects CSS files in your markup: CodeEffects.Common.css and one of the default theme files. This step is optional; details on Code Effects styling can be found in this topic.
- Reference the main CodeEffects.js script in your markup. This script declares the entire client-side functionality of the Rule Editor. Its API can be found in this topic.
- Finally, you need to initialize the Rule Editor. To do that you must get two sets of client settings from the server (usually on page load) and pass it to the client. You also need to declare Save, Load and Delete client functions, too, in order to be able to manage your rules. All our demo projects declare the main.js (or site.js) local script that does all that.
Post your questions about Code Effects on Stackoverflow
and become a part of our growing community