One way to do it could be to have something like this in your DSL:

 Kid=Parson(age < 15)
 Adult=Person(age > 21)
OR=or
AND=and

And then, in your drls, you can write this:

rule "r1"
   when
      Adult
      OR
      Kid
   then
      ...
end

Best Regards,



XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2011/5/11 Saleem Lakhani <Saleem.Lakhani@citizensfla.com>

Hi,

 

How do I combine 2 different dsl statements in dslr.

 

Example in dsl I have;

 

1.       Kid=Parson(age < 15)

2.       Adult=Person(age > 21)

 

Can I write like this in dslr:

 

Kid or Adult

 

saleem

 


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users