One good way of producing results from rules is indeed to create and insert an object<br>as a fact. The idiom on the RHS is<br>   inser( new DroolsResult(...) );<br>The application could retrieve this with a query over all DroolsResult facts, and<br>
then retract the fact so that your WM is ready for another shot.<br>-W<br><br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 11:43 PM, skasab2s <span dir="ltr">&lt;<a href="mailto:skasab2s@smail.inf.fh-brs.de">skasab2s@smail.inf.fh-brs.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello guys,<br>
<br>
I&#39;m writing a medical application for weaning from artificial respiration.<br>
I&#39;m putting some medical facts into the working memory and some rules work<br>
on them.<br>
<br>
The only problem is that I should return an result object (I called it<br>
DroolsResult) and there should stay if weaning can be successful, remarks<br>
and so on.<br>
<br>
I heard that globals are good for returning result. Are there other<br>
approaches? Can&#39;t one rule create the result object and put it in the<br>
working memory so that I can fetch it from there using java code?<br>
<br>
Thanks a lot and regards!<br>
<br>
skasab2s<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Drools-Result-tp24119232p24119232.html" target="_blank">http://www.nabble.com/Drools-Result-tp24119232p24119232.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>