[From nobody Fri Apr 20 09:05:00 2012 From: "Edson Tirelli" <tirelli@post.com> To: "Rules Users List" <rules-users@lists.jboss.org> Subject: Re: [rules-users] nested accessors with Sets Date: Thu, 2 Aug 2007 21:48:58 +0000 Content-Type: Multipart/mixed; boundary="NextPart_Webmail_9m3u9jl4l_22420_1186254059_1" --NextPart_Webmail_9m3u9jl4l_22420_1186254059_1 Content-Type: multipart/alternative; boundary="----=_Part_68181_9444613.1186091209269" ------=_Part_68181_9444613.1186091209269 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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@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 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 > > ------=_Part_68181_9444613.1186091209269 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <br>&nbsp;&nbsp;&nbsp; Mark,<br><br>&nbsp;&nbsp;&nbsp; Hmmm, something is going on with mvel integration... bellow must work. <br>&nbsp;&nbsp;&nbsp; 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. <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Thanks, <br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/8/2, <a href="mailto:mark.mcnally@comcast.net">mark.mcnally@comcast.net</a> &lt;<a href="mailto:mark.mcnally@comcast.net"> mark.mcnally@comcast.net</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;">Edson,<br><br>Thank you for the response. I tried writing the in-line eval as suggested but get this Exception: <br><br>org.drools.rule.InvalidRulePackage: Unable to determine the used declarations : [Rule name=State, agendaGroup=MAIN, salience=0, no-loop=false]<br></div><div style="direction: ltr;"><span class="q"> &nbsp; &nbsp; &nbsp; &nbsp;at org.drools.rule.Package.checkValidity (Package.java:408)<br> &nbsp; &nbsp; &nbsp; &nbsp;at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:288)<br></span></div><div style="direction: ltr;"> &nbsp; &nbsp; &nbsp; &nbsp;at [...]<br><br>This is my rule:<br><br>rule State<br></div><div style="direction: ltr;"> <span class="q"> &nbsp; &nbsp;dialect &quot;mvel&quot;<br> &nbsp; &nbsp; &nbsp; &nbsp;when<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ca:CandidateAssociation( eval ( ! nurseDetails.stateLicensures.contains( patientDetails.state ) ) )<br> &nbsp; &nbsp; &nbsp; &nbsp;then<br></span></div><div style="direction: ltr;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;retract( $ca );<br>end<br><br>I haven&#39;t yet but, plan to open an issue in JIRA as requested<br><br>Thanks for your help.<br>Mark<br></div><div style="direction: ltr;"><span class="q"><br></span></div></blockquote> </div><br> ------=_Part_68181_9444613.1186091209269-- --NextPart_Webmail_9m3u9jl4l_22420_1186254059_1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users --NextPart_Webmail_9m3u9jl4l_22420_1186254059_1-- ]