[rules-users] Decision table capabilities
David Sinclair
dsinclair at chariotsolutions.com
Wed Dec 10 11:34:17 EST 2008
You could do it a couple of ways. 3 Rules where the whens look like the
following
when A(Value == 25) then ...
when A(Value == 10) then ...
when A(Value != 10 && != 25) then...
Or with salience and control facts
when
A(value == 25)
then
print success;
insert(new Found());
when
A(value == 10)
then
print not bad
insert(new Found());
salience -10
when
not (Found())
then
print try again
On Wed, Dec 10, 2008 at 1:51 AM, Ravi Krishnamurthy <ravik at savvion.com>wrote:
> Hello:
> 1) Is it possible to write any if then else kind of rule instead of stating
> all the possibilities in a decision table.
>
> For example: if a == 25
> print (success)
> else if a == 10
> print (not bad)
> else
> print (try again)
>
> Thanks,
> Ravi
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081210/78ba8839/attachment.html
More information about the rules-users
mailing list