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&...]