JBoss Community

Re: Jbpm 5.4 spring configuration : Human Task is not created

created by mayank sahai in jBPM Development - View the full discussion

this issue is identical to : https://community.jboss.org/thread/195386?start=0&tstart=0

 

looks like issue is caused by : TaskSessionSpringFactoryImpl.java , initialization of TaskPersistenceManager is determined by:

 

private TaskPersistenceManager createTaskPersistenceManager() {
    TaskPersistenceManager tpm;
    TaskSpringTransactionManager ttxm = new TaskSpringTransactionManager(springTransactionManager, useJTA);
    if (useEMF) {
        tpm = new TaskPersistenceManager(emf.createEntityManager(), ttxm);  -------------------- this is initialized is it correct ????????
    } else {
        tpm = new TaskPersistenceManager(springEM, ttxm);
        tpm.setUseSharedEntityManager(true); ---------------------------------- shouldnt this be initialized ???? if yes then how to configure springEM  
    }
    return tpm;
}

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community