How do I get the Process Instance Id, in java, with as little queries as possible, better with one Process Instance Query, having a User Task Instance Id string?
Update: I have a Task Id that I can get a Task object with the Task Query. I want to avoid extra query for a Task object to get the execution Id.
I need to get process variables of the process instance this task is in.