[jboss-user] [jBPM] - Re: Signal Event is not happening in persisted process

ravichandrankg do-not-reply at jboss.com
Thu Aug 9 16:46:09 EDT 2012


ravichandrankg [https://community.jboss.org/people/ravichandrankg] created the discussion

"Re: Signal Event is not happening in persisted process"

To view the discussion, visit: https://community.jboss.org/message/752894#752894

--------------------------------------------------------------
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
[https://community.jboss.org/message/752894#752894]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120809/130e6672/attachment-0001.html 


More information about the jboss-user mailing list