[jboss-user] [jBPM] - why to fire all rules in a thread?

Odelya Holiday do-not-reply at jboss.com
Tue Mar 1 08:40:54 EST 2011


Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion

"why to fire all rules in a thread?"

To view the discussion, visit: http://community.jboss.org/message/590342#590342

--------------------------------------------------------------
Hi!

I saw in the Emergency Demo application:


 new Thread(new Runnable()       {
 
 
            public void run() {
                ksession.fireUntilHalt();
            }
        }).start();
 



That the session firing the rules is running in a different thread.

what is the reason?

why not simply to write:

ksession.fireAllRules()?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/590342#590342]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110301/0b166037/attachment.html 


More information about the jboss-user mailing list