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

Uses NVelocity to parse templates in Sitecore mail action
Afficher le fichier Open project: WeTeam/WeBlog

Protected Properties

Свойство Type Description
velocityContext NVelocity.VelocityContext

Méthodes publiques

Méthode Description
ExtendedMailAction ( ) : System
Process ( WorkflowPipelineArgs args ) : void

Processes the mail action, creates and sends the email

Méthodes protégées

Méthode 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

Méthode Description
GetNextState ( WorkflowPipelineArgs args ) : string
ProcessFieldValue ( string fieldName, System.Item item ) : string

Method Details

CreateContext() protected méthode

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

ExtendedMailAction() public méthode

public ExtendedMailAction ( ) : System
Résultat System

PopulateContext() protected méthode

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
Résultat void

Process() public méthode

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

ProcessValue() protected méthode

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

Property Details

velocityContext protected_oe property

protected VelocityContext,NVelocity velocityContext
Résultat NVelocity.VelocityContext