This method discard a state moving the workflow backward to the previous state. If the previous state is not the first one it send notifications to the reviewers of the previous state, otherwise send the notification to the user that submit the draft in case the workflow is in the draft state.

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

Syntax

C#
void DiscardState(
	StateTransaction stateTransaction
)
Visual Basic
Sub DiscardState ( 
	stateTransaction As StateTransaction
)

Parameters

stateTransaction
Type: DotNetNuke.Entities.Content.Workflow.Dto..::..StateTransaction
State transaction Dto

Exceptions

ExceptionCondition
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowConcurrencyExceptionThrown when the current state of the workflow is not the same of the current state specified in the StateTransaction Dto
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowSecurityExceptionThrown when the user does not have review permission on the current state
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowInvalidOperationExceptionThrown when trying to discard a workflow in the last state

See Also