JBoss Community

No Persistence provider for EntityManager named org.jbpm.task

created by Laura delli Paoli in jBPM - View the full discussion

Hello!

 

I'm trying to make my process data persistent and when I run

 

EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task", properties);

I get this error:

No Persistence provider for EntityManager named org.jbpm.task

I'm starting my process in this way

 

 

EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task", properties);

EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task", properties);

KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);

Environment env = KnowledgeBaseFactory.newEnvironment();

env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);

env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());

StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);

ksession.startProcess("my_process", params);

 

See my persistence.xml attached.

 

Can anyone help me??

Reply to this message by going to Community

Start a new discussion in jBPM at Community