<div>Sigh! I don&#39;t understand what is going on.</div>
<div>&nbsp;</div>
<div>I added another rule which is almost identical:</div>
<div>&nbsp;</div>
<div>rule BidderReqCorrection<br>&nbsp; no-loop<br>&nbsp; activation-group &quot;permissions&quot;<br>when<br>&nbsp; c: PermissionCheck(name == &quot;stuff&quot;, action == &quot;find&quot;, granted = false)<br>&nbsp; Role(name == &quot;A Role&quot;)
<br>&nbsp; AppProp(now == (new Date()), s: startDate -&gt; (s.getTime() &lt; now.getTime()), e: endDate -&gt; (e.getTime() &gt; now.getTime()) )<br>then<br>&nbsp; c.grant();<br>&nbsp; modify(c);<br>end;</div>
<div>&nbsp;</div>
<div>But now I get the error:</div>
<div>&nbsp;</div>
<div>org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for &#39;now&#39;<br>Rule Compilation error Unknown variable or type &quot;now&quot; Class &quot;java.lang.Object&quot; has no method named &quot;getTime&quot; Expression &quot;now&quot; is not an rvalue Expression &quot;now&quot; is not an rvalue Expression &quot;now&quot; is not an rvalue Exception:null
</div>
<div>&nbsp;</div>
<div>Its a copy-and-paste from the first rule. Just changed the action from &quot;do&quot; to &quot;find&quot;.<br>It does not matter if I comment out all the other rules or not. This new rule always causes the error.</div>