10 Replies Latest reply on Feb 11, 2011 3:41 AM by Odelya Holiday

    TaskSummery processInstanceId is -1

    Odelya Holiday Novice

      I need to extract process variable in Java code (not in drools).


      so I thought to extract is via TaskSummery of the client.


      I get the list of tasks like this:


      List<TaskSummary> tasks = taskClient.getTasksAssignedAsPotentialOwner(userName, "en-UK", handler);


      when I try to retrieve the process Id by:




      it return -1.


      1. Why is it -1?

      2. How can I retrieve the processId otherwise?