Zum Hauptinhalt springen

PrepareNotificationNodeConfiguration

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

Prepares one notification mail for one preference: loads the preference, its subscription, the subscription's query and template, runs the query and compares the result with the rows the preference has already seen.

The branch ends here when the preference or its subscription is gone or undeployed, when another run of the same preference is still going, when nothing is new, and on the first run after the start of an Onwards preference, which records the current result without mailing it. In every other case the node writes the mail to :

{
"preferenceRtId": "...",
"stateRtId": "...", // the delivery state CommitNotificationState@1 updates
"subjectId": "...", // the recipient, for ResolveNotificationChannel@1
"subject": "...",
"body": "...",
"renderingType": "Html", // the template's, for SendEMail@2 BodyFormatPath
"newCount": 3,
"seenRtIds": [ "..." ], // what CommitNotificationState@1 records as sent
"skippedRtIds": [ "..." ], // rows an Onwards start recorded without sending
"queryRtId": "...", // the query the rows came from; another query is a new start
"sent": false // set by CommitNotificationState@1 once the mail went out
}
public record PrepareNotificationNodeConfiguration : TargetPathNodeConfiguration, INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IEquatable<PrepareNotificationNodeConfiguration>

Inheritance Object → NodeConfiguration → TargetPathNodeConfiguration → PrepareNotificationNodeConfiguration
Implements INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IEquatable<PrepareNotificationNodeConfiguration>

Properties​

PreferenceRtIdPath​

JSONPath of the preference's rtId; FromNotificationSchedule@1 writes it to $.preferenceRtId.

public string PreferenceRtIdPath { get; set; }

Property Value​

String

TargetPath​

public string TargetPath { get; set; }

Property Value​

String

TargetValueWriteMode​

public TargetValueWriteModes TargetValueWriteMode { get; set; }

Property Value​

TargetValueWriteModes

TargetValueKind​

public ValueKinds TargetValueKind { get; set; }

Property Value​

ValueKinds

DocumentMode​

public DocumentModes DocumentMode { get; set; }

Property Value​

DocumentModes

Description​

public string Description { get; set; }

Property Value​

String

Constructors​

PrepareNotificationNodeConfiguration()​

Initializes the node with the default sink $.notification.

public PrepareNotificationNodeConfiguration()