Skip to content

Changing task state did not update sortHelperStatus #6590

@henning-gerhardt

Description

@henning-gerhardt

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:

  1. Search for an process in the database and note the value of sortHelperStatus
  2. Search this process in the process list
  3. Click on "Edit" button for this process
  4. Switch to the "Task list" tab
  5. Click on the "Task details" button
  6. Chang the "Status" to an different one and click on "Save"
  7. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions