[rules-users] conditional insert of 'exist' or 'not' keywords in decision table s
Olenin, Vladimir (MOH)
Vladimir.Olenin at moh.gov.on.ca
Fri Feb 16 15:43:15 EST 2007
Hi,
I wonder if it's possible to pass some Column keywords as parameters from
template values, eg:
Condition
Condition
$1 Driver
$1 Policy
age >= $2, age <= $3
type
exists, 21, 25
, comprehensive
not, 64, 100
exists, comprehensive
I'd expect the above table would generate two rules like:
Rule 1
When
exists Driver (age >= 21, age <= 25)
Policy(type == "comprehensive")
Then
// do smth
End
Rule 2
When
not Driver (age >= 64, age <= 100)
exists Policy (type == "comprehensive")
then
// do smth
End
The above example is just a mock up derived from one of the examples in the
documentation to demonstrate the point (meaning, the rules themselves might
not make sense from business point of view or can be implemented differently
for this particular case).
So, any way to achieve this? Whether in current version (3.0.x) or the
upcoming release (3.2)
Thanks,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070216/5136f521/attachment.html
More information about the rules-users
mailing list