Re: [rules-users] function problem

2008-12-08 Thread Charlie Holland
Thanks, I'll look at the eval article, wasn't sure how to avoid them but will endeavor to find a way. I found my way around the original problem, not even sure what it was now. I'm not sure the memberOf and taglist would generally work for us. The problem is that there are several patterns in the

Re: [rules-users] function problem

2008-12-01 Thread Edson Tirelli
If I understood the problem, one way would be (assuming $tags is a global list): when Person( ageInYears >= 18, $tagList : tagList ) exists( String( this memberof $tags ) from $tagList ) then ... end If $tags is a fact, just bind it before the "exists". []s Edson 2008/12

Re: [rules-users] function problem

2008-12-01 Thread Dan Seaver
Charlie, I'm not sure why your function doesn't compile as it looks fine to me. Do you have any other details about the message you're getting from the compiler? In any case, you may want to consider solving the problem a different way. In general, you should try to avoid "eval" statements whenev

Re: [rules-users] function problem

2008-12-01 Thread David Sinclair
Charlie, Can u explain more simply, without the function, what u are trying to do? Is it just to see if there exists a Person, whose tagList property contains a string that is the same as one of the engrTags from a TagCodes? On Sat, Nov 22, 2008 at 12:25 AM, Charlie Holland <[EMAIL PROTECTED]>wro

[rules-users] function problem

2008-11-21 Thread Charlie Holland
I'm fairly new to Drools so there may be an easier way to do this. I need to check to see if any one of a list of tags on an object are in another list of tags and am trying to do that with a function. the compiler tells me it can't compile my eval function: #list any import classes here. ** *imp