AnsweredAssumed Answered


Question asked by alistair on Nov 8, 2012
Latest reply on Dec 5, 2013 by martin.grofcik

I'm trying to utilise a model containing a none start event and a message start event, which has a different entry point into the flow.

In my unit test I'm therefore utilising the startProcessInstanceByMessage method on the runtime service and using the message name as defined against the process.  However this results in an Activiti Exception: "Cannot start process instance by message: no subscription to message with name 'sessionResumptionMessage' found.".

I've compared my test with those packaged in the engine project and can't really see any obvious differences.  Is there any restriction on using both a none start and message start event in the same model?

Here is a code snippet from the unit test:

   @Deployment(resources =
   { "diagrams/NewSymptomSelection.bpmn" })
    * Symptom selection business process - Tests found test.
   public void testSymptomSelectionFlowTestsFound()


         Map<String, Object> variables = new HashMap<String, Object>();
         variables.put("workflowEvent", "symptomSelection");

         ProcessInstance pi = runtimeService.startProcessInstanceByMessage("sessionResumptionMessage", variables);
If anyone can point me in the right direction then I'd be very grateful.

Many thanks