jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
693 stars 124 forks source link

BPM: incorrect work if process name is null #3792

Closed stasmakarov closed 1 week ago

stasmakarov commented 1 month ago

Environment

Jmix version: <2.3.4>

Process name is not mandatory, so it can be empty. But the system must work correctly in this case.

  1. Notification when process starts: image

  2. If the process name is empty (null), it causes NPE when user opens the task. image

Steps To Reproduce

Create process without name, only id: image

Deploy and start it.

Expected Behavior

  1. In notification use process id if name is null
  2. In My Tasks: in the tree element use process id if name is null
  3. Allow to open and complete the user task

Sample Project

Attach a zip-archive with a sample project or provide a link to a GitHub repository with a minimal, reproducible example.

Jmix Studio Toolbar provides an action for creating a zip-archive from your project.

Reports that include a sample will take priority over reports that do not.

NikitaShchienko commented 1 week ago

Results:

  1. In notification use process id if name is null - ✅ Done!
  2. In My Tasks: in the tree element use process id if name is null - ✅ Done!
  3. Allow to open and complete the user task - 🚫 Not reproduced