C# Class Sitecore.Modules.WeBlog.Workflow.ExtendedMailAction

Uses NVelocity to parse templates in Sitecore mail action
ファイルを表示 Open project: WeTeam/WeBlog

Protected Properties

Property Type Description
velocityContext NVelocity.VelocityContext

Public Methods

Method Description
ExtendedMailAction ( ) : System
Process ( WorkflowPipelineArgs args ) : void

Processes the mail action, creates and sends the email

Protected Methods

Method Description
CreateContext ( WorkflowPipelineArgs args ) : void

Creates velocity context.

To add your own data to the context, you should override the PopulateContext method

PopulateContext ( WorkflowPipelineArgs args ) : void

Populates the velocity template context. Only the objects that were added in this method will be accessible in the mail template.

Override this to add your own data to the context

ProcessValue ( string value, System.Item item ) : string

Processes the template, expanding all known values

Private Methods

Method Description
GetNextState ( WorkflowPipelineArgs args ) : string
ProcessFieldValue ( string fieldName, System.Item item ) : string

Method Details

CreateContext() protected method

Creates velocity context.
To add your own data to the context, you should override the PopulateContext method
protected CreateContext ( WorkflowPipelineArgs args ) : void
args WorkflowPipelineArgs
return void

ExtendedMailAction() public method

public ExtendedMailAction ( ) : System
return System

PopulateContext() protected method

Populates the velocity template context. Only the objects that were added in this method will be accessible in the mail template.
Override this to add your own data to the context
protected PopulateContext ( WorkflowPipelineArgs args ) : void
args WorkflowPipelineArgs
return void

Process() public method

Processes the mail action, creates and sends the email
public Process ( WorkflowPipelineArgs args ) : void
args WorkflowPipelineArgs
return void

ProcessValue() protected method

Processes the template, expanding all known values
protected ProcessValue ( string value, System.Item item ) : string
value string Template to process
item System.Item
return string

Property Details

velocityContext protected_oe property

protected VelocityContext,NVelocity velocityContext
return NVelocity.VelocityContext