This method adds a new State to a workflow. The new state is always added as next to last state.

Namespace: DotNetNuke.Entities.Content.Workflow
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
void AddWorkflowState(
	WorkflowState state
)
Visual Basic
Sub AddWorkflowState ( 
	state As WorkflowState
)

Remarks

This method also takes care on state reordering.

Exceptions

ExceptionCondition
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowDoesNotExistExceptionThrown when adding a state to a workflow that does not exist
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowInvalidOperationExceptionThrown when adding a state to a system workflow
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowStateNameAlreadyExistsExceptionThrown when already exist a state in the workflow with the same name

See Also