Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4447

SubTasksStrategy.EndParentOnAllSubTasksEnd does not appear to work

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • jBPM 6.1.0.Final
    • Human Task Service
    • 0
    • 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

          Activity

            People

              salaboy@gmail.com Mauricio Salatino (Inactive)
              jblinick_jira Josh B (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: