This method adds a new workflow. It automatically add two system states: "Draft" and "Published"

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

Syntax

C#
void AddWorkflow(
	Workflow workflow
)
Visual Basic
Sub AddWorkflow ( 
	workflow As Workflow
)

Exceptions

ExceptionCondition
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowNameAlreadyExistsExceptionThrown when a workflow with the same name already exist for the portal

See Also