TasksLog

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:02

Description

Return contents from the Back4 task log.

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.

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.

Max*

An optional integer specifying the maximum number of tasks to return.

Types*

An optional comma-separated list of the tasks types to return. If not present, all tasks types are shown.

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.

Result*

An optional comma-separated list of the result types to return. If not present, all task results are shown.

Valid values for Result = Success, Error.

Example

Return the 2 most recent Error entries from the task log:

http://demo.teradp.com/Tark4/do.ashx?Cmd=taskslog&result=error&max=2

<?xml version="1.0" encoding="utf-8" ?>

<TaskLogList

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">

 <TaskLogEntry xsi:type="FileWatcherTaskLogEntry" Id="617972"

  time="2010-02-02T20:00:00.000Z" result="Error"

  type="FileWatcher" priority="1"

   execProc="2\\GAMMA\Tera Back4" profile=""

  queueName="AP Texts" filename="D:\Back4\AP_In\Pakistan">

     Completed file watcher task form queue AP_Texts (ERR0319)

 </TaskLogEntry>

 <TaskLogEntry xsi:type="ObjsWFTaskLogEntry" Id="617973"

  time="2010-02-02T20:00:00.000Z" result="Error"

  type="ObjsWF" priority="0" execProc="2\\GAMMA\Tera Back4"

  profile="" userId="4" configId="44" ids="423489">

     Error in the activity savePreview: Video AK9.wnv is in use.

 </TaskLogEntry>

</TaskLogList>