JBoss Community

Get subprocess id from outside the process

reply from Michael Wohlfart in jBPM - View the full discussion

that's interesting,

the following code should check for the hibernate session in your environment:

 

    processEngine.execute(
         new Command(){
           public String execute(Environment env){
               org.hibernate.Session session = env.get(org.hibernate.Session.class);
               System.out.println("session is: " + session);
               return null;
           }
         }
        );

 

if it is null you might have a problem in the session config for your tests, but then there should be way more problems, are you running other tests that pass? Also note you had "exectution" and "execution" in the code fragment.

Reply to this message by going to Community

Start a new discussion in jBPM at Community