4 Replies Latest reply on Jan 7, 2012 5:16 PM by salaboy21

    Assign single task to multiple actors

    hadik

      Hello Community,

       

           I am using adhoc process for the application in jbpm5.2.

           All adhoc tasks are the human tasks.

           After signaling the event to first task I want to assign the same task to two different user.They are not of the same swimlane or group.

           How this functonality been achieved?

       

      Regards,

      Hardik Dave

        • 1. Re: Assign single task to multiple actors
          calca

          Hi Hardik,

           

          You can specify many actor or group ids separated by comma and they will all be added to potential owners. After that, onceof then can claim, work and complete the task. Does it help?

           

          Demian

          • 2. Re: Assign single task to multiple actors
            hadik

            When I specify multiple actorid to single human task there is only one actor can be a potential owner.

            If one of the actor claim the task he becomes the potential owner and task disappears from the other actor also. I want that both the actor can assign the task and when all of the actors complete the task it should go to other task.

             

            Regards,

            Hardik Dave

            • 3. Re: Assign single task to multiple actors
              swiderski.maciej

              Looks like you are more interested in multi instance characteristic of a task. Meaning engine will create task instance for each user/actor that is given as a collection. So all actors will have task to work on and if you like to constrain the flow to continue you can put a gateway after task.

               

              Take a look at following example.

               

              HTH

              • 4. Re: Assign single task to multiple actors
                salaboy21

                Yes, you can also use the sub tasking feature.. I've created that like 2 years ago so I don't know if it is still working but you can check that and test it.

                Cheers