Reputation: 500
I implemented some rules like;
But I think that it is not convenient for rule engines to use some tables to add new groups and check that groups in action rule than adding some values.
As I saw here I need to use some lookup tables. But my idea is that I don't want to use databases to implement those conditions.
Is there any way to use decision tables as lookup tables, or should I use databases for that implementation? Or is there any way to accomplish that problem?
Thanks for your help.
Upvotes: 1
Views: 2142
Reputation: 119
Because using decision tables as lookup tables (or reference data) is so often an abused technique, it is something of an anti-pattern. However, there are cases when it is called for:
The technique can be employed with those benefits for data that numbers into the few hundred rows and which does not have a significantly different lifecycle from the other parts of the decision.
A well written paper describing all the nuances of this and other approaches for managing reference data is here.
Upvotes: 1
Reputation: 1358
I would say these belong in a database, these are not business rules. Here is an article I wrote on this subject a while back.
Of course, it's not always clear cut in some cases, but you are describing system/reference data, not business rules.
Upvotes: 1