Reproduce:
- Start a process instance with some variables
- Goto the runtime instance view of this process instance in Cockpit
- In the bottom half of the Cockpit screen, navigate to any tab other than Variables
- In a different browser tab, complete the process instance
- In the original browser tab, go back to the Variables tab
Expected:
- A Message that the process instance has been completed and - if possible - a redirect to the history view
Observed:
- Variables tab displays "No process variables"
Workaround:
- Refresh the page
Context:
There are two different endpoints to retrieve the variables, one for the runtime view and one for the history view. Usually, we check if the process instance is completed and redirect the user to the history view, but if the runtime view was opened while the instance was still running, we do not perform this check again when switching tabs. This can lead to problems when the process instance is completed while the user navigates through the tabs of the runtime view.
We are closing this ticket as part of our backlog grooming. Reasons: