2009/11/18 Lindy hagan <[email protected]>:
>
>
> 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

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to