JBoss Community

Lazy loading of sub-process

reply from Michael Wohlfart in jBPM - View the full discussion

did you try executing your code within a command like described in 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 the docs ?

 

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community