om: "Edson Tirelli" <[EMAIL PROTECTED]>
Date: August 2, 2007 6:48:58 PM GMT-03:00
To: "Rules Users List"
Subject: Re: [rules-users] nested accessors with Sets
Mark,
Hmmm, something is going on with mvel integration... bellow
must work.
There are work arounds
Edson,
I opened ticket # 1058 for this - http://jira.jboss.com/jira/browse/JBRULES-1058
Thank you,
Mark
-- Original message --
From: "Edson Tirelli" <[EMAIL PROTECTED]>
> Mark,
>
> Hmmm, something is going on with mvel integration... bellow must work.
>
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, [E
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.checkValidit
Mark,
Sorry for not answering before. I was doing some research.
What you found is a bug. Contains and not contains are supported
operations in Drools, but the case you are facing is that you are using
these operators with accessors expressions (e.g.
nurseDetails.stateLicensures ). When a
Actually, it is still broken.
This does not complain but it always executes the consequence, even when the
stateLicensures includes the state that in patientDetails.state
$ca:CandidateAssociation(nurseDetails.stateLicensures not contains
patientDetails.state )
I also tried the
My rule now appears to be working after switching from the "excludes" operator
to the newer "not contains".
This works:
$ca:CandidateAssociation(nurseDetails.stateLicensures not contains
patientDetails.state )
This does not:
$ca:CandidateAssociation(nurseDetails.stat
Hello,
Please excuse me if I have double posted - my first did not seem to appear.
I am wondering if the following is valid rule syntax. I am getting a
stacktrace when the rules fire that points to a ClassCastException on a HashSet
I am using v4.0 GA.
Thank you, Mark
rule StateMatch