Click here to Skip to main content
15,354,816 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: looking for a business rule engine in .Net Pin
honey the codewitch29-Nov-21 12:37
mvahoney the codewitch29-Nov-21 12:37 
GeneralRe: looking for a business rule engine in .Net Pin
Southmountain29-Nov-21 13:44
MemberSouthmountain29-Nov-21 13:44 
GeneralRe: looking for a business rule engine in .Net Pin
honey the codewitch29-Nov-21 13:54
mvahoney the codewitch29-Nov-21 13:54 
GeneralRe: looking for a business rule engine in .Net Pin
Southmountain29-Nov-21 14:44
MemberSouthmountain29-Nov-21 14:44 
GeneralRe: looking for a business rule engine in .Net Pin
PIEBALDconsult29-Nov-21 13:35
professionalPIEBALDconsult29-Nov-21 13:35 
GeneralRe: looking for a business rule engine in .Net Pin
RickZeeland29-Nov-21 9:44
mveRickZeeland29-Nov-21 9:44 
GeneralRe: looking for a business rule engine in .Net Pin
Southmountain29-Nov-21 10:00
MemberSouthmountain29-Nov-21 10:00 
GeneralRe: looking for a business rule engine in .Net Pin
M. Eugene Andrews1-Dec-21 2:44
MemberM. Eugene Andrews1-Dec-21 2:44 
I built one years ago that's still in production today. It was written in C#.

The rules are not a custom language or anything of the sort. Each rule is an implemented derived class and each rule has inputs and outputs (which can be anything). Then, you just string those rules together, where the output of one rule connects to the input of another rule. This has two benefits: 1) you don't have the overhead of a custom parser for determining the end-result, i.e., it's already a language you know; 2) you can reuse these rules in various combinations for a variety of tasks.

The rules can live in the same or separate assemblies and are then loaded into an AppDomain upon execution. There is a Rule Execution Engine that takes a "map" of how each rule is connected and then loads the appropriate assemblies, from where said rules are located, and executes them in the correct order and asynchronously if needed.

This may be a simpler approach than a custom language solution. I do not have a general-purpose one written. I intended to write one years ago (after writing the one for the company I work for), but I never got around to it. This approach may or may not work for you, though.
GeneralRe: looking for a business rule engine in .Net Pin
James Curran1-Dec-21 19:40
MemberJames Curran1-Dec-21 19:40 
GeneralRe: looking for a business rule engine in .Net Pin
Southmountain2-Dec-21 6:20
MemberSouthmountain2-Dec-21 6:20 
GeneralRe: looking for a business rule engine in .Net Pin
englebart2-Dec-21 15:57
professionalenglebart2-Dec-21 15:57 
GeneralRe-purposing hardware Pin
Rich Leyshon29-Nov-21 6:07
MemberRich Leyshon29-Nov-21 6:07 
GeneralRe: Re-purposing hardware Pin
honey the codewitch29-Nov-21 6:54
mvahoney the codewitch29-Nov-21 6:54 
GeneralRe: Re-purposing hardware Pin
Daniel Pfeffer29-Nov-21 8:08
professionalDaniel Pfeffer29-Nov-21 8:08 
GeneralRe: Re-purposing hardware Pin
OriginalGriff29-Nov-21 8:22
mveOriginalGriff29-Nov-21 8:22 
GeneralRe: Re-purposing hardware Pin
dandy7230-Nov-21 5:27
Memberdandy7230-Nov-21 5:27 
GeneralPants Pin
honey the codewitch29-Nov-21 5:42
mvahoney the codewitch29-Nov-21 5:42 
GeneralRe: Pants Pin
dandy7229-Nov-21 5:53
Memberdandy7229-Nov-21 5:53 
GeneralRe: Pants Pin
honey the codewitch29-Nov-21 5:59
mvahoney the codewitch29-Nov-21 5:59 
GeneralRe: Pants Pin
PIEBALDconsult29-Nov-21 6:06
professionalPIEBALDconsult29-Nov-21 6:06 
GeneralRe: Pants Pin
Daniel Pfeffer29-Nov-21 8:20
professionalDaniel Pfeffer29-Nov-21 8:20 
GeneralRe: Pants Pin
Rage29-Nov-21 20:20
professionalRage29-Nov-21 20:20 
GeneralRe: Pants Pin
dandy7230-Nov-21 5:36
Memberdandy7230-Nov-21 5:36 
GeneralRe: Pants Pin
OriginalGriff29-Nov-21 6:05
mveOriginalGriff29-Nov-21 6:05 
GeneralRe: Pants Pin
honey the codewitch29-Nov-21 6:15
mvahoney the codewitch29-Nov-21 6:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

What language are you using for AI development or learning?
Whether you're at work or home, hard core coding or just trying to figure out this AI thing, which languages have you used in your adventures?
  Results   473 votes