Class CampaignProcessFlowElement
Base class for executable campaign elements.
Inheritance
System.Object
CampaignProcessFlowElement
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.Campaign
Assembly: Terrasoft.Core.dll
Syntax
public class CampaignProcessFlowElement : ProcessFlowElement, IProcessDataSerializable
Properties
Action
The message about element execution.
Declaration
public Guid Action { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
CampaignId
Unique identifier of the associated campaign.
Declaration
public Guid CampaignId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
CampaignItemId
Unique identifier of the element of campaign.
Declaration
public Guid CampaignItemId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IsLogging
Gets value determines whether it is required to log the current element in DB.
Declaration
public override bool IsLogging { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
ProcessedAudienceAmount
Total number of processed audience.
Declaration
public int? ProcessedAudienceAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ScheduledDate
The utc time when campaign should be started.
Declaration
public DateTime? ScheduledDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
SessionId
Unique identifier of the campaign run session.
Declaration
public Guid SessionId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
UserConnection
User connection.
Declaration
public UserConnection UserConnection { get; set; }
Property Value
Type | Description |
---|---|
UserConnection |
Methods
InternalExecute(ProcessExecutingContext)
Protected method that contains all the execution logic.
Declaration
protected sealed override bool InternalExecute(ProcessExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
SafeExecute(ProcessExecutingContext)
Executes current flow element.
Declaration
protected virtual int SafeExecute(ProcessExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context | The execution context. |
Returns
Type | Description |
---|---|
System.Int32 |
|