2 Replies Latest reply on Jun 15, 2011 9:36 AM by kirubagaran

    How to Assign Human task to a Role in jBPM5

    kirubagaran

      Hi,

       

       

      How can i assign a human task to particular role users, all users under that role needs to get a activity but any one can take an action

       

       

       

      Regards,

       

      Kiru

        • 1. Re: How to Assign Human task to a Role in jBPM5
          frankee787

          Create a client like this to connect to the Process Server

           

          private static TaskClient client  = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));

           

          Connect like this

           

          client.connect(taskServerIP,taskServerPort);

           

          And add a task like this

           

          client.addTask(task, null, addTaskResponseHandler);

           

          the task object will contain information about PotentialOweners who can be User or Groups(which is your case)

           

          Regards,

          Franklin

          • 2. Re: How to Assign Human task to a Role in jBPM5
            kirubagaran

            Hi Franklin,

             

             

            Thankyou for ur reply

             

            How can i create a group in jBPM5 and in that group how can i add some users and one more thing role and group both are same or different one

             

            im giving the roles in roles.properties file where i can give group.

             

            Regards,

             

            Kiru