2 Replies Latest reply on Feb 3, 2013 8:17 PM by thomas.setiabudi

    Delegation of tasks

    roxy1987

      Hi,

       

      Is it possible to delegate a task to a group from a user?

       

      Regards.

        • 1. Re: Delegation of tasks
          a_nat

          Hi,

           

          I think its normal to restrict delegation to a user, but can you please brief about your use case.

           

          Regards,

          Ana

          • 2. Re: Delegation of tasks
            thomas.setiabudi

            Hi Roxy,

             

            yes it is possible to delegate task from a user to a group.

             

            1. If the group id is not in the Task's Potential Owner list (seen at database table PeopleAssignment_PotOwners), then you have to nominate that group to the Task's Potential owner first.

             

            There are some ways to do this, if you use the taskClient then here is a sample code:

             

             BlockingTaskOperationResponseHandler blockingTaskOperationResponseHandler = new BlockingTaskOperationResponseHandler();
              taskClient.nominate(taskId, userLogon, potentialOwners,
                blockingTaskOperationResponseHandler);
            

             

            where potentialOwners is a list of potential owner (user / group / both) that you want to nominate as the task's potential owner.

             

            2. If the group has been in the Task Potential Owner, but the task status is still "Reserved", that means the user need to release that task in order to make it a group task which can be claimed by any member of the group.

             

            There are some ways to do this, if you use the taskClient then here is a sample code:

            BlockingTaskOperationResponseHandler blockingTaskOperationResponseHandler = new BlockingTaskOperationResponseHandler();
              taskClient.release(taskId, userLogon,
                blockingTaskOperationResponseHandler);
            

             

             

            Regards,

            Thomas Setiabudi