zeebe-io/zeebe-modeler

Consistently refuse non QName process ids.

ajeans opened this issue · 4 comments

Describe the Bug

In the modeler, when assigning an "Id" in the "General" tab, QName compliance is enforced.
If I try to input "2fa-sms", I get an error msg "Id must be a valid QName"

image

However, when I create a "Call Activity" element in a BPMN, I can assign a non QName value in tab "General" > "Details" > "Process Id"

image

AFAIU, the process-id in the call activity must match the BPMN general id, so there seems to be a consistency problem here.

Steps to Reproduce

  1. Create a new BPMN
  2. Add a call activity to it, with process-id "123"
  3. Save the BPMN
  4. Create a second BPMN
  5. Define its id as "123"

Expected Behavior

If QName is indeed mandatory for process-ids, it should also be enforced in the details of the call activity.

Environment

  • OS: Ubuntu 20.04
  • Zeebe Modeler Version: 0.9.1

Good point. Thanks for reporting!

Will be fixed upstream tracked via
We might need to also fix this in other places (to be analyzed) bpmn-js-properties-panel/issues/346.

@MaxTru Can I work on this issue?