How can I fetch all the process Instance which are currently at a particular task (Service Task/Http Task).
Using RuntimeService#createActivityInstanceQuery and passing a process instance id, you can get all current activities.
Alternatively, using RuntimeService#createExecutionQuery, you can pass an activityId.