Maciej Swiderski [
http://community.jboss.org/people/swiderski.maciej] created the
discussion
"Re: jBPM as a webservice"
To view the discussion, visit:
http://community.jboss.org/message/642107#642107
--------------------------------------------------------------
There is a REST interface (it is part of the console- jbpm-gwt-console-server) that
provides access to some of operations on the session, so in fact you could start the
process or set variables fir a given process. I am not sure what you mean by:
1.b) Add facts to a running stateful process
do you want to add
facts to the session (working memory) or add/set process variables on process instance?
The second is possible through the REST interface.
Regarding proper requests distribution, that depends on quite many aspects of your design.
For instance, you could set it up to bind session (jbpm state full session) into http
session life cycle. Whenever new request comes in, and it was issued by the same caller
(is with http session id) you can distribute it to the right server based on load balancer
strategy with sticky session attribute. That would mean that you will have a dedicated
state full session per http session, so you need to make sure they will be disposed
properly, this is what I meant by binding it to http session life cycle, when http session
will be invalidated state full session would be disposed.
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/642107#642107]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]