JBoss Community

failed to lazily initialize a collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.variables, no session or session was closed

reply from Michael Wohlfart in jBPM - View the full discussion

Hi Felix,

 

you might need this in  jbpm.cfg.xml:

 

also maybe your SpeaddWorkFlow.StartWorkFlow() method needs a @Transactional annotation?

 

and finally you can try to do whatever you do in line 245 of SpeaddWorkFlow.java within a command like described by HuiSheng in this thread:

processEngine.execute(new Command() {
    public Object execute(Environment env) {
        // do something.
        return null;
    }
});

Reply to this message by going to Community

Start a new discussion in jBPM at Community