This method starts a workflow for a Content Item
Namespace: DotNetNuke.Entities.Content.WorkflowAssembly: 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
Exception | Condition |
---|---|
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowInvalidOperationException | Thrown when start a workflow on a Content Item that already has a started workflow. |
System..::..ArgumentOutOfRangeException | When workflowId param is negative |