[rules-users] Need Syntax help for a string match
Wolfgang Laun
wolfgang.laun at gmail.com
Wed Nov 18 11:18:00 EST 2009
2009/11/18 Lindy hagan <lindyhagan at gmail.com>:
>
>
> Adding to my initial question , based on the condition satisfied how can I
> set a variable to "Y"in a different object (Other than
> customer)?customerDetail is not static.
> rule "Age Factor"
> when
> m : Customer( age matches "18,21,33,28,40,41")
> then
> System.out.println("Customer falls in age group ");
> // doAgeTasks();
> customerDetail.setFallsInAgeGroup("Y"); -- Need to do something like this.How can I do this?
> end
There must be some link between a customer's Customer and CustomerDetail facts.
when
$m : Customer( $id : id, age matches "18,21,33,28,40,41")
$d : CustomerDetail( id == $id )
then
$d.setFallsInAgeGroup("Y");
-W
More information about the rules-users
mailing list