[rules-users] Decision table capabilities
Ravi Krishnamurthy
ravik at savvion.com
Wed Dec 10 14:36:03 EST 2008
Thanks David for your time and help.
Any suggestion how to do using Decision Table. Any sample .xls will be
very helpful.
Regards,
Ravi
David Sinclair wrote:
> 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
> <mailto: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 <mailto: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/e4518984/attachment.html
More information about the rules-users
mailing list