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

Start form variables are not passed on to the Custom TenantIdProvider

XMLWordPrintable

      Steps to reproduce

      • Installed Camunda 7.13.5-ee Spring boot application
      • Create a sample bpmn and provide embedded start form with form variable say name in Start Event. And Start event should not have Async-before flag set.
      • Create a CustomTenantIdProvider and access Start form variable in provideTenantIdForProcessInstance () method
            public  String provideTenantIdForProcessInstance (TenantIdProviderProcessInstanceContext ctx) {
            	 System .out.println ( "vars:" + ctx.getVariables ());
                return getTenantIdOfCurrentAuthentication ();
            }
        
      • Start process via tasklist
      • Provide value of form variable name and submit it

      Observed Behaviour

      • Value of Start Form variable is null / not set

      Expected Behaviour

      • Value of Start Form variable should be accessible in CustomTenantIdProvider

      Attached a sample project for quick reference.

      Hints

      • Value of Start Form variable was accessible in CustomTenantIdProvider in 7.13.3-ee
      • Looks like related to the code changes done as part of CAM-12330

      Additional observation
      Once Async-before flag is set in start event, this use-case does not work in both 7.13.3-ee and 7.13.5-ee

        This is the controller panel for Smart Panels app

              miklas.boskamp Miklas Boskamp
              garima.yadav Garima Yadav
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: