Discussion:
[jboss-user] [jBPM] - can we implement custom statuses in jBPM 5.4 like approved at 1st level
Rajesh P
2013-07-25 19:16:57 UTC
Permalink
Rajesh P [https://community.jboss.org/people/javalearner] created the discussion

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

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

--------------------------------------------------------------
Hi,
I am trying to lear jBPM from last 3 months. Still I feel I am new bie to it.

I am using jBPM 5.4 with spring 3.0 MVC and Hibernate 3.0. I followed the configuration mentioned in the below source code link.
https://github.com/mswiderski/jbpm-examples/tree/master/jbpm-spring-web https://github.com/mswiderski/jbpm-examples/tree/master/jbpm-spring-web

I have few queries in the implementation what I did till now.
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.
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?.

Thanks in Advance..
Rajesh.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Ashish T
2013-07-26 05:21:50 UTC
Permalink
Ashish T [https://community.jboss.org/people/ashpcs] 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/829895#829895

--------------------------------------------------------------
Statuses are business data and should be stored in business related tables.  In yor tables you can store the statues and use them as per requirement.
Let me know if you are looking for something else?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Rajesh P
2013-07-27 18:32:23 UTC
Permalink
Rajesh P [https://community.jboss.org/people/javalearner] 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/830076#830076

--------------------------------------------------------------
Thanks Ashish for your reply.
As you suggested I can store those statuses in my custom tables.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-07-26 07:58:41 UTC
Permalink
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

--------------------------------------------------------------
Post by Rajesh P
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.
Post by Rajesh P
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.

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

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Rajesh P
2013-07-27 19:08:41 UTC
Permalink
Rajesh P [https://community.jboss.org/people/javalearner] 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/830078#830078

--------------------------------------------------------------
Thanks  Maciej for your response.
Now I have modeled the work flow as you suggested. Please find the attached model.
I am not clear second point, I mean, with that how can we have custom status?

one more query Maciej, in general work flow, we need to notify users via mail.
Please suggest me the best approach for this. In the attached model, I am forming email list in java code and passing email list as a process variable to jBPM.
So it seems, I am not automating my workflow process.
Actually my requirement is, if I add one more approval in the existing work flow, I should not change the java code.

Please suggest me on this.

Thanks in Advance.

Rajesh.
--------------------------------------------------------------

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

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