[rules-users] nested accessors with Sets

Fernando Meyer fmcamargo at gmail.com
Sun Aug 5 11:44:17 EDT 2007


Mark

	Thanks for you help.
Regards

Fernando Meyer http://fmeyer.org
fmcamargo at gmail.com
PGP: 0xD804DDFB



On Aug 4, 2007, at 4:00 PM, mark.mcnally at comcast.net wrote:

> Edson,
>
> I opened ticket # 1058 for this - http://jira.jboss.com/jira/browse/ 
> JBRULES-1058
>
> Thank you,
> Mark
>
>  -------------- Original message ----------------------
> From: "Edson Tirelli" <tirelli at post.com>
>>     Mark,
>>
>>     Hmmm, something is going on with mvel integration... bellow  
>> must work.
>>     There are work arounds (like using plain java code, or using  
>> multiple
>> patterns), but I think we need to fix that. Can you please include  
>> this info
>> in the ticket.
>>
>>     Thanks,
>>
>>      []s
>>      Edson
>>
>> 2007/8/2, mark.mcnally at comcast.net <mark.mcnally at comcast.net>:
>>>
>>> Edson,
>>>
>>> Thank you for the response. I tried writing the in-line eval as  
>>> suggested
>>> but get this Exception:
>>>
>>> org.drools.rule.InvalidRulePackage: Unable to determine the used
>>> declarations : [Rule name=State, agendaGroup=MAIN, salience=0,
>>> no-loop=false]
>>>        at org.drools.rule.Package.checkValidity(Package.java:408)
>>>        at org.drools.common.AbstractRuleBase.addPackage(
>>> AbstractRuleBase.java:288)
>>>        at [...]
>>>
>>> This is my rule:
>>>
>>> rule State
>>>    dialect "mvel"
>>>        when
>>>            $ca:CandidateAssociation( eval ( !
>>> nurseDetails.stateLicensures.contains( patientDetails.state ) ) )
>>>        then
>>>            retract( $ca );
>>> end
>>>
>>> I haven't yet but, plan to open an issue in JIRA as requested
>>>
>>> Thanks for your help.
>>> Mark
>>>
>>>
>
>
>
> From: "Edson Tirelli" <tirelli at post.com>
> Date: August 2, 2007 6:48:58 PM GMT-03:00
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Subject: Re: [rules-users] nested accessors with Sets
>
>
>
>     Mark,
>
>     Hmmm, something is going on with mvel integration... bellow  
> must work.
>     There are work arounds (like using plain java code, or using  
> multiple patterns), but I think we need to fix that. Can you please  
> include this info in the ticket.
>
>     Thanks,
>
>      []s
>      Edson
>
> 2007/8/2, mark.mcnally at comcast.net < mark.mcnally at comcast.net>:
> Edson,
>
> Thank you for the response. I tried writing the in-line eval as  
> suggested but get this Exception:
>
> org.drools.rule.InvalidRulePackage: Unable to determine the used  
> declarations : [Rule name=State, agendaGroup=MAIN, salience=0, no- 
> loop=false]
>        at org.drools.rule.Package.checkValidity (Package.java:408)
>        at org.drools.common.AbstractRuleBase.addPackage 
> (AbstractRuleBase.java:288)
>        at [...]
>
> This is my rule:
>
> rule State
>    dialect "mvel"
>        when
>            $ca:CandidateAssociation( eval ( !  
> nurseDetails.stateLicensures.contains( patientDetails.state ) ) )
>        then
>            retract( $ca );
> end
>
> I haven't yet but, plan to open an issue in JIRA as requested
>
> Thanks for your help.
> Mark
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

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


More information about the rules-users mailing list