leading on from the previous post...
We have a couple of roles in HW.
For example, the user that actually does the "approving" e.g. jverne.
Also we have the process owner e.g. cdickens.
We can leverage the Java API to process the HW tasks from both perspectives.
We just need to set the ITaskQueryService.AssignmentFilter appropriately.
//Query a list of tasks assigned to jcooper
List tasks = querySvc.queryTasks(ctx,
optionalInfo, // Payload
null, //No keywords
null, //No custom predicate
null, //No special ordering
0, //Do not page the query result