Class ParallelApproval

Workflow for parallel approval. This workflow will create tasks for all given approvers. When all or the specified minimum number of approvers has approved the page the page gets published and the workflow completes. If some approver disapproves a "not approved" task is created for person who saved/created page.

Inheritance
System.Object
ParallelApproval
Namespace: EPiServer.WorkflowFoundation.Workflows
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0
Syntax
[WorkflowPlugIn]
public sealed class ParallelApproval : 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

ParallelApproval()

Declaration
public ParallelApproval()

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

NeededApprovmentsProperty

Declaration
public static DependencyProperty NeededApprovmentsProperty
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 ParallelApproval 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 for the workflow

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

set as startparameter when instance is created

NeededApprovments

Gets or sets the minimum number of needed approvments.

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

set as startparameter when instance is created

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

The page link.

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