[jboss-user] [jBPM] - Re: A few jbpm5 architectural/design questions

Maciej Swiderski do-not-reply at jboss.com
Mon Apr 30 02:27:47 EDT 2012


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: A few jbpm5 architectural/design questions"

To view the discussion, visit: https://community.jboss.org/message/732907#732907

--------------------------------------------------------------
> Kishore Jaladi wrote:
> * We use MongoDB as our database. I understand that JBPM5 supports JPA persistence. Is it safe to assume that with any ORM provider like Dataneucleaus that provides a JPA layer for MongoDB can used for Work Flow Engine persistence? ref:  http://sasajovancic.blogspot.com/2011/06/use-jpa-with-mongodb-and-datanucleus.html http://sasajovancic.blogspot.com/2011/06/use-jpa-with-mongodb-and-datanucleus.html
> 
There is currently work in progress to ensure that jBPM will work with any JPA provider and hopefully will be released soon, so any help with testing that is more then welcome  :) 


> Kishore Jaladi wrote:
> 
> * Is it possible to do on-demand process-instance or ksession persistence? If so, is there any sample code?
> 
You can control your transactions so I think you could achieve on demand persistence if I got you question right...


> Kishore Jaladi wrote:
> 
> * I read that the work flow engine uses the single thread (the thread that starts the process/fires an event) to execute the entire process...no real multi-threading. What happens when the process instance and/or session is persisted at safe-points (or manually)?..does the thread end/return back to main program? 
> 
Yes, as soon as process goes into a state node (human task, timer, catch events) it will return the thread to main program.


> Kishore Jaladi wrote:
> 
> * If I have to start multiple (many) processes at the same time from the main program, do I have to start them all in different threads? do I have to model my own thread pool?
> 
It all depends on your process design. If your process has a state node just after start event (such as human task) you could use single thread to start them but they will be started in sequence.


> Kishore Jaladi wrote:
> 
> * I have a situation where, the main program receives a message on http and the http response thread have to be returned with status 200 OK after persisting the message. If I want the message persistence as a part of the process, how can I achieve this? I mean, I cannot return the main thread just after the first (persistence) node of the process, right?...how can make the rest of the process continue?
> 
See above point regarding state nodes or just make you work async after start node using work item handlers -  http://docs.jboss.org/jbpm/v5.2/userguide/ch05.html#d0e1811 http://docs.jboss.org/jbpm/v5.2/userguide/ch05.html#d0e1811

HTH
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20120430/cb2a6b6b/attachment.html 


More information about the jboss-user mailing list