<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Wolfgang Laun wrote:
<blockquote
 cite="mid:17de7ee80906200301y41243620gc67708d5a46bc7bc@mail.gmail.com"
 type="cite">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>
&nbsp;&nbsp; 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>
</blockquote>
You can also insert the object and then use a query to retrieve it -
lots of ways to slice and dice this one :)<br>
<br>
Mark<br>
<blockquote
 cite="mid:17de7ee80906200301y41243620gc67708d5a46bc7bc@mail.gmail.com"
 type="cite"><br>
  <br>
  <div class="gmail_quote">On Fri, Jun 19, 2009 at 11:43 PM, skasab2s <span
 dir="ltr">&lt;<a moz-do-not-send="true"
 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'm writing a medical application for weaning from artificial
respiration.<br>
I'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'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 moz-do-not-send="true"
 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 moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 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>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>