Individual business rules for each client ... (asp.net mvc)

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.

+3
source share
4 answers

, -, , Ruby Python. IronPython , # VB.NET. DLE ScriptEngine ScriptScope -, , , , .NET- (PONO). , (, Python). , , - .NET.

+1

, , , . , , , , . .

, .

, . , , -.

0

I found material related to this post interesting for multi-user systems:

http://ayende.com/Blog/archive/2008/08/13/Mutli-Tenancy--multi-tenant-apps-and-frameworks.aspx

0
source

Source: https://habr.com/ru/post/1720846/


All Articles