Description
Return a list of all pending tasks.
Parameters (* denotes an optional parameter)
X*
An optional string parameter specifying the name of an XSL transformation to be applied to the XML. The XSL transformation must be loaded in the database.
ObjectIds*
A comma-separated list of database ids of the object(s). When present, the command returns only the task list for the specified objects.
Types*
An optional comma-separated list of the tasks types to return. If not present, all tasks types are shown.
From*
Optional specification of starting date/time. Uses a properly constructed date-time condition, e.g., cmd=task&from=2009-12-04T12:04:00Z for GMT time, or cmd=Task&from=2009-12-04T01:04:00 to search by local system time.
To*
Optional specification of ending date/time. Uses a properly constructed date-time condition, e.g., cmd=Task&to=2009-12-04T12:04:00Z for GMT time, or cmd=task&to=2009-12-04T01:04:00 to search by local system time.
PriorityFrom*
Optional specification of Priority. When present, returns only tasks with a priority greater than or equal to the specified priority.
PriorityTo*
Optional specification of Priority. When present, returns only tasks with a priority less than or equal to the specified priority.
Examples
Return ALL pending tasks:
http://demo.teradp.com/Tark4/do.ashx?Cmd=tasks
<?xml version="1.0" encoding="utf-8" ?>
<TaskList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.teradp.com/schemas/GN4/1/Task.xsd">
<TaskDesc
xsi:type="PublishTaskDesc" Id="61972" userId="4"
time="2010-02-02T20:00:00.000Z" priority="0"
type="Publish" objectId="28606" profile=""
numRetries="0" cmd="aids:82686;ap:0;" />
<TaskDesc
xsi:type="ObjsWFTaskDesc" Id="61973" userId="4"
time="2010-02-02T20:13:00.000Z" priority="0"
type="ObjsWF" objectId="28608" profile=""
numRetries="0" ids="82689" />
</TaskList>
Return only pending tasks that are scheduled workflows:
http://demo.teradp.com/Tark4/do.ashx?Cmd=tasks&types=publish,objswf
<?xml version="1.0" encoding="utf-8" ?>
<TaskList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.teradp.com/schemas/GN4/1/Task.xsd">
<TaskDesc
xsi:type="ObjsWFTaskDesc" Id="61973" userId="4"
time="2010-02-02T20:13:00.000Z" priority="0"
type="ObjsWF" objectId="28608" profile=""
numRetries="0" ids="82689" />
</TaskList>
See also