This method move the state down to 1 position in the workflow state order

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

Syntax

C#
void MoveWorkflowStateDown(
	int stateId
)
Visual Basic
Sub MoveWorkflowStateDown ( 
	stateId As Integer
)

Parameters

stateId
Type: System..::..Int32
State Id

Remarks

This method takes care of state reordering.

Exceptions

ExceptionCondition
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowDoesNotExistExceptionThrown when moving a state that does not exist
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowInvalidOperationExceptionThrown when state cannot be moved (i.e.: is the first/last state, etc...)

See Also