[jboss-user] [JBoss jBPM] - Configuring a JSF backing bean to use JBPM

Octomac do-not-reply at jboss.com
Thu Sep 18 12:47:57 EDT 2008

Hello, all.

I'm creating a JSF application that uses jBPM as a task-tracking tool with several workflows.  I have jBPM running correctly and several working processes, but I have some odd behavior regarding task lists being refreshed, that sort of thing.  Does anyone have any information on how to properly configure a backing bean to use jBPM?  I have one now that is using the API, but I'm not sure that I'm really going about it in the right manner.

My bean is currendly a request bean that creates a new JBPMConfiguration and JBPMContext each request.  This is extremely inefficient, and I'm sure I'll catch some flak for doing this, but I did have a reason.  Originally, I had a session bean that constructed a single JBPMConfiguration, and JBPMContexts were created for the duration of a single transaction, then closed.  This was, as I understood it, the "correct" way to build this kind of application.  However, this led to quite a few odd problems.  The most glaring one is that task lists, which I was retrieving using the jbpmContext.getTaskMgmtSession().findPooledTaskInstances(userId) method, or simply the jbpmContext.getTaskList(userId) method, depending on the situation, would not be refreshed in the UI until I had logged out and back into the application, creating a new session and, by association, a new session bean.

So, I would really like to find some kind of example of existing code that uses JSF and jBPM in a correct fashion.  I believe the JbpmConsole web-app does this, but all I have is the .war file for that.  I'd love to be able to see the source code for the backing beans and actual JSP pages, if that's possible.  Is there anywhere I can download that?

Thanks in advance for any help you can offer.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177493#4177493

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177493

More information about the jboss-user mailing list