Identifying Unconnected Subgraphs in Decision Models (single table with unrelated rules) - Gnorion/BizVR GitHub Wiki

Suppose you have these rules:

if A in [0..100] and D < 500 then X is 1
if A in [200..300] and B > 0 and D > 500 then X is 2
if C = 'red' then Y is 'A'
if C = 'green' then Y is 'B'
if C = 'blue' and E = T then E is F

You could represent this logic as a single decision table as follows:

image

Does this have any issues?

Validation will report this

I013 INFO: Model has disconnected components.
Not all of the attributes in the model are connected. 
There are 2 subgraphs. 
Subgraph 1 C->E and E->E and C->Y 
Subgraph 2 D->X and A->X and B->X . 
Circular logic in rule R5
Check your logic to make sure this is what you want.

image

This means that the logic might be better represented as two separate tables like this:

image

image

image

Missing Rules

In the single table (with unrelated rules) you will find there are 81 missing rules

However in the separate tables there are only 30 missing rules

Missing Condition Values

"A: in (100..200), < 0, > 300",
"B: <= 0",
"D: = 500",
"C: = other",
"E: = F"
⚠️ **GitHub.com Fallback** ⚠️