Sets a workflow definition back to inactive state so its steps and tasks can be modified. A workflow must be inactive before steps or tasks can be added, removed, or changed.
This is the counterpart to ActivateFlowDef. The operation is idempotent: calling it on an already-inactive workflow returns success immediately without error.
/srv.asmx/DeactivateFlowDef
/srv.asmx/DeactivateFlowDef?authenticationTicket=...&domainName=...&flowName=.../srv.asmx/DeactivateFlowDef (form data)http://tempuri.org/DeactivateFlowDef| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
domainName |
string | Yes | Name of the domain/library that owns the workflow definition. |
flowName |
string | Yes | Name of the workflow definition to deactivate. |
<root success="true" />
<root success="false" error="[901] Session expired or Invalid ticket" />
The calling user must be a domain/library manager or a system administrator.
GET /srv.asmx/DeactivateFlowDef
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&domainName=Corporate
&flowName=ContractApproval
HTTP/1.1
Host: yourserver
POST /srv.asmx/DeactivateFlowDef HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&domainName=Corporate&flowName=ContractApproval
ActivateFlowDef, deactivation does not perform structural validation -“ it always succeeds as long as permissions are met.ActivateFlowDef to put the workflow back into service.| Error | Description |
|---|---|
[900] |
Authentication failed -“ invalid credentials. |
[901] |
Session expired or invalid authentication ticket. |
| Domain not found | The specified domainName does not exist. |
| Workflow not found | No workflow named flowName exists in the specified domain. |
| Permission error | Calling user is not a domain manager or system administrator. |