Creates a workflow definition on the specified domain/library

Syntax

Visual Basic (declaration)
Public Function CreateFlowDef( _ 
ByVal AuthenticationTicket as String, _ ByVal DomainName as String, _ ByVal FlowName as String, _ ByVal ActiveFolderPath as String) as XmlNode

C# (declaration)
public XmlNode CreateFlowDef( 
string AuthenticationTicket, string DomainName, string FlowName, string ActiveFolderPath)

Parameters

AuthenticationTicket
    string infoRouter ticket
DomainName
    string The domain/library name
FlowName
    string The name of the workflow
ActiveFolderPath
    string The path of the active folder.

Return Value

returns xml fragment.
<response success="true" error="">
if success = "true", the workflow has been created successfully.
if success = "false", the error attribute returns the error description.

Remarks

The caller must be a library manager or system administrator

Note:
The steps and task definitions must be added to the workflow.
If not the workflow will be deactived while at first submission.