[rules-users] Possibility to use variable reference in date comparison using coincides?
Björn Nord
bjorn.nord at databyran.se
Tue May 6 15:29:45 EDT 2014
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
More information about the rules-users
mailing list