Class SequentialApproval

Workflow for sequential approval. The workflow will create tasks and waits for approval event foreach of the given approvers. If an approver does not approve a "not approved task" will be created for the person who saved page. When all approvers has approved the page will be published.

Inheritance
System.Object
SequentialApproval
Namespace: EPiServer.WorkflowFoundation.Workflows
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0
Syntax
[WorkflowPlugIn]
public sealed class SequentialApproval : ApprovalBase
Remarks

The workflow specifies the WorkflowPlugIn attribute to specify the usercontrol used to set start parameters.

By default a page published by this workflow will be published in the context of the user who saved the page. If another behaviour is wanted e.g. that the page should be published in the context of one of approvers the impersonation step in method OnPublishPage should be changed.

Constructors

SequentialApproval()

Declaration
public SequentialApproval()

Fields

ApprovalEventProperty

Declaration
public static DependencyProperty ApprovalEventProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

ApprovedProperty

Declaration
public static DependencyProperty ApprovedProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

ApproversProperty

Declaration
public static DependencyProperty ApproversProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

CurrentIndexProperty

Declaration
public static DependencyProperty CurrentIndexProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

PageArgsProperty

Declaration
public static DependencyProperty PageArgsProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

TaskDescriptionProperty

Declaration
public static DependencyProperty TaskDescriptionProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

Properties

ApprovalEvent

Gets or sets the latest approval event.

Declaration
public ApprovalEventArgs ApprovalEvent { get; set; }
Property Value
Type Description
ApprovalEventArgs

The approval event.

Approved

Gets or sets a value indicating whether this SequentialApproval is approved.

Declaration
public bool Approved { get; set; }
Property Value
Type Description
System.Boolean

true if approved; otherwise, false.

Approvers

Gets or sets the approvers.

Declaration
public List<ApproverItem> Approvers { get; set; }
Property Value
Type Description
System.Collections.Generic.List<ApproverItem>
Remarks

set as startparameter when instance is created

CurrentIndex

Gets or sets the index of the current approver.

Declaration
public int CurrentIndex { get; set; }
Property Value
Type Description
System.Int32

PageArgs

Sets PageArgs as start parameters so we can get the page for automatically created workflows

Declaration
public WorkflowPageEventArgs PageArgs { get; set; }
Property Value
Type Description
WorkflowPageEventArgs
Remarks

set as startparameter when instance is created

Gets the page link for the page version this approval is concerning

Declaration
public PageReference PageLink { get; set; }
Property Value
Type Description
PageReference

TaskDescription

Gets or sets the task description.

Declaration
public string TaskDescription { get; set; }
Property Value
Type Description
System.String
Remarks

set as startparameter when instance is created