[jboss-user] [jBPM] - JBPM5 database empty

y lab do-not-reply at jboss.com
Mon Jan 21 05:53:02 EST 2013


y lab [https://community.jboss.org/people/yjboss] created the discussion

"JBPM5 database empty"

To view the discussion, visit: https://community.jboss.org/message/793208#793208

--------------------------------------------------------------
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
[https://community.jboss.org/message/793208#793208]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130121/bac062be/attachment.html 


More information about the jboss-user mailing list