[jboss-user] [jBPM] - Re: RuleTask example

Amin Mohammed-Coleman do-not-reply at jboss.com
Mon Mar 7 14:28:05 EST 2011


Amin Mohammed-Coleman [http://community.jboss.org/people/aminmc] created the discussion

"Re: RuleTask example"

To view the discussion, visit: http://community.jboss.org/message/591710#591710

--------------------------------------------------------------
Hi  

Thanks for your reply.  The following shows my test case:

  KnowledgeBase kbase = createKnowledgeBase("bpmn/sample.bpmn");
  StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);

  ProcessInstance processInstance = ksession.startProcess("Minimal");

  ksession.signalEvent("completeEvent","A", processInstance.getId());
  assertProcessInstanceNotCompleted(processInstance.getId(), ksession);


The work item is created during the process execution so do I still need to insert the work item via ksession.insert(..) also where do I invoke ksession.fireAllRules(..) method?


Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/591710#591710]

Start a new discussion in jBPM at Community
[http://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/20110307/8f0d64e7/attachment-0001.html 


More information about the jboss-user mailing list