This method starts a workflow for a Content Item

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

Syntax

C#
void StartWorkflow(
	int workflowId,
	int contentItemId,
	int userId
)
Visual Basic
Sub StartWorkflow ( 
	workflowId As Integer,
	contentItemId As Integer,
	userId As Integer
)

Parameters

workflowId
Type: System..::..Int32
Workflow Id
contentItemId
Type: System..::..Int32
Content item Id
userId
Type: System..::..Int32
User Id of the user that start the workflow

Exceptions

ExceptionCondition
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowInvalidOperationExceptionThrown when start a workflow on a Content Item that already has a started workflow.
System..::..ArgumentOutOfRangeExceptionWhen workflowId param is negative

See Also