This method discards the workflow no matter what is the current state. It also sends a system notification to the user that submit the workflow to let him know about the discard workflow action.

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

Syntax

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

Parameters

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

Remarks

This method does not check review permission on the current state

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

See Also