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.492
Syntax
IWorkState AddWorkState(
	string name,
	string description
)

Parameters

name  String
Name of the workstate to create; must be unique
description  String
Description of the new workstate

Return Value

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