<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks David for your time and help.<br>
<br>
Any suggestion how to do using Decision Table. Any sample .xls will be
very helpful.<br>
<br>
Regards,<br>
Ravi<br>
<br>
David Sinclair wrote:
<blockquote
 cite="mid:757cc9480812100834j3bb13b5dn8e4042507959ef5d@mail.gmail.com"
 type="cite">You could do it a couple of ways. 3 Rules where the whens
look like the following<br>
  <br>
when A(Value == 25) then ...<br>
when A(Value == 10) then ...<br>
when A(Value != 10 &amp;&amp; != 25) then...<br>
  <br>
Or with salience and control facts<br>
  <br>
when<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A(value == 25)<br>
then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print success;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; insert(new Found());<br>
  <br>
when<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A(value == 10)<br>
then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print not bad<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; insert(new Found());<br>
  <br>
salience -10<br>
when <br>
&nbsp;&nbsp;&nbsp;&nbsp; not (Found())<br>
then <br>
&nbsp;&nbsp;&nbsp;&nbsp; print try again<br>
  <br>
  <div class="gmail_quote">On Wed, Dec 10, 2008 at 1:51 AM, Ravi
Krishnamurthy <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:ravik@savvion.com">ravik@savvion.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000"><font
 face="Courier New, Courier, monospace">Hello:<br>
1) Is it possible to write any if then else kind of rule instead of
stating all the possibilities in a decision table. <br>
    <br>
For example: if a == 25<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; print (success)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; else if a == 10<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; print (not bad)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; else<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; print (try again)<br>
    <br>
Thanks,<br>
Ravi<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <br>
    <br>
    </font>
    </div>
    <br>
_______________________________________________<br>
rules-users mailing list<br>
    <a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users"
 target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
    <br>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>