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

Mark Proctor mproctor at codehaus.org
Tue May 6 17:59:16 EDT 2014


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




More information about the rules-users mailing list