[jboss-user] [jBPM] - Re: can we implement custom statuses in jBPM 5.4 like approved at 1st level

Maciej Swiderski do-not-reply at jboss.com
Fri Jul 26 03:58:41 EDT 2013

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

"Re: can we implement custom statuses in jBPM 5.4 like approved at 1st level"

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

> Rajesh P wrote:
> 1) Can we have only one ksession for entire application? 
>      It is in the memory till application server/web server stops. Since ksession is having references to all the process in the kbase does it take more memory?Please correct me if my understand is wrong.
You can have as many ksessions as you need in your application. There are several strategies that might be used where one and most simple one is singleton - just one session for the application.
When using persistence for your processes then process instances will be only in memory when they are actually executing - that means when process is in wait state like user task or waiting for external signal then it is not kept in memory but only in db.

> 2) Can we implement custom statuses in jBPM?
>      Lets have a workflow process has 2 level of approval. After 1st level approval, can we store the status as 1st level approved in jBPM.
>  is it possible? Correct if I am wrong. Like this can we implement or store custom statuses?.
based on what you described you should model those states as activities in the process where first level of approval is one activity (user task) and then second level is another activity (user task). You can see it like state machine where every node represent a state so that way you have the most flexibility.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

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

More information about the jboss-user mailing list