You can store the process instance ID inside the task data and then query that information.
Cheers
Reply to this message by going to Community
Start a new discussion in jBPM at Community