[rules-users] Re: variable 'or' constraints with a DSL

Reid Kaufmann Reid.Kaufmann at Sun.COM
Thu Jul 17 10:48:08 EDT 2008


> No, dash syntax is not the answer.  Clever construction of the DSL mapping will get you what you need.
>
> Allow me to take your example and modify it.
>
> [condition][File]file_name = fileName
> [condition][File]dir_name = dirName
> [condition][File]group_name = gName
> [condition][File]user_name = uName
>  
> [condition][]file where {constraints}=$f: File(where {constraints})
> [condition][]where {attr} matches {value}={attr} matches {value} 
> [condition][]and {attr} matches {value}=,{attr} matches {value}
> [condition][]or {attr} matches {value}= || {attr} matches {value}
>   
Matt, I'm catching on now -- Drools can make multiple substitutions on a 
line.  I'll see what I can do with this.  Thanks for your examples and help!

reid



More information about the rules-users mailing list