Edson,I opened ticket # 1058 for this - http://jira.jboss.com/jira/browse/JBRULES-1058Thank you,Mark-------------- Original message ----------------------From: "Edson Tirelli" <tirelli@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 multiplepatterns), but I think we need to fix that. Can you please include this infoin the ticket.Thanks,[]sEdson2007/8/2, mark.mcnally@comcast.net <mark.mcnally@comcast.net>:Edson,Thank you for the response. I tried writing the in-line eval as suggestedbut get this Exception:org.drools.rule.InvalidRulePackage: Unable to determine the useddeclarations : [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 Statedialect "mvel"when$ca:CandidateAssociation( eval ( !nurseDetails.stateLicensures.contains( patientDetails.state ) ) )thenretract( $ca );endI haven't yet but, plan to open an issue in JIRA as requestedThanks for your help.MarkFrom: "Edson Tirelli" <tirelli@post.com>Date: August 2, 2007 6:48:58 PM GMT-03:00To: "Rules Users List" <rules-users@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
Edson2007/8/2, mark.mcnally@comcast.net < mark.mcnally@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 Statedialect "mvel"
when
$ca:CandidateAssociation( eval ( ! nurseDetails.stateLicensures.contains( patientDetails.state ) ) )
thenretract( $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 mailing list