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(a)smail.inf.fh-brs.de <mailto:skasab2s@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(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users