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:
task.getProcessInstanceId
it return -1.
1. Why is it -1?
2. How can I retrieve the processId otherwise?