About the duplicated $s varaible, is because you have 2 DIFFERENT conditions saying $s:Student (same thing for $c)<div>The rules you have there are translated to (when age field has a value):</div><div><br></div><div>when</div>

<div>     $s:Student (age == 18)  //if age value was 18</div><div>     $s:Student (mark == 20&quot;)</div><div>     $c:College (ranking == &quot;85 A&quot;)</div><div>     $c:College (location == &quot;Delhi&quot;)</div>
<div>
then</div><div>     ....</div><div>end</div><div><br></div><div>If you want to &quot;join&quot; constraint about Student and constraint about Collegues to get something like:</div><div><div><br></div><div>when</div><div>
     $s:Student (age == 18, mark == 20&quot;)</div>
<div>     $c:College (ranking == &quot;85 A&quot;, location == &quot;Delhi&quot;)</div><div>then</div><div>     ....</div><div>end</div><div><br></div><div>you will need to merge the 2 cells containing $s:Student and the 2 cells containing $c:College. This way is how you tell drools that you want to define 1 condition with multiple constraints instead of multiple condition with one constraint each.</div>

<div><br></div><div>Best Regards,</div><div><br></div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Wed, Aug 24, 2011 at 2:12 PM, FrankVhh <span dir="ltr">&lt;<a href="mailto:frank.vanhoenshoven@agserv.eu">frank.vanhoenshoven@agserv.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi to you,<br>
<br>
The error message seems to indicate that you are having 2 (types of) errors<br>
in your decision table.<br>
<br>
Error type 1: You have duplicate names.<br>
As I am assuming that you are comparing 1 student with 1 college, you can<br>
delete one $s: Student() and one $c: College() cell. Then, you merge the<br>
cells above the columns. That way the engine will not have a duplicate $c,<br>
but work on the same student data.<br>
<br>
Error type 2: you are trying to set a String value to a certain attribute.<br>
Bear in mind that the $param parameter is replaced by exactly what is in the<br>
cell and only what is in the cell. Therefore, you need to include &quot; around<br>
you strings. F.e. $c.setValue(&quot;$param&quot;);<br>
<br>
There might be some other things missing as well, but this is what the error<br>
message is stating.<br>
<br>
Regards,<br>
Frank<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3280800.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3280800.html</a><br>


Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br></div>