WorkflowCategoryDefinitionDisconnect Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Removes a workflow definition on a category

Namespace: ContentStudio.Document.Workflow.Management
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void Disconnect(
	ConnectionId connectionId,
	SessionId sessionId,
	CategoryId categoryId,
	int workflowId
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value typically is retrieved from a call to the OpenSession method
categoryId
Type: ContentStudio.DocumentCategoryId
The identifier of the category to connect to.
workflowId
Type: SystemInt32
The identifier of the Workflow definition to connect to the category. This workflow must exist and be connected to the category.
Exceptions

ExceptionCondition
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
CSInvalidSessionExceptionThe session is invalid
CSDocumentNotFoundExceptionThe workflow definition could not be found
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

WRITE CONTAINER permission on the category is required in order to succeed with the operation.
Remarks

When you disconnect a workflow definition from a category you effectively turns off workflow rules that are applied on a category. This is true only for documents that are not involved in any workflow, thus documents already on workflow are not affected until the workflow is finished.
See Also

Reference