Is there a way for me to know which subprocess a task belongs to from within the Task APIs? I have a task query that uses the historicTaskInstanceQuery() to get me a list of tasks. I know I can get subprocess names (which is all I need) from the historicActivityInstanceQuery(), but I’m trying to not rewrite all my code to swap out query APIs.
The only thing I need is to figure out what the name of a subprocess is, given a Task object. The reason I want to know if there’s something within the task API (or something else) is because I’ll be looping over my tasks, and I don’t want to fire off an API query in a loop like that (I loop the tasks to pull out the task data I need to return to the UI stack).