JBoss Community

Re: How to make a process instance go on with jBPM5?

created by Donald Walters in jBPM - View the full discussion

I had to use to JPAKnowledgeService ans store the session id elsewhere.

 

EntityManagerFactory emf = Persistence.createEntityManagerFactory("com.test");

           Environment env = KnowledgeBaseFactory.newEnvironment();

            env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);

            env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());

 

            ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, null, env);

Reply to this message by going to Community

Start a new discussion in jBPM at Community