IWorkflowManagerAddWorkState Method Ingeniux CMS Content Store API

Creates a new Work State. The name of the new workstate cannot match that of any existing workstates.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

IWorkState AddWorkState(
	string name,
	string description
)

Parameters

name
Type: SystemString
Name of the workstate to create; must be unique
description
Type: SystemString
Description of the new workstate

Return Value

Type: IWorkState
Newly created workstate.
Exceptions

ExceptionCondition
ArgumentNullExceptionWhen name is null, empty, or whitespace.
ArgumentExceptionWhen name matches an existing workstate's name.
Remarks

The workstate instance returned is not yet stored in the content store.

See Also

Reference