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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users