-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Steps to reproduce
- Go to Tasklist
- In the left sidebar, edit a filter
- In the modal dialog, click on "Variables" in the accordion
- Add a variable
- Click on Save
- Reproduce steps again until including step 3
Observed behavior
Previously saved variable is not shown.
Expected behavior
Previously saved variable is shown.
Hint
The variables are stored as properties of Filter in tasklist:
{"variables":[{"name":"amount","label":"Invoice Amount"},{"name":"invoiceNumber","label":"Invoice Number"},{"name":"creditor","label":"Creditor"},{"name":"approver","label":"Approver"}],"description":"All Tasks - Not recommended to be used in production :)","priority":10}
When the filter is fetched FilterEntity#setPropertiesInternal() is called. [1]
Then JsonUtil.asMap(json); loses the variables because it doesn't handle the nested collection correctly. [2]
[1]: https://github.com/camunda/camunda-bpm-platform/blob/a6b16b2a1e69f8669bf8b00f58a16641c9696bf5/engine/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/FilterEntity.java#L159
[2]: https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/util/JsonUtil.java#L669-L700
This is the controller panel for Smart Panels app
- is depended on by
-
CAM-9843 A user can see variables in Tasklist even that they are not supposed to
- Closed