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

Stackoverflow when invoking GetActivityInstanceCmd

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.2.0, 7.1.2, 7.2.0-alpha2
    • 7.1.0, 7.1.1
    • engine
    • None

    Description

      Reproduce steps:

      See SUPPORT-977

      Problem:

      Calling runtimeService.getActivityInstance("processInstanceId") inside a method which observes CDI events leads to a stackoverflow.

      Expected behavior:

      Works.

      Hints (optional):

      CommandExecutor commandExecutorTxRequiresNew = ((ProcessEngineImpl) ProcessEngines.getDefaultProcessEngine()).getProcessEngineConfiguration().getCommandExecutorTxRequiresNew();
      this.activityInstance = commandExecutorTxRequiresNew.execute(new GetActivityInstanceCmd(event.getProcessInstanceId()));

      is a workround.

      With the introduction of ProcessEngineService usage in delegates etc. since 7.1.0, we reuse the already existing CommandContext instead of creating a new one when invoking a command.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              sebastian.menski Sebastian Menski
              lipphardt Christian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce