Hi folks,
Given a decision table a bit like this (hopefully the monospaced font lays it
out ok!):
Account Currency CanTrade
1 EUR Y
1 USD Y
1 IDR Y
1 Otherwise N
2 EUR Y
2 USD Y
2 Otherwise N
LHS
Hi Stephen,
You've made my afternoon ;)
The operation of otherwise is rather dumb. It does not have any
understanding of what groups of rows it is meant to limit it's search of
values to construct the not in part.
As you have discovered, in your case, the Account column has no
significance
:07:54 PM
Subject: Re: [rules-users] Web decision tables (Guvnor)
Hi Stephen,
You've made my afternoon ;)
The operation of otherwise is rather dumb. It does not have any understanding
of what groups of rows it is meant to limit it's search of values to construct
the not in part.
As you have
If any of the positive rules for a Trade (account==N,
currency==XYZ) were to modify or retract the fact a single
low-salience technical rule triggering on the modified or remaining
fact would be sufficient to implement an otherwise for everything.
Which account and which currency is available from
Thanks for the feedback chaps.
Wolfgang / Vincent - The real application is evaluating what products (FX
swaps, options, forwards, etc) a particular account is permitted to trade with
different banks. The example provided was rather simplified, just to
demonstrate the workings of a decision