Gary tse [
http://community.jboss.org/people/garytse] created the discussion
"Re: Using a Timer"
To view the discussion, visit:
http://community.jboss.org/message/624677#624677
--------------------------------------------------------------
Sorry but I guess it all depends on the processes.
For a pool/ multiple StatefulKnowledgeSession implementation :
Say you have a long process that waits for external parties (eg human, webservice, etc).
When the event arrives, you need some way (eg DB) to look up and find out which process
under which session should be informed of the event.
ie. process id -> session id -> interact with the correct StatefulKnowledgeSession
object that contains your process object.
For a single StatefulKnowledgeSession :
You do not need that mapping, since all processes are under 1 single session. However, I
think there is a performance limitation in this implementation. As far as I know, each
session only have 1 thread to run all of the processes in a time-shared manner. (Anyone
can confirm ?)
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/624677#624677]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]