Just include it in your pattern in the CONDITION column. This example
may help:
|
RuleTable Decide Employee Salary |
|
|
|
|
CONDITION |
CONDITION |
CONDITION |
ACTION |
|
company : Company |
|
|
|
|
Name == "$param" |
section : Section(type == "$param") from company.sectionList “ |
employee : Employee(grade == $param) from section.employeeList |
$employee.setSalary($param) |
|
Company Name |
Type |
Grade |
Salary Amount |
| Decide Salary |
myCompany |
factory |
1 |
250 |
Bernd Rücker wrote:
Hey guys.
I currently set up an excel table to capture some rules. I face one
problem and I am not sure if and how that is possible.
I want to include this in the rule:
$o : Order (...)
Customer (status=”x”) from customerService.getCustomer(
$o.getCustomerId() )
The status=”x” shall be filled by a column in the table. But how can I
include the “from” stuff in excel (best without using the pattern stuff,
since it is marked experimental)? Any idea?
Thanks a lot and cheers
Bernd
P.S: IS there a collection of different problem patterns and their
translation to decision tables available somewhere? That would be really
helpful :-)
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users
|
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users