Hello,<br><br>supposed I have rules sets for different issues and operating on different facts. Now I want to write an interface for users who don&#39;t want to be bothered with details of the Drools API and who wish interface methods which returns results for concrete questions like:<br>
<br>ResultFact getAnswerForQuestionXY()<br><br>How can such a concrete query be implemented?<br>My first idea was to store the result fact with the help of globals:<br><pre>rule &quot;XY&quot;<br>    when<br>        FactX ()<br>
    then<br>        ResultFact resultFact = new ResultFact();<br>        service.addResultFact(resultFact);<br>        insert(resultFact<br>);<br>end<br><br></pre>So my method would only return  something like service.getResultFact().<br>
I don&#39;t know if there are better solutions or if it is unusual to use methods for concrete queries.<br><br><br>Kind regards<br>Thomas<br>