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

taskService.addTaskParticipatingUser adds multiple participations for a user

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jBPM 4.4
    • None
    • None
    • None

    Description

      Perhaps this is the intended behavior, but calling taskService.addTaskParticipatingUser with the same user creates multiple participates:

      taskService.addTaskParticipatingUser(_task.getId(), "boss_rigging", Participation.CANDIDATE);
      taskService.addTaskParticipatingUser(_task.getId(), "boss_rigging", Participation.CANDIDATE);

      assertEquals(1,taskService.createTaskQuery().candidate("boss_rigging").activityName("Investigate").list().size());

      The query comes back with two tasks. This is somewhat surprising.

      Attachments

        Issue Links

          Activity

            People

              rebody HuiSheng Xu (Inactive)
              rmoskal_jira Robert Moskal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: