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

Spring Beans should not be resolved from application context in scripts if custom beans have been provided in the engine configuration

    XMLWordPrintable

Details

    Description

      Environment

      • A Camunda project with version >= 7.12.0 that uses the engine-spring module (including all Spring Boot setups)

      Description

      Steps to reproduce

      1. Define a custom bean with name fooBean in the engine configuration (like described in https://docs.camunda.org/manual/7.14/user-guide/spring-framework-integration/expressions/#limit-the-exposing-spring-beans-in-expressions for example)
      2. Create a bean called fooBean in the Spring application context (i.e. a different object than the one in step 1)
      3. Create a script task that references fooBean, e.g. with Groovy calling a method fooBean.doSomething()

      Observed Behavior

      • fooBean resolves to the bean from the application context (step 2)

      Expected behavior

      • fooBean resolves to the custom bean from the engine configuration (step 1)

      Root Cause

      Solution Ideas

      Hints

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                thorben.lindhauer Thorben Lindhauer
                Tobias Metzke-Bernstein Tobias Metzke-Bernstein
                Nikola Koevski Nikola Koevski
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce