AnsweredAssumed Answered

Querying tasks according to owner with Java

Question asked by sihnu on Feb 12, 2015
Heya,

I'm trying to do a query for all the tasks of certain owner. I have already managed to find tasks according to some of my custom properties but using the same logic I can't find tasks that have certain owner.So here is what I have so far:

I have QName with namespace: "http://www.alfresco.org/model/content/1.0" and prefix "cm" which I set to query as custom props. Finally I use workflowService to create a query to fetch the tasks. But I get empty result even though I am sure the service should return some tasks.

cm:owner is a property that belongs to cm:ownable aspect. Maybe that's why I can't find it because it belongs to the aspect. Are there some extra actions needed to be done? (Btw, I'm sure the tasks have that aspect).

Thanks in advance!

Outcomes