[jboss-user] [jBPM] - Lazy loading of sub-process

Michael Wohlfart do-not-reply at jboss.com
Wed Jul 21 04:48:18 EDT 2010


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

"Lazy loading of sub-process"

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

--------------------------------------------------------------
did you try executing your code within a command like described in  https://community.jboss.org/thread/153892 this thread:
> processEngine.execute(*new* Command() {
>     *public* Object execute(Environment env) {
>         // do your stuff here
>         *return* *null*;
>     }
> });
> 
or open/close an environment like described in  http://docs.jboss.com/jbpm/v4/devguide/html_single/#d0e3068 the docs ?

Doing so should take care of the hibernate session and prevent LazyInitializationExceptions

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

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

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/20100721/df864196/attachment.html 


More information about the jboss-user mailing list