[rules-users] How can generated facts/events be published?
Wolfgang Laun
wolfgang.laun at gmail.com
Sun Aug 29 13:46:53 EDT 2010
The usual method:
You establish a TopicPublisher as a global declared in your .drl file.
global TopicPublisher topicPublisher
You must set this from Java code using
TopicPublisher topicPublisher = ...;
statefulKnowledgeSession.setGlobal( "publisher", topicPublisher )
and then you use it in any RHS code.
Of course, a TopicPublisher could also be (field of) some fact,
but this shouldn't be necessary for such a central service.
-W
On 29 August 2010 19:16, Tina Vießmann <tviessmann at stud.hs-bremen.de> wrote:
> Hi,
>
> I've got a simple question.
>
> How can I get generated facts out of the memory (for publishing them
> using JMS)?
>
> Thanks :)
> Tina
> _______________________________________________
> 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/20100829/819a791b/attachment.html
More information about the rules-users
mailing list