We couldn't load all Actvitity tabs. Refresh the page to try again.
If the problem persists, contact your Jira admin.
Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8748

Activity-execution mapping construction fails on implicit parallel gateway usage

      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());
        }
      

        This is the controller panel for Smart Panels app

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

            Activity-execution mapping construction fails on implicit parallel gateway usage

                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());
                  }
                

                  This is the controller panel for Smart Panels app

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

                          Created:
                          Updated:
                          Resolved:

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

                                Created:
                                Updated:
                                Resolved: