SchedWf

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

Description

Schedule the execute of a workflow.

Parameters (* denotes an optional parameter)

Name

Name of the workflow, loaded as a configuration wf_Name in the database.

Ids*

A comma-separated list of object ids to pass to the workflow if workflow requires them.

Pars*

This optional parameter contains a list of name-value pairs in the format 'name1:value1;name2:value2...'; to pass to the workflow. For example, 'folderId:30;cmd:up' defines a 'folderId' parameter with value 30 and a 'cmd' parameter with value 'up'.

Priority*

An integer value that designates the task priority.

At*

A properly constructed date-time condition that specifies when to execute the workflow, e.g., 2009-12-04T12:04:00Z for GMT time, or 2009-12-04T01:04:00 for local system time. When this parameter is not specified, the task is scheduled for immediate execution.

Profile*

The name of a profile as defined in the Back4 configuration.

Examples

Schedule the execution of the workflow named CreateVideoPreview for the object with id=28116 at the time specified.

http://demo.teradp.com/Tark4/do.ashx?Cmd=schedwf&name=createVideoPreview&ids=82914&at=2010-01-19T21:53:30.457Z

Succesfully scheduled task. The new task id is 61971

The scheduled workflow can be seen executing the command: 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="ObjsWFTaskDesc" Id="61971"

  userId="4" time="2010-01-19T21:53:30.457Z"

  priority="0" type="ObjsWF" objectId="31"

  profile="" numRetries="0" ids="82914" />

</TaskList>