[rules-users] Drools Result

Mark Proctor mproctor at codehaus.org
Sat Jun 20 10:29:57 EDT 2009


Wolfgang Laun wrote:
> One good way of producing results from rules is indeed to create and 
> insert an object
> as a fact. The idiom on the RHS is
>    inser( new DroolsResult(...) );
> The application could retrieve this with a query over all DroolsResult 
> facts, and
> then retract the fact so that your WM is ready for another shot.
> -W
You can also insert the object and then use a query to retrieve it - 
lots of ways to slice and dice this one :)

Mark
>
>
> On Fri, Jun 19, 2009 at 11:43 PM, skasab2s 
> <skasab2s at smail.inf.fh-brs.de <mailto:skasab2s at smail.inf.fh-brs.de>> 
> wrote:
>
>
>     Hello guys,
>
>     I'm writing a medical application for weaning from artificial
>     respiration.
>     I'm putting some medical facts into the working memory and some
>     rules work
>     on them.
>
>     The only problem is that I should return an result object (I called it
>     DroolsResult) and there should stay if weaning can be successful,
>     remarks
>     and so on.
>
>     I heard that globals are good for returning result. Are there other
>     approaches? Can't one rule create the result object and put it in the
>     working memory so that I can fetch it from there using java code?
>
>     Thanks a lot and regards!
>
>     skasab2s
>     --
>     View this message in context:
>     http://www.nabble.com/Drools-Result-tp24119232p24119232.html
>     Sent from the drools - user mailing list archive at Nabble.com.
>
>     _______________________________________________
>     rules-users mailing list
>     rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090620/7bb54cab/attachment.html 


More information about the rules-users mailing list