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.WorkflowAssembly: 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
Exception | Condition |
---|---|
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowConcurrencyException | Thrown 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..::..WorkflowSecurityException | Thrown when the user does not have review permission on the current state |
DotNetNuke.Entities.Content.Workflow.Exceptions..::..WorkflowInvalidOperationException | Thrown when trying to discard a workflow in the last state |