JBoss Community

Re: RuleTask example

created by Amin Mohammed-Coleman in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community