Sometimes you don’t see the obvious. I should stop working on Sunday ;-)

 

Yeah, that helps. Thanks!!

 

Von: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] Im Auftrag von Tihomir Surdilovic
Gesendet: Montag, 18. Januar 2010 15:30
An: Rules Users List
Betreff: Re: [rules-users] "from" keyword in Excel tables

 

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
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users