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

taskService.addTaskParticipatingUser adds multiple participations for a user

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: