[rules-users] DSL/DRL Problem

ringsah at comcast.net ringsah at comcast.net
Tue May 27 10:20:25 EDT 2008


Hi All,
I am new to Drools - my company is evaluating it for use in a project. We are doing a proof of concept, and we are developing a DSL. One of our DSL expressions is
"client is an adult"
which is defined as
Client(age > 17)
The problem we have is that there are many different types of people in our system that we would like to test for adulthood. For example, we have the client's spouse (Client.spouse), and the clients children (Client.children), who we also want to test for adulthood. Do we need to make a different DSL expression for each case, or is there a way to "genericize" the DSL expression so it could be used for any person?
TIA,
-Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080527/505ece32/attachment.html 


More information about the rules-users mailing list