Class ApprovalEvent
Event activity for approval event.
Inheritance
Namespace: EPiServer.WorkflowFoundation.Workflows.Activities
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0Syntax
[ActivityPlugIn]
public class ApprovalEvent : HandleExternalEventActivity
Remarks
Specifies the ActivityPlugIn attribute to point out the usercontrol that should be used to communicate with activity.
Constructors
ApprovalEvent()
Initializes a new instance of the ApprovalEvent class.
Declaration
public ApprovalEvent()
Fields
ApprovedProperty
Registers Approved as a dependencyproperty so it can be databound
Declaration
public static DependencyProperty ApprovedProperty
Field Value
Type | Description |
---|---|
System.Workflow.ComponentModel.DependencyProperty |
ApproverProperty
Registers Approver as a dependencyproperty so it can be databound
Declaration
public static DependencyProperty ApproverProperty
Field Value
Type | Description |
---|---|
System.Workflow.ComponentModel.DependencyProperty |
MessageProperty
Registers Message as a dependencyproperty so it can be databound
Declaration
public static DependencyProperty MessageProperty
Field Value
Type | Description |
---|---|
System.Workflow.ComponentModel.DependencyProperty |
Properties
Approved
Gets or sets a value indicating whether this ApprovalEvent is approved.
Declaration
public bool Approved { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Approver
Gets or sets the name of the approver.
Declaration
public string Approver { get; set; }
Property Value
Type | Description |
---|---|
System.String | The approver. |
EventName
Gets the name of the raised event. This property must be set before local communication can occur.
Declaration
public override string EventName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
InterfaceType
Gets or sets the System.Workflow.Activities.ExternalDataExchangeAttribute attributed interface type of the local service whose event will be handled. This property must be set before local communication can occur.
Declaration
public override Type InterfaceType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Message
Gets or sets the message from the approver
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String | The message. |
Methods
OnInvoked(EventArgs)
Called just after the external event is received to allow subclasses to process the inbound System.EventArgs before the activity closes.
Declaration
protected override void OnInvoked(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.EventArgs that are received from the external event that was just received. |