JBoss Community

JBPM5 database empty

created by y lab in jBPM - View the full discussion

Hi,

I use persistence jpa with my JBPM5 application.

after starting a process, all  work fine but the database is empty , any idea ?

 

here how i start my process

    

     emf = Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa");

                        kbase = readKnowledgeBase();

                        Environment env = KnowledgeBaseFactory.newEnvironment();

                        env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);

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

     session = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null,env);

     session.startProcess("com.sample.bpmn.hello");

 

and my persitence.xml in PJ.

 

Thanks for your helps

Reply to this message by going to Community

Start a new discussion in jBPM at Community