<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">We are using drools decision tables and have a quite a few scenarios where there are three conditions: A, B, and C. </div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">The behavior we want is:</div><div><br></div><div>if A is true, then B and C must be true (if B and C are true, we want to output true, otherwise we want to output false)<div class="im">
<br><div><span style="font-family:arial,sans-serif;font-size:13px">if A is not true, then B and C don&#39;t matter, the output should be true.</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div>Currently the way we are doing it is the following:</div><div><br></div><div>0 (priority), A is true (CONDITION), B is true (CONDITION), C is true (CONDITION), set eligibility to TRUE (ACTION)</div>
<div>0 (priority), NOT A (CONDITION), set eligibility to TRUE (ACTION)</div><div>-1 (priority), A is true (CONDITION), set eligibility to FALSE (ACTION)</div><div><br style="font-family:arial,sans-serif;font-size:13px"><div style="font-family:arial,sans-serif;font-size:13px">
We are using decision tables and we are dealing with more complex conditions than this simple example. For example, there are scenarios like if A and B are true then C and D must be true, in which we&#39;d have to check if NOT (A and B) which can get messy.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any suggestions around best practices?<br></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div class="" style="font-family:arial,sans-serif;font-size:13px"></div></div></div></div>