Hi! Sorry for delays - had no time to look at it.
So - here is sample code - it will give you idea how to get list of active tasks for specific asset:
1
2 WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink(
3 companyId, groupId, className, classPK);
4
5 WorkflowInstance workflowInstance =
6 WorkflowInstanceManagerUtil.getWorkflowInstance(
7 companyId, workflowInstanceLink.getWorkflowInstanceId());
8
9 List<WorkflowTask> tasks = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(companyId, userId, workflowInstanceId, completed, start, end, orderByComparator);
You need to pass into getWorkflowTasksByWorkflowInstance userId = 0l and completed = false
But! Currently released version of activiti-web has problem with userId = 0l (it does not work). So, to make it working you need to wait for next release (expected after Activiti 5.7 released - second part of August) or build activiti-web by yourself from sources (hopefully it is standard web-plugin so, you can easily build it from plugins sdk)