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

Stackoverflow when invoking GetActivityInstanceCmd

XMLWordPrintable

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

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: