camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.49k stars 479 forks source link

Referencing generated form input as business-key will falsly list it to created process varibles #4260

Open timstawowski opened 5 months ago

timstawowski commented 5 months ago

Describe the bug

According to https://jira.camunda.com/browse/CAM-7551 a created form input that is referenced as the business-key will not create a process-variable.

By making the following configurations. generated_form_input_a

The modeler lists the form field "a" as a process variable, but it won't get created when executing the process. process_variable_a

Steps to reproduce

  1. Create new bpmn-process
  2. Click on the start event and select "Forms > Type > Generated Task Forms" from the context panel
  3. Create form input via "Form fields > +" and give it an ID
  4. Select this form field in the "Business key" section of the context panel
  5. Click on global process scope to see the form input listed as process variable

Expected behavior

A form input of a Generated Task Forms type should not be listed in the global process variables list, when it is referenced as the business key.

Environment

Additional context

Linked issue: https://github.com/camunda/camunda-bpm-platform/issues/4289

nikku commented 5 months ago

Thanks for reporting @timstawowski. This indeed sounds like a bug in our process variables widget, to be addressed in our Camunda 7 properties panel provider.

I'm moving this to our backlog and attach pr-welcome. It seems like a "special case" that we want to accommodate for.