camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.03k stars 1.53k forks source link

Tasklist Filter displays the Task Input Variables as Undefined despite them having values #4398

Closed psavidis closed 4 weeks ago

psavidis commented 1 month ago

Environment (Required on creation)

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

Given a Tasklist filter with two variables (FNAME, LNAME)

Screenshots

1. Screenshot with two Local Variables - SUPPORT-21936-2.bpmn ![Screenshot 2024-05-29 at 1 10 24 PM](https://github.com/camunda/camunda-bpm-platform/assets/69160690/3f6584aa-64db-48e7-b6ca-aeda31c3ff2f)
2. Screenshot with two Local Variables and one Output Variable - SUPPORT-21936_Output.bpmn ![Screenshot 2024-05-29 at 1 10 51 PM](https://github.com/camunda/camunda-bpm-platform/assets/69160690/6bca6f0b-e994-4d12-863d-8d064a216337)
3. Screenshot with Filter Variables that are Undefined ![Screenshot 2024-05-29 at 1 10 51 PM](https://github.com/camunda/camunda-bpm-platform/assets/69160690/6bca6f0b-e994-4d12-863d-8d064a216337)

Steps to reproduce (Required on creation)

Create Filter

Deploy and View Filter Works

Deploy and View Filter is Broken

Observed Behavior (Required on creation)

SUPPORT-21936_Output.bpmn process-instance creates a test task with local variables (2 input, 1 output) which should be displayed in the Tasklist filtered list view. Instead, the variables are displayed as Undefined.

Expected behavior (Required on creation)

The Tasklist View should display First Name and Last Name Filter Variables of the test task related to SUPPORT-21936_Output.bpmn with a populated value instead of Undefined

Root Cause (Required on prioritization)

The endpoint /camunda/api/engine/engine/{engine-name}/filter/{filter-id}/list which is used to visualise the filter:

Solution Ideas

Hints

Links

Breakdown

### Pull Requests

Dev2QA handover

psavidis commented 1 month ago

Root Causing

psavidis commented 4 weeks ago

Latest Findings

The behaviour of the backend when it comes to fetching the task variables and the UI for displaying them, works as expected.

Here is the description of what happens for the two process models of the ticket:

Process Model: SUPPORT-21936-2.bpmn

PVM Execution Tree:

465 - parent b77 - scope 0af - subprocess concurrent execution 0b2 - scope

Broken Filter case: SUPPORT-21936_Output.bpmn

PVM Execution Tree:

3c7- parent ad9 - scope 901 - subprocess concurrent execution 904- subprocess 01b - user task

Source: Wiki of PVM Execution Tree

psavidis commented 4 weeks ago

Since the behaviour is expected according to the implementation of the PVM tree, this issue cannot be classified as a bug. Closing the ticket.