In the web application I'm working on, elements can go through several states (for example, a workflow), and after each workflow the rule can be run after each step that can stop the process or display additional messages.
How to define these rules? I thought about dlls as a rule (and connect them either using MEF or events), but one application can have 200-300 clients, each of which has several rules that become many DLLs.
Update:
These rules may be as follows. Say that you are sending an invoice, but you only want to allow it from your approver, if it exceeds a certain amount, then a rule like this will be returned to return true or false, and then continue accordingly.
Greetings.
source
share