<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi folks,<div><br></div><div>Given a decision table a bit like this (hopefully the monospaced font lays it out ok!):</div><div><br></div><div><font class="Apple-style-span" face="'Andale Mono'">Account Currency CanTrade</font></div><div><font class="Apple-style-span" face="'Andale Mono'">&nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; EUR &nbsp; &nbsp; &nbsp; Y</font></div><div><font class="Apple-style-span" face="'Andale Mono'">&nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; USD &nbsp; &nbsp; &nbsp; Y</font></div><div><span class="Apple-style-span" style="font-family: 'Andale Mono'; ">&nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; IDR &nbsp; &nbsp; &nbsp; Y</span></div><div><font class="Apple-style-span" face="'Andale Mono'">&nbsp; &nbsp;1 &nbsp; &nbsp; Otherwise &nbsp; N</font></div><div><font class="Apple-style-span" face="'Andale Mono'">&nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp; EUR &nbsp; &nbsp; &nbsp; Y</font></div><div><font class="Apple-style-span" face="'Andale Mono'">&nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp; USD &nbsp; &nbsp; &nbsp; Y</font></div><div><font class="Apple-style-span" face="'Andale Mono'">&nbsp; &nbsp;2 &nbsp; &nbsp; Otherwise &nbsp; N</font></div><div><font class="Apple-style-span" face="'Andale Mono'"><br></font></div><div>LHS conditions are generated a bit like this:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>account == 1, currency == 'EUR'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>account == 1, currency == 'USD'</div><div>&nbsp; &nbsp; &nbsp; &nbsp; account == 1, currency == 'IDR'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>account == 1, currency not in ('EUR', 'USD', 'IDR')</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>account == 2, currency == 'EUR'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>account == 2, currency == 'USD'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>account == 2, currency not in ('EUR', 'USD', 'IDR')</div><div><br></div><div>… which has the effect that for account 2, currency IDR, the rule does not fire. For the business analysts building the rules, this does't make a lot of sense, as they're expecting it to mean:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>account == 2, currency not in ('EUR', 'USD')</div><div><br></div><div>Unfortunately this means that if a currency is permitted for one account, then a row must be added for every other account, indicating that the currency is not permitted.</div><div><br></div><div>I'm trying to achieve a sensible default (fire the rule to reject the trade) unless the currency is explicitly permitted.</div><div><br></div><div>Is there a decent mechanism for achieving this in a decision table?</div><div><br></div><div>One alternative I can think of is to create a technical rule which logically inserts a rejection which exists as long as this rule hash't fired. But I would really prefer to avoid doing anything like that, as I reckon it would be something of a maintenance nightmare.</div><div><br></div><div>Any thoughts?</div><div><br></div><div>Cheers,</div><div><br></div><div>Steve</div><div><br></div></body></html>