4 Replies Latest reply on Jan 14, 2013 2:23 PM by roxy1987

    Alternate to the deprecated methods?

    roxy1987

      Hi,

       

      The following method/class are deprecated, what alternate method can be used for the same functionality?

       

      1) taskClient.getTasksAssignedAsPotentialOwner (String userId, List<String> groupIds, String language, TaskClientHandler.TaskSummaryResponseHandler responseHandler) : Need to use this for retrieving group tasks.

       

      2) commandBasedWSHumanTaskHandler.connect()

       

      Thanks.

        • 1. Re: Alternate to the deprecated methods?
          swiderski.maciej

          roxy1987 wrote:

           

          Hi,

           

          The following method/class are deprecated, what alternate method can be used for the same functionality?

           

          1) taskClient.getTasksAssignedAsPotentialOwner (String userId, List<String> groupIds, String language, TaskClientHandler.TaskSummaryResponseHandler responseHandler) : Need to use this for retrieving group tasks.

          one that is without groupIds and register UserGroupCallback that will retrieve user groups on demand when querying.

           

           

          roxy1987 wrote:

           

          2) commandBasedWSHumanTaskHandler.connect()

           

          There are dedicated handlers based on the transport, for instance for HornetQ you'll find AsyncHornetQHTWorkItemHandler, all of these handlers should have connect method.

           

          HTH

          1 of 1 people found this helpful
          • 2. Re: Alternate to the deprecated methods?
            roxy1987

            one that is without groupIds and register UserGroupCallback that will retrieve user groups on demand when querying.

             

            "There is a method which doesnt take groupids as parameter but takes a registered userGroupCallBack". Is that what you meant?  I could not find the method you are talking about. Or may be I misunderstood.

            • 3. Re: Alternate to the deprecated methods?
              swiderski.maciej

              you first register UserGroupCallback via UserGroupCallbackManager, for instance you could use DefaultUserGroupCallbackImpl that can be created based on simple java.util.Properties files that has following entries:

              userid=group1,group2,group3

               

              and then use method

              taskClient.getTasksAssignedAsPotentialOwner (String userId,  String language, TaskClientHandler.TaskSummaryResponseHandler responseHandler)

              the callback will be invoked when querying and will callect all groups for given users, for instance for userid it will find all three groups (group1, group2, group3)

               

              HTH

              • 4. Re: Alternate to the deprecated methods?
                roxy1987

                Great. Thankyou Maciej.

                1 of 1 people found this helpful