AnsweredAssumed Answered

ActivitiException: this activity doesn't accept signals

Question asked by derkoe on Feb 22, 2011
Latest reply on Feb 23, 2011 by frederikheremans1
When I signal a receive task after a parallel gateway, I get "ActivitiException: this activity doesn't accept signals".

Am I doing something wrong?

Here's the Code:

      final String deploymentId = repositoryService.createDeployment()
         .addClasspathResource("diagrams/test.activiti.bpmn20.xml").deploy().getId();

      final HashMap<String, Object> variables = new HashMap<String, Object>();
      variables.put("vehicleId", 42L);
      final ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("helloworld", variables);

      Execution execution = runtimeService.createExecutionQuery().processDefinitionKey("helloworld")
         .variableValueEquals("vehicleId", 42L).singleResult();

      System.out.println(runtimeService.getActiveActivityIds(execution.getId()));

      runtimeService.signal(execution.getId());

The sysout print "[receivetask1]"

Outcomes