[rules-users] DSL/DRL Problem

Hehl, Thomas Thomas.Hehl at acs-inc.com
Tue May 27 11:19:21 EDT 2008


Sorry, where should we look in the manual for this?

 

  _____  

From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Tuesday, May 27, 2008 11:14 AM
To: Rules Users List
Subject: Re: [rules-users] DSL/DRL Problem

 


   Do you mean like:

There is a client
   - which is adult
   - whose wife is adult

    Mapped to:

Client( age > 17, spouse.age > 17 )

    Take a look at the manual and check for the "-" special character.

    []s
    Edson



2008/5/27 <ringsah at comcast.net <mailto:ringsah at comcast.net> >:

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


_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org> 
https://lists.jboss.org/mailman/listinfo/rules-users
<https://lists.jboss.org/mailman/listinfo/rules-users> 




-- 
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com <http://www.jboss.com>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080527/b0a82778/attachment.html 


More information about the rules-users mailing list