The virtual XML used by GNQuery includes also tasks and taskLogs informations. They are indentified by an extra ‘nav:taks’and ‘nav:taskLogs’ XML element containing ‘nav:task’ and ‘nav:taskLog’ elements.
Example:
<nav:tasks handle="1">
<nav:task
id="..." userId="..." time="..." priority="..." type="..." objectId="..."
profile="..." numRetries="..." cmd="...">
<user idref="...">
<nav:refObject idref="...">
<user id="..." name="..." . . . />
</nav:refObject>
</user>
<object idref="...">
<nav:refObject idref="...">
<pubDest id="..." name="..." path="..." ... />
</nav:refObject>
</object>
</nav:task>
...
</nav:tasks>
<nav:taskLogs handle="1">
<nav:taskLog
id="..." time="..." result="..." type="..." priority="..."
execProc="..." profile="..." objectid="..." cmd="..." userId="...">
<message>
...
</message>
<user idref="...">
<nav:refObject idref="..." />
</user>
<object idref="...">
<nav:refObject idref="..." />
</object>
</nav:taskLog>
...
</nav:taskLogs>
Get all objects that have at least an associated pending task:
gn4:*[nav:tasks/nav:task]
Get all videos that had at least one associated task that failed:
gn4:video[nav:taskLogs/nav:taskLog/@result='Error']