Activates a workflow definition, allowing documents to be submitted to the workflow. The workflow must pass all validation rules before it can be activated.
/srv.asmx/ActivateFlowDef
/srv.asmx/ActivateFlowDef?authenticationTicket=...&domainName=...&flowName=.../srv.asmx/ActivateFlowDef (form data)http://tempuri.org/ActivateFlowDef| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
domainName |
string | Yes | Name of the domain/library containing the workflow |
flowName |
string | Yes | Name of the workflow definition to activate |
<root success="true" />
<root success="false" error="[ErrorCode] Error message" />
Before a workflow can be activated, it must meet the following criteria:
GET /srv.asmx/ActivateFlowDef?authenticationTicket=abc123-def456&domainName=Engineering&flowName=DocumentReview HTTP/1.1
Host: server.example.com
POST /srv.asmx/ActivateFlowDef HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123-def456&domainName=Engineering&flowName=DocumentReview
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/ActivateFlowDef"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ActivateFlowDef xmlns="http://tempuri.org/">
<authenticationTicket>abc123-def456</authenticationTicket>
<domainName>Engineering</domainName>
<flowName>DocumentReview</flowName>
</ActivateFlowDef>
</soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="utf-8"?>
<root success="true" />
<?xml version="1.0" encoding="utf-8"?>
<root success="false" error="Workflow must have at least one step defined" />
CreateFlowDef - Create a new workflow definitionCreateFlowDef1 - Create workflow with end folderCreateFlowDef2 - Create workflow with supervisorCreateFlowDef3 - Create workflow with full optionsDeactivateFlowDef - Deactivate an active workflowGetFlowDef - Get workflow definition detailsGetDomainFlows - List all workflows in a domainAddFlowStepDef - Add a step to workflowAddFlowTaskDef - Add a task to workflow stepSubmitDocumentToFlow - Submit a document to active workflowSubmitDocumentToFlow1 - Submit with player assignmentsSubmitDocumentToFlow APIDeactivateFlowDefCommon error responses:
| Error | Description |
|---|---|
[901]Session expired or Invalid ticket |
Invalid authentication ticket |
[2730]Insufficient rights. Anonymous users cannot perform this action |
User is not authenticated |
Domain not found |
The specified domain does not exist |
Workflow definition not found |
The specified workflow does not exist in the domain |
Workflow must have at least one step defined |
Cannot activate workflow without steps |
Step [N] must have at least one task |
A workflow step is missing task definitions |
Task [N] in step [M] must have at least one player |
A task has no assigned users or groups |
Active folder path is not valid |
The workflow’s active folder path is invalid or inaccessible |
User does not have permission to activate workflows |
User lacks workflow management permissions |
Created (Inactive)
?
[ActivateFlowDef] ? Active (Ready for submissions)
?
[DeactivateFlowDef] ? Inactive (No new submissions)
?
[ActivateFlowDef] ? Active (Can be re-activated)
GetFlowDef before activating