[rules-users] Possibility to use variable reference in date comparison using coincides?

Björn Nord bjorn.nord at databyran.se
Tue May 6 18:00:44 EDT 2014


OK, thanks.

Med vänlig hälsning
Björn Nord               [mailto:bjorn.nord at databyran.se]
Databyrån AB          [http://www.databyran.se/]
Box 23114
104 35 Stockholm    Tel +46 8 50 65 64 00
                              Fax +46 8 50 65 64 30
Databyrån AB är certifierad enligt ISO 9001:2008
Tänk på miljön innan du skriver ut detta e-postmeddelande

-----Original Message-----
From: Mark Proctor [mailto:mproctor at codehaus.org] 
Sent: den 6 maj 2014 23:59
To: Rules Users List
Subject: Re: [rules-users] Possibility to use variable reference in date comparison using coincides?

Not right now. 

Mark
On 6 May 2014, at 20:29, Björn Nord <bjorn.nord at databyran.se> wrote:

> Hi,
> 
> Is there a way to use a reference to a variable in the coincide-section like the one I have tried below with $expireWeeks?
> 
> 
> rule "Request expired analysis"
>  dialect "mvel"
>  when
>     SettingForDefinition( definition == "DonationAnalysisRequest" , $code : setting, $expireWeeks : value)
>     Donation( $donationDate : sampleDate)
>     // $expireWeeks below does not work.
>     not PerformedDonationAnalysis(code == $code, sampleDate coincides [$expireWeeks] $donationDate)
>   then
>      ...
>  End
> 
> Kindest regards,
> 
> Björn
> 
> _______________________________________________
> 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



More information about the rules-users mailing list