Click or drag to resize

IWorkflowManagerAddWorkState Method


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: 10.6.308
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