flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
7.85k stars 2.59k forks source link

flowable-task: while in task, clicking on process jumps to wrong process if too many processes are active #1313

Open wjansenw opened 6 years ago

wjansenw commented 6 years ago

https://forum.flowable.org/t/flowable-task-from-task-to-process-sometimes-links-to-wrong-process/2191/2

Flagging this issue also here.

When there are many processes active, clicking on a process in the task-view, you could arrive at the wrong process.

Some screenshots and example process:

https://newteccy-my.sharepoint.com/:u:/g/personal/wjan_newtec_eu/EdDdVXMbdVlFuLfWrOJN-98BQZIB-HA4JvYoGxRiimeDWQ?e=gQkcuC

capture_task capture_process

wjansenw commented 6 years ago

I believe the issue to be located here:

https://github.com/flowable/flowable-engine/blob/3e215f1663f6f65fb30410d752482066fe259b90/modules/flowable-ui-task/flowable-ui-task-app/src/main/resources/static/workflow/scripts/controllers/processes.js#L153-L171

If there are multiple pages, only the first page is being selected, and $scope.selectedProcessInstance will never be set to the correct processInstance.

Now, how to solve that is another story... My programming skills are too limited here I'm afraid...

wjansenw commented 6 years ago

dirty work-around: add size: 9999 to https://github.com/flowable/flowable-engine/blob/3e215f1663f6f65fb30410d752482066fe259b90/modules/flowable-ui-task/flowable-ui-task-app/src/main/resources/static/workflow/scripts/controllers/processes.js#L122-L125