Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8748

Activity-execution mapping construction fails on implicit parallel gateway usage

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.6.x, 7.7.x, 7.8.x
    • Fix Version/s: 7.9.0, 7.8.3, 7.7.8, 7.6.13, 7.9.0-alpha2
    • Component/s: None
    • Labels:

      Description

      observed

      • given
        • process definition
          • with service task
            • defining a BoundaryEvent (signal)
            • delegate of a service task extends AbstractBpmnActivityBehavior implementing the signal method
          • transitions into three parallel User tasks (implicit parallel gateway)
        • process instance is started and is in wait state
      • when
        • I signal execution
      • then
        • exception is thrown in org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionDestroyScope#execute
      ProcessEngineException("Cannot construct activity-execution mapping: there are "
                  + "more scope executions missing than explained by the flow scope hierarchy.");
      

      Hint
      Here is a test to reproduce the failure:

        public void testImplicitParallelGatewayAfterSignalBehavior() {
          // given
          // using attached process definition
          runtimeService.startProcessInstanceByKey("process");
          Execution execution = runtimeService.createExecutionQuery()
            .activityId("service")
            .singleResult();
      
          // when
          runtimeService.signal(execution.getId());
      
          // then
          assertEquals(3, taskService.createTaskQuery().count());
        }
      

        Attachments

          Activity

            People

            Assignee:
            yana.vasileva Yana Vasileva
            Reporter:
            askar.akhmerov Askar Akhmerov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: