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