[jboss-user] [jBPM] - How to force a transition when HttpSession in which task was started is no longer valid

Sylvain Catudal do-not-reply at jboss.com
Wed Jun 22 09:51:49 EDT 2011

Sylvain Catudal [http://community.jboss.org/people/scatudal] created the discussion

"How to force a transition when HttpSession in which task was started is no longer valid"

To view the discussion, visit: http://community.jboss.org/message/611416#611416

Hi all,
I'm currently working on a web form workflow where forms are created, edited, approved and published.

We don't want two users to edit the same form simultaneously so there is a state availableToEdit.  From there, a user can start editing the web form.  If the user uses the web interface approprietly, it will either go back to availableToEdit or go on to the next state.  As you well know, it is impossible to enforce that.  This is why I want to know how I can force a transition when the HttpSession in which the task was started is no longer valid.

I know I could create a ServletContextListener that could force those transitions when sessions are destroyed or create a Quartz task that roots them out and do what is needed.  But I'm sure I'm not the only one with this kind of problem and it feels like there should be an easy solution within JBPM. Maybe with timers, but I haven't found out yet.

Thanks for your time,

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/20110622/c12a56a1/attachment.html 

More information about the jboss-user mailing list