| RuleSet | com.sample | ||||
| Import | com.sample.Student,com.sample.College | ||||
| RuleTable Allocation Rules | |||||
| CONDITION | CONDITION | CONDITION | CONDITION | ACTION | ACTION |
| $s:Student | $c:College | ||||
| marks | age | ranking | location | $s.setDepartment(“$param”); | $c.setStatus(“$param”); |
| Student Marks | Student Age | College Ranking | College Location | Department Allocated | Status Allocated |
|
60
|
20
|
A
|
Mumbai
|
Maths
|
NA
|
|
86
|
22
|
B
|
Kolkata
|
Arts
|
Approved
|
|
70
|
20
|
A
|
Delhi
|
Science
|
Approved
|
| From: | Wolfgang Laun <wolfgang.laun@gmail.com> |
| To: | Rules Users List <rules-users@lists.jboss.org> |
| Date: | 08/25/2011 05:19 PM |
| Subject: | Re: [rules-users] Error is Java.lang.RuntimeException |
| Sent by: | rules-users-bounces@lists.jboss.org |
| RuleSet | com.model | ||||
| Import | com.model.Student, com.model.College | ||||
| RuleTable | Allocation Rule | ||||
| CONDITION | CONDITION | CONDITION | CONDITION | ACTION | ACTION |
| $s:Student | $c:College | ||||
| age | marks | ranking | location | $s.setDepartment(“$param”); | $c.setStatus(“$param”); |
|
18
|
85
| A | Delhi | Science | AICTE |
|
18
|
90
| B | Kanpur | Science | AICTE |
|
20
|
90
| A | Mumbai | Maths | AICTE |
|
23
|
87
| C | Hyderabad | Physics | AICTE |