JBoss Community

TaskSummery processInstanceId is -1

created by Odelya Holiday in jBPM - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in jBPM at Community