JBoss Community

Re: Signal Event is not happening in persisted process

created by ravichandrankg in jBPM - View the full discussion

Hi Maciej,

 

Thanks for your reply. i tried the test case with persistence as below.

 

 

public class DsrTestcase extends JbpmJUnitTestCase {

          public DsrTestcase() {

                    super(true);

          }

 

public void testProcess() {

                    StatefulKnowledgeSession ksession = createKnowledgeSession("dsrpocNewSig.bpmn");

                    Map<String, Object> params = new HashMap<String, Object>();

                    params.put("actorid", "krisv");

                    ProcessInstance instance = ksession.startProcess("IngestMetadataAndFileSIG", params);

 

                    System.out.println("process created");

                    int id = ksession.getId();

                    ksession.signalEvent("validatewithshowevent", null, instance.getId());

                    loadSession(id, "dsrpocNewSig.bpmn");

                    ksession.signalEvent("qcvideotask", null, instance.getId());

          }

}

 

 

 

 

But i am getting the following exceptions while creating the EntityManagerFactory. I have kept the persistence.xml with proper persistence-unit name.

 

javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.drools.persistence.jpa

          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:56)

          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

 

can you please provide some sample code for the persistence testing as unit test.

 

 

Thanks,

Ravichandran

Reply to this message by going to Community

Start a new discussion in jBPM at Community