Documentation
¶
Overview ¶
Package notification sends user notifications through the notifier and copies them to developer-notifications, in the format process-incident-api uses today (INC-02), and is the task type "notification" of processes (Task, BPMN-09).
Index ¶
Constants ¶
const DuplicateWindowInput = "ignore_duplicates_within_seconds"
DuplicateWindowInput names the optional input with the seconds within which the notifier drops a notification the owner already has with the same title and message (SNRGY-3911). Without it every notification is delivered, as with process-deployment.
const SilentInput = "silent"
SilentInput names the optional input that delivers the notification without sound or vibration.
const TagInput = "tag"
TagInput names the optional input with a key that identifies the notification of the owner: the notifier replaces the notification it has with that tag instead of adding another one, so that a process keeps one notification up to date, e.g. the remaining time of a dryer.
const TaskType = "notification"
const Topic = "processes"
Topic of process notifications in the notifier, as before.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task is the task type "notification" (BPMN-09): it sends a notification to the owner of the instance, which process-deployment did by filling an http-connector. The notification goes into the queue of the engine that also carries the incident notifications, so that a notifier out of reach, e.g. the cloud behind the cloud-proxy of an offline gateway, delays it instead of ending the process with an incident (FOG-05). The queue retries for a day.