title: JBPM 5 - RESOURCE_LOCAL Persistence
body: <p>Environment:</p>
  
  <p>jbpm v5.4.0.Final ,
  drools 5.5.0.Final ,
  spring v3.0.6.RELEASE ,
  Oracle,
  Hibernate EM v4.0.0.Final ,
  JPA v2 </p>
  
  <p>I have configured my web-application to use JBPM with RESOURCE_LOCAL transaction.</p>
  
  <p>I am facing 3 issues:</p>
  
  <p>1)The table workiteminfo is not getting persisted</p>
  
  <p>2)The logs of JPAWorkingMemoryDbLogger is not getting persisted to the DB.</p>
  
  <p>3) When a human-task is completed, the session is not executing other nodes in the instance, even though <code>Session.getWorkItemManager().completeWorkItem</code> is called after task-completion.So new tasks are not getting created.</p>
  
  <p>I have configured the persistence.xml to use "RESOURCE_LOCAL" transaction.
  I have configurred DroolsSpringJPAManager as non-JTA.</p>
  
  <p>Should I create the command-scoped EntityManager explicitly when I create the Environment for Session ?</p>