Details
-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
jBPM 6.1.0.Final
-
0
-
0%
Description
When the last subtask is completed, the parent task is not marked as completed. I think I have isolated the problem to line 72 of ProcessSubTaskCommand:
if (subTasks.isEmpty() || (subTasks.size() == 1 && subTasks.get(0).getId() == taskId)) {
subTasks.get(0).getId() returns a "Long", and taskId is a "Long". This is always evaluating to false.
I believe the fix would be to use subTasks.get().getId().equals(taskId).
Attachments
Issue Links
- relates to
-
JBPM-6471 Extend SubTasksStrategy to manage multiple configurable task / sub-task strategy mechanisms
- Open