[jboss-user] [jBPM] - Bug: jPBM 4.4: JbpmException thrown by ActivityExecution.getActivity()

Michael Wohlfart do-not-reply at jboss.com
Tue Jul 6 13:12:42 EDT 2010


Michael Wohlfart [http://community.jboss.org/people/mwohlf] replied to the discussion

"Bug: jPBM 4.4: JbpmException thrown by ActivityExecution.getActivity()"

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

--------------------------------------------------------------
Hi Joe,
in the first place I don't think it is a bug, it is rather the way jBPM is intended to be used.
You open and close an environment which is defined by jBPMs IoC Container, much like you open and close a hibernate session.

Maybe the fact that environmentFactory.openEnvironment() returns EnvironmentImpl is not really pretty,
but a lot of methods in ActivityExecution require an environment to work with and having them all open and close their own environment would be
even uglier and unnecessary in most cases.

--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20100706/b9b13453/attachment.html 


More information about the jboss-user mailing list