JBoss Community

Re: jBPM 5: how save a ProcessInstance ?

created by Andy R. in jBPM - View the full discussion

Sorry, my code example was incomplete - this is the correction of how to create the env-object:

 

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

 

Environment env = KnowledgeBaseFactory.newEnvironment();

env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );

 



Reply to this message by going to Community

Start a new discussion in jBPM at Community