Hello everybody:<div><br></div><div>I have two question related to queries:</div><div><br></div><div>First one, the one in the subject, I have a query which retrieves facts which have to be modified and updated in working memory. I&#39;ve seen that the StatefulKnowledgeSession.update() method has the fact handle as input. Is it possible to set the fact handle to null? If it isn&#39;t, how can I get the fact handle using the fact retrieved with the query?</div>
<div><br></div><div>Second one, related to writing, I though of parameterizing the query using the fact pattern, something like this, </div><div><br></div><div><div>query &quot;alarmExists&quot;  (AlarmFact key)</div><div>
    $alarm : AlarmFact(key1 == key.key1,</div><div>                   key2 == key.key2,</div><div>                   key3 == key.key3</div><div>                   )</div><div><br></div><div>end</div></div><div><br></div><div>
<br></div><div><br></div><div>but the rule compiler doesn&#39;t accept this sintax. Is it a requirement that query parameters are basic java types or is there a way to write this query using more complex Object parameters?</div>
<div><br></div><div>Thank you for your time.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Manuel Ortiz.</div><div><br></div>