<font size=2 face="sans-serif">Hi, </font>
<br>
<br><font size=2 face="sans-serif">I tried that also, kept RuleTable and
the Rule name initial in one cell, but I am encountering the same errors.
</font>
<br>
<br><font size=2 face="sans-serif">I re-created the Application, but I
am not able to run it properly. </font>
<br>
<br><font size=2 face="sans-serif">When I check the generated drl string,
it seems fine to me. It would be very helpful, if I get guidance on this.
I am not able to find out what is going wrong in this case...</font>
<br>
<br>
<br><font size=2 face="sans-serif">Student.java and College.java are normal
POJOs with variables and getter and setter methods.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><b><u>My Main class:</u></b></font>
<br>
<br><font size=2 face="sans-serif">public class AllocationClass {</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> public
static void main(String[] args) {</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
Student s1 = new Student();</font>
<br><font size=2 face="sans-serif">
College c1 = new College();</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
s1.setMarks(70);</font>
<br><font size=2 face="sans-serif">
s1.setAge(20);</font>
<br><font size=2 face="sans-serif">
c1.setRanking("A");</font>
<br><font size=2 face="sans-serif">
c1.setLocation("Delhi");</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
try{</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
KnowledgeBase kb = fromFunction();</font>
<br><font size=2 face="sans-serif">
StatefulKnowledgeSession ks = kb.newStatefulKnowledgeSession();</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
ks.insert(s1);</font>
<br><font size=2 face="sans-serif">
ks.insert(c1);</font>
<br><font size=2 face="sans-serif">
ks.fireAllRules();</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
System.out.println("Department is :
"+s1.getDepartment());</font>
<br><font size=2 face="sans-serif">
System.out.println("Status is : "+c1.getStatus());</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
ks.dispose();</font>
<br><font size=2 face="sans-serif">
}</font>
<br><font size=2 face="sans-serif">
catch (Exception ex)</font>
<br><font size=2 face="sans-serif">
{</font>
<br><font size=2 face="sans-serif">
System.out.println("
In main method......."+ ex);</font>
<br><font size=2 face="sans-serif">
ex.printStackTrace();</font>
<br><font size=2 face="sans-serif">
}</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> private
static KnowledgeBase fromFunction()</font>
<br><font size=2 face="sans-serif"> {</font>
<br><font size=2 face="sans-serif">
DecisionTableConfiguration dc = KnowledgeBuilderFactory.newDecisionTableConfiguration();</font>
<br><font size=2 face="sans-serif">
dc.setInputType(DecisionTableInputType.XLS);</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
KnowledgeBuilder kbd = KnowledgeBuilderFactory.newKnowledgeBuilder();</font>
<br><font size=2 face="sans-serif">
kbd.add(ResourceFactory.newClassPathResource("com/sample/allocate.xls"),
ResourceType.DTABLE,dc);</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
String drlString = null;</font>
<br><font size=2 face="sans-serif">
try {</font>
<br><font size=2 face="sans-serif">
drlString
= DecisionTableFactory.loadFromInputStream(ResourceFactory.newClassPathResource("com/sample/allocate.xls").getInputStream(),
dc);</font>
<br><font size=2 face="sans-serif">
} catch (IOException e) {</font>
<br><font size=2 face="sans-serif">
e.printStackTrace();</font>
<br><font size=2 face="sans-serif">
}</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
System.out.println("..........."+drlString);</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif"> if(kbd.hasErrors())</font>
<br><font size=2 face="sans-serif">
{</font>
<br><font size=2 face="sans-serif">
RuntimeException
r1 = new RuntimeException(kbd.getErrors().toString());</font>
<br><font size=2 face="sans-serif">
r1.printStackTrace();</font>
<br><font size=2 face="sans-serif">
}</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
KnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase();</font>
<br><font size=2 face="sans-serif">
kb.addKnowledgePackages(kbd.getKnowledgePackages());</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">
return kb;</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<br><font size=2 face="sans-serif"><b><u>The xls that I have created :
</u></b></font>
<br>
<br>
<table>
<tr>
<td><font size=1 face="Arial">RuleSet</font>
<td><font size=1 face="Arial">com.sample</font>
<td>
<td>
<td>
<td>
<tr>
<td><font size=1 face="Arial">Import</font>
<td><font size=1 face="Arial">com.sample.Student,com.sample.College</font>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td><font size=1 face="Arial">RuleTable Allocation Rules</font>
<td>
<td>
<td>
<td>
<td>
<tr>
<td><font size=1 face="Arial">CONDITION</font>
<td><font size=1 face="Arial">CONDITION</font>
<td><font size=1 face="Arial">CONDITION</font>
<td><font size=1 face="Arial">CONDITION</font>
<td><font size=1 face="Arial">ACTION</font>
<td><font size=1 face="Arial">ACTION</font>
<tr>
<td colspan=2><font size=1 face="Arial">$s:Student</font>
<td colspan=2><font size=1 face="Arial">$c:College</font>
<td>
<td>
<tr>
<td><font size=1 face="Arial">marks</font>
<td><font size=1 face="Arial">age</font>
<td><font size=1 face="Arial">ranking</font>
<td><font size=1 face="Arial">location</font>
<td><font size=1 face="Arial">$s.setDepartment(“$param”);</font>
<td><font size=1 face="Arial">$c.setStatus(“$param”);</font>
<tr>
<td><font size=1 face="Arial">Student Marks</font>
<td><font size=1 face="Arial">Student Age</font>
<td><font size=1 face="Arial">College Ranking</font>
<td><font size=1 face="Arial">College Location</font>
<td><font size=1 face="Arial">Department Allocated</font>
<td><font size=1 face="Arial">Status Allocated</font>
<tr>
<td>
<div align=center><font size=1 face="Arial">60</font></div>
<td>
<div align=center><font size=1 face="Arial">20</font></div>
<td>
<div align=center><font size=1 face="Arial">A</font></div>
<td>
<div align=center><font size=1 face="Arial">Mumbai</font></div>
<td>
<div align=center><font size=1 face="Arial">Maths</font></div>
<td>
<div align=center><font size=1 face="Arial">NA</font></div>
<tr>
<td>
<div align=center><font size=1 face="Arial">86</font></div>
<td>
<div align=center><font size=1 face="Arial">22</font></div>
<td>
<div align=center><font size=1 face="Arial">B</font></div>
<td>
<div align=center><font size=1 face="Arial">Kolkata</font></div>
<td>
<div align=center><font size=1 face="Arial">Arts</font></div>
<td>
<div align=center><font size=1 face="Arial">Approved</font></div>
<tr>
<td>
<div align=center><font size=1 face="Arial">70</font></div>
<td>
<div align=center><font size=1 face="Arial">20</font></div>
<td>
<div align=center><font size=1 face="Arial">A</font></div>
<td>
<div align=center><font size=1 face="Arial">Delhi</font></div>
<td>
<div align=center><font size=1 face="Arial">Science</font></div>
<td>
<div align=center><font size=1 face="Arial">Approved</font></div>
<tr>
<td>
<td>
<td>
<td>
<td>
<td></table>
<br><br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><b><u>The drlString that gets generated
is : </u></b></font>
<br>
<br><font size=2 face="sans-serif">...........package com.sample;</font>
<br><font size=2 face="sans-serif">#generated from Decision Table</font>
<br><font size=2 face="sans-serif">import com.sample.Student;</font>
<br><font size=2 face="sans-serif">import com.sample.College;</font>
<br><font size=2 face="sans-serif">#From row number: 10</font>
<br><font size=2 face="sans-serif">rule "Allocation Rules_10"</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> when</font>
<br><font size=2 face="sans-serif">
$s:Student(marks == "60", age ==
"20")</font>
<br><font size=2 face="sans-serif">
$c:College(ranking == "A", location
== "Mumbai")</font>
<br><font size=2 face="sans-serif"> then</font>
<br><font size=2 face="sans-serif">
$s.setDepartment(“Maths”);</font>
<br><font size=2 face="sans-serif">
$c.setStatus(“NA”);</font>
<br><font size=2 face="sans-serif">end</font>
<br>
<br><font size=2 face="sans-serif">#From row number: 11</font>
<br><font size=2 face="sans-serif">rule "Allocation Rules_11"</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> when</font>
<br><font size=2 face="sans-serif">
$s:Student(marks == "86", age ==
"22")</font>
<br><font size=2 face="sans-serif">
$c:College(ranking == "B", location
== "Kolkata")</font>
<br><font size=2 face="sans-serif"> then</font>
<br><font size=2 face="sans-serif">
$s.setDepartment(“Arts”);</font>
<br><font size=2 face="sans-serif">
$c.setStatus(“Approved”);</font>
<br><font size=2 face="sans-serif">end</font>
<br>
<br><font size=2 face="sans-serif">#From row number: 12</font>
<br><font size=2 face="sans-serif">rule "Allocation Rules_12"</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> when</font>
<br><font size=2 face="sans-serif">
$s:Student(marks == "70", age ==
"20")</font>
<br><font size=2 face="sans-serif">
$c:College(ranking == "A", location
== "Delhi")</font>
<br><font size=2 face="sans-serif"> then</font>
<br><font size=2 face="sans-serif">
$s.setDepartment(“Science”);</font>
<br><font size=2 face="sans-serif">
$c.setStatus(“Approved”);</font>
<br><font size=2 face="sans-serif">end</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><b><u>The output Error that I get is
: </u></b></font>
<br>
<br><font size=2 face="sans-serif">java.lang.RuntimeException: </font>
<br><font size=2 face="sans-serif">[12,19]: [ERR 101] Line 12:19 no viable
alternative at input ''[12,25]: [ERR 101] Line 12:25 no viable alternative
at input ''[13,15]: [ERR 101] Line 13:15 no viable alternative at input
''[13,18]: [ERR 101] Line 13:18 no viable alternative at input ''[23,19]:
[ERR 101] Line 23:19 no viable alternative at input ''[23,24]: [ERR 101]
Line 23:24 no viable alternative at input ''[24,15]: [ERR 101] Line 24:15
no viable alternative at input ''[24,24]: [ERR 101] Line 24:24 no viable
alternative at input ''[34,19]: [ERR 101] Line 34:19 no viable alternative
at input ''[34,27]: [ERR 101] Line 34:27 no viable alternative at input
''[35,15]: [ERR 101] Line 35:15 no viable alternative at input ''[35,24]:
[ERR 101] Line 35:24 no viable alternative at input ''</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">at com.sample.AllocationClass.fromFunction(AllocationClass.java:75)</font>
<br><font size=2 face="sans-serif">at com.sample.AllocationClass.main(AllocationClass.java:31)</font>
<br>
<br><font size=2 face="sans-serif">Department is : null</font>
<br><font size=2 face="sans-serif">Status is : null</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Regards,</font>
<br><font size=2 face="sans-serif">Manohar Kokkula<br>
Mailto: manohar.kokkula@tcs.com<br>
</font>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Wolfgang Laun <wolfgang.laun@gmail.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Rules Users List <rules-users@lists.jboss.org></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">08/25/2011 05:19 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [rules-users] Error is Java.lang.RuntimeException</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">rules-users-bounces@lists.jboss.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>The cell with the keyword RuleTable must also contain
the string for the initial part of the rule name. It seems that you have
this in the adjoining cell. - See the docs, section "Rule Tables".<br>
-W<br>
</font>
<br><font size=3>2011/8/25 Manohar Kokkula <</font><a href=mailto:manohar.kokkula@tcs.com><font size=3 color=blue><u>manohar.kokkula@tcs.com</u></font></a><font size=3>></font>
<br><font size=2 face="sans-serif">Hi Frank and Wolfgang,</font><font size=3>
</font><font size=2 face="sans-serif"><br>
</font><font size=3> </font><font size=2 face="sans-serif"><br>
Thank you for your help,</font><font size=3> </font><font size=2 face="sans-serif"><br>
I did everything as you both said,still i am getting the same error,</font><font size=3>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
java.lang.RuntimeException: [12,19]: [ERR 101] Line 12:19 no viable alternative
at input ''[12,27]: [ERR 101] Line 12:27 no viable alternative at input
''[13,15]: [ERR 101] Line 13:15 no viable alternative at input ''[13,21]:
[ERR 101] Line 13:21 no viable alternative at input ''[23,19]: [ERR 101]
Line 23:19 no viable alternative at input ''[23,27]: [ERR 101] Line 23:27
no viable alternative at input ''[24,15]: [ERR 101] Line 24:15 no viable
alternative at input ''[24,21]: [ERR 101] Line 24:21 no viable alternative
at input ''[34,19]: [ERR 101] Line 34:19 no viable alternative at input
''[34,25]: [ERR 101] Line 34:25 no viable alternative at input ''[35,15]:
[ERR 101] Line 35:15 no viable alternative at input ''[35,21]: [ERR 101]
Line 35:21 no viable alternative at input ''[45,19]: [ERR 101] Line 45:19
no viable alternative at input ''[45,27]: [ERR 101] Line 45:27 no viable
alternative at input ''[46,15]: [ERR 101] Line 46:15 no viable alternative
at input ''[46,21]: [ERR 101] Line 46:21 no viable alternative at input
''</font><font size=3> </font><font size=2 face="sans-serif"><br>
Error in kbuildefr ......</font><font size=3> </font><font size=2 face="sans-serif"><br>
Error in main ...</font><font size=3> </font><font size=2 face="sans-serif"><br>
Error is java.lang.RuntimeException: [12,19]: [ERR 101] Line 12:19 no viable
alternative at input ''[12,27]: [ERR 101] Line 12:27 no viable alternative
at input ''[13,15]: [ERR 101] Line 13:15 no viable alternative at input
''[13,21]: [ERR 101] Line 13:21 no viable alternative at input ''[23,19]:
[ERR 101] Line 23:19 no viable alternative at input ''[23,27]: [ERR 101]
Line 23:27 no viable alternative at input ''[24,15]: [ERR 101] Line 24:15
no viable alternative at input ''[24,21]: [ERR 101] Line 24:21 no viable
alternative at input ''[34,19]: [ERR 101] Line 34:19 no viable alternative
at input ''[34,25]: [ERR 101] Line 34:25 no viable alternative at input
''[35,15]: [ERR 101] Line 35:15 no viable alternative at input ''[35,21]:
[ERR 101] Line 35:21 no viable alternative at input ''[45,19]: [ERR 101]
Line 45:19 no viable alternative at input ''[45,27]: [ERR 101] Line 45:27
no viable alternative at input ''[46,15]: [ERR 101] Line 46:15 no viable
alternative at input ''[46,21]: [ERR 101] Line 46:21 no viable alternative
at input ''</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
at com.model.Student_College.readBase(Student_College.java:90)</font><font size=3>
</font><font size=2 face="sans-serif"><br>
at com.model.Student_College.main(Student_College.java:31)</font><font size=3>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
Now i am sending my main class and .xls file.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
public class Student_College {</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
public static void main(String args[]) throws
IOException</font><font size=3> </font><font size=2 face="sans-serif"><br>
{</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Student s=new Student();</font><font size=3>
</font><font size=2 face="sans-serif"><br>
College c=new College();</font><font size=3>
</font><font size=2 face="sans-serif"><br>
s.setAge(20);</font><font size=3>
</font><font size=2 face="sans-serif"><br>
s.setMarks(35);</font><font size=3>
</font><font size=2 face="sans-serif"><br>
c.setRanking("B");</font><font size=3>
</font><font size=2 face="sans-serif"><br>
c.setLocation("elhi");</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
try</font><font size=3>
</font><font size=2 face="sans-serif"><br>
{</font><font size=3>
</font><font size=2 face="sans-serif"><br>
KnowledgeBase kbase = readBase();</font><font size=3> </font><font size=2 face="sans-serif"><br>
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
ksession.insert(s);</font><font size=3> </font><font size=2 face="sans-serif"><br>
ksession.insert(c);</font><font size=3> </font><font size=2 face="sans-serif"><br>
ksession.fireAllRules();</font><font size=3> </font><font size=2 face="sans-serif"><br>
System.out.println("Department is "+s.getDepartment());</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
System.out.println("Status is " + c.getStatus());</font><font size=3>
</font><font size=2 face="sans-serif"><br>
</font><font size=3> </font><font size=2 face="sans-serif"><br>
ksession.dispose();</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
}</font><font size=3>
</font><font size=2 face="sans-serif"><br>
catch(RuntimeException
re)</font><font size=3> </font><font size=2 face="sans-serif"><br>
{</font><font size=3>
</font><font size=2 face="sans-serif"><br>
System.out.println("Error in main ...");</font><font size=3>
</font><font size=2 face="sans-serif"><br>
re.printStackTrace();</font><font size=3> </font><font size=2 face="sans-serif"><br>
System.out.println("Error is "+re);</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
}</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
}</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
private static KnowledgeBase readBase() throws
IOException</font><font size=3> </font><font size=2 face="sans-serif"><br>
{</font><font size=3> </font><font size=2 face="sans-serif"><br>
DecisionTableConfiguration
dconf = KnowledgeBuilderFactory.newDecisionTableConfiguration();</font><font size=3>
</font><font size=2 face="sans-serif"><br>
dconf.setInputType(DecisionTableInputType.XLS);</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
KnowledgeBuilder
kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();</font><font size=3>
</font><font size=2 face="sans-serif"><br>
kbuilder.add(ResourceFactory.newClassPathResource("manohar.xls",
Student_College.class), ResourceType.DTABLE, dconf);</font><font size=3>
</font><font size=2 face="sans-serif"><br>
</font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
if(kbuilder.hasErrors())</font><font size=3>
</font><font size=2 face="sans-serif"><br>
{</font><font size=3>
</font><font size=2 face="sans-serif"><br>
System.out.println("Error in kbuildefr ......");</font><font size=3>
</font><font size=2 face="sans-serif"><br>
throw new RuntimeException(kbuilder.getErrors().toString());</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
}</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
KnowledgeBase kbase
= KnowledgeBaseFactory.newKnowledgeBase();</font><font size=3> </font><font size=2 face="sans-serif"><br>
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());</font><font size=3>
</font><font size=2 face="sans-serif"><br>
</font><font size=3>
</font><font size=2 face="sans-serif"><br>
return kbase;</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
<br>
}</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
}</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
In above main class i used the following code to interpret my manohar.xls
file...</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
String drlString = null;</font><font size=3> </font><font size=2 face="sans-serif"><br>
try {</font><font size=3>
</font><font size=2 face="sans-serif"><br>
drlString = DecisionTableFactory.loadFromInputStream(ResourceFactory.newClassPathResource("manohar.xls",
Student_College.class).getInputStream(), dconf);</font><font size=3> </font><font size=2 face="sans-serif"><br>
} catch (IOException
e) {</font><font size=3> </font><font size=2 face="sans-serif"><br>
// TODO Auto-generated catch block</font><font size=3> </font><font size=2 face="sans-serif"><br>
System.out.println("Error in drl String .....");</font><font size=3>
</font><font size=2 face="sans-serif"><br>
e.printStackTrace();</font><font size=3> </font><font size=2 face="sans-serif"><br>
}</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
System.out.println("..........."+drlString);</font><font size=3>
<br>
<br>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
manohar.xls:</font><font size=3> <br>
</font>
<table>
<tr>
<td><font size=1 face="Arial">RuleSet</font><font size=3> </font>
<td><font size=1 face="Arial">com.model</font><font size=3> </font>
<td>
<td>
<td>
<td>
<tr>
<td><font size=1 face="Arial">Import</font><font size=3> </font>
<td><font size=1 face="Arial">com.model.Student, com.model.College</font><font size=3>
</font>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td><font size=1 face="Arial">RuleTable </font>
<td><font size=1 face="Arial">Allocation Rule</font><font size=3> </font>
<td>
<td>
<td>
<td>
<tr>
<td><font size=1 face="Arial">CONDITION</font><font size=3> </font>
<td><font size=1 face="Arial">CONDITION</font><font size=3> </font>
<td><font size=1 face="Arial">CONDITION</font><font size=3> </font>
<td><font size=1 face="Arial">CONDITION</font><font size=3> </font>
<td><font size=1 face="Arial">ACTION</font><font size=3> </font>
<td><font size=1 face="Arial">ACTION</font><font size=3> </font>
<tr>
<td colspan=2><font size=1 face="Arial">$s:Student </font>
<td colspan=2><font size=1 face="Arial">$c:College </font>
<td>
<td>
<tr>
<td><font size=1 face="Arial">age</font><font size=3> </font>
<td><font size=1 face="Arial">marks</font><font size=3> </font>
<td><font size=1 face="Arial">ranking</font><font size=3> </font>
<td><font size=1 face="Arial">location</font><font size=3> </font>
<td><font size=1 face="Arial">$s.setDepartment(“$param”);</font><font size=3>
</font>
<td><font size=1 face="Arial">$c.setStatus(“$param”);</font><font size=3>
</font>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<div align=right><font size=1 face="Arial">18</font></div>
<td>
<div align=right><font size=1 face="Arial">85</font></div>
<td><font size=1 face="Arial">A</font><font size=3> </font>
<td><font size=1 face="Arial">Delhi</font><font size=3> </font>
<td><font size=1 face="Arial">Science</font><font size=3> </font>
<td><font size=1 face="Arial">AICTE</font><font size=3> </font>
<tr>
<td>
<div align=right><font size=1 face="Arial">18</font></div>
<td>
<div align=right><font size=1 face="Arial">90</font></div>
<td><font size=1 face="Arial">B</font><font size=3> </font>
<td><font size=1 face="Arial">Kanpur</font><font size=3> </font>
<td><font size=1 face="Arial">Science</font><font size=3> </font>
<td><font size=1 face="Arial">AICTE</font><font size=3> </font>
<tr>
<td>
<div align=right><font size=1 face="Arial">20</font></div>
<td>
<div align=right><font size=1 face="Arial">90</font></div>
<td><font size=1 face="Arial">A</font><font size=3> </font>
<td><font size=1 face="Arial">Mumbai</font><font size=3> </font>
<td><font size=1 face="Arial">Maths</font><font size=3> </font>
<td><font size=1 face="Arial">AICTE</font><font size=3> </font>
<tr>
<td>
<div align=right><font size=1 face="Arial">23</font></div>
<td>
<div align=right><font size=1 face="Arial">87</font></div>
<td><font size=1 face="Arial">C</font><font size=3> </font>
<td><font size=1 face="Arial">Hyderabad</font><font size=3> </font>
<td><font size=1 face="Arial">Physics</font><font size=3> </font>
<td><font size=1 face="Arial">AICTE</font></table>
<br><font size=3><br>
</font>
<table>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td colspan=2>
<td colspan=2>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td>
<tr>
<td>
<td>
<td>
<td>
<td>
<td></table>
<br><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Thanks and Regards<br>
Manohar Kokkula<br>
Mailto: </font><a href=mailto:manohar.kokkula@tcs.com target=_blank><font size=2 color=blue face="sans-serif"><u>manohar.kokkula@tcs.com</u></font></a>
<br><tt><font size=3>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
<br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
<br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you<br>
<br>
</font></tt>
<br><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org"><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3><br>
</font>
<br><br>
<tt><font size=2>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/rules-users"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/rules-users</font></tt></a><tt><font size=2><br>
</font></tt><br>
<br>
<br>