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

Activity-execution mapping construction fails on implicit parallel gateway usage

    XMLWordPrintable

Details

    • Bug Report
    • Status: Closed
    • L3 - Default
    • Resolution: Fixed
    • 7.6.x, 7.7.x, 7.8.x
    • 7.9.0, 7.8.3, 7.7.8, 7.6.13, 7.9.0-alpha2
    • None

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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce