Deletes a task definition from the specified workflow step. The workflow definition must be inactive to delete a task definition.
/srv.asmx/DeleteFlowTaskDef
/srv.asmx/DeleteFlowTaskDef?AuthenticationTicket=...&DomainName=...&FlowName=...&StepNumber=...&TaskDefId=.../srv.asmx/DeleteFlowTaskDef (form data)http://tempuri.org/DeleteFlowTaskDef| Parameter | Type | Required | Description |
|---|---|---|---|
AuthenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
DomainName |
string | Yes | The domain/library name containing the workflow |
FlowName |
string | Yes | The workflow definition name |
StepNumber |
int | Yes | The step number containing the task definition |
TaskDefId |
int | Yes | The ID of the task definition to delete |
<response success="true" />
<response success="false" error="[ErrorCode] Error message" />
GET /srv.asmx/DeleteFlowTaskDef?AuthenticationTicket=abc123-def456&DomainName=MyLibrary&FlowName=ApprovalFlow&StepNumber=1&TaskDefId=42 HTTP/1.1
Host: server.example.com
POST /srv.asmx/DeleteFlowTaskDef HTTP/1.1
Content-Type: application/x-www-form-urlencoded
AuthenticationTicket=abc123-def456&DomainName=MyLibrary&FlowName=ApprovalFlow&StepNumber=1&TaskDefId=42
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/DeleteFlowTaskDef"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<DeleteFlowTaskDef xmlns="http://tempuri.org/">
<AuthenticationTicket>abc123-def456</AuthenticationTicket>
<DomainName>MyLibrary</DomainName>
<FlowName>ApprovalFlow</FlowName>
<StepNumber>1</StepNumber>
<TaskDefId>42</TaskDefId>
</DeleteFlowTaskDef>
</soap:Body>
</soap:Envelope>
DeactivateFlowDef.TaskDefId does not exist within the step, an error is returned.Common error responses:
| Error | Description |
|---|---|
[901]Session expired or Invalid ticket |
Invalid or expired authentication ticket |
Step not found |
The specified step number does not exist in the workflow definition |
| Workflow not found | The specified domain/flow combination does not exist |
| Workflow is active | The workflow definition is currently active and must be deactivated first |
AddFlowTaskDef - Add a task definition to a workflow stepAddFlowStepDef - Add a step to a workflow definitionDeleteFlowStepDef - Delete a step from a workflow definitionActivateFlowDef - Activate a workflow definitionDeactivateFlowDef - Deactivate a workflow definition