Description
Describe the bug
I don't know yet if this is a regression of the Hibernate-Search implementation or was existing before.
If you change the task state through the task details page of the task list of a process the internal field sortHelperStatus
got not updated even the task state itself is stored correct in the database.
This is important for closed processes if you want / need to reset the process workflow to a former state and use this way to change the task state. If you do this the process is still only "visible" in the process list if you still search for "closed processes".
To Reproduce
Steps to reproduce the behavior:
- Search for an process in the database and note the value of
sortHelperStatus
- Search this process in the process list
- Click on "Edit" button for this process
- Switch to the "Task list" tab
- Click on the "Task details" button
- Chang the "Status" to an different one and click on "Save"
- In the UI the new state is shown but in the database the value for
sortHelperStatus
is still the same
Expected behavior
After changing the state of a task though the task details the internal sortHelperStatus
field should be updated to.
Additional context
If the process is not finished - means all tasks are done (green) and sortHelperStatus
did not contain the value 100000000000
it is possible to change the task states on the Task list tab through the arrow buttons near the state symbol. If this way is used the sortHelperStatus
value in the database is updated. But this way can not be used in first place for closed processes (all tasks green) as this arrows are only available if the last task is not done.