Zum Hauptinhalt springen

Notify people in the app

Schrittnotify-in-appnotifyexterne Wirkung

Puts a notification in the bell of your team, your admins or one person. The title and the message can use the details found.

Auf einen Blick​

EigenschaftWert
Schrittnamenotify-in-app
RessourceClusterStep (lumen.ai/v1alpha1)
Palettengruppe, Kategorienotify, messages
Credits0 Credits bei jedem Erfolg
Externe Wirkungja Er ändert etwas außerhalb von Lumen, deshalb fragt ein Wiederholungsversuch vorher nach, und ein Test zeigt, was er tun würde, statt es zu tun.
Die Installation muss bereitstellennichts

Eingaben​

EigenschaftWert
Brauchtnichts
Liefertnichts
Arbeitet aufitem einem Dokument nach dem anderen

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe Dokumente und Daten.

Ausgaben​

Keine benannten Ausgaben. Spätere Knoten sehen weiterhin alles, was auf dem Pfad zuvor entstanden ist, und dieser Schritt reicht die Dokumente unverändert weiter.

Einstellungen​

Wird unter config: im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie {nodeId.field} enthalten.

EinstellungTypStandardwertBeschreibung
tostring"members"To is who is told: every member, the admins, or one person.one of members, admins, person
personstring-Pick someone from your team, or use a value found earlier.maxLength 320
titleerforderlichstring-The bold first line.minLength 1; maxLength 200
bodystring-Optional. A line or two under the title.maxLength 2000

Das vollständige JSON Schema dieser Einstellungen: notify-in-app.schema.json.

Beispiel​

config
body: 'Total: {total}'
title: New invoice from {supplier}
to: admins

Im Flow verwenden​

Ein Knoten, der notify-in-app ausführt, steht unter spec.nodes eines Flow. Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: notify-in-app-example
namespace: tenant-acme
spec:
displayName: "Notify people in the app"
triggers:
- id: start
ref: {name: manual-run}
next: [notify-in-app]
nodes:
- id: notify-in-app
stepRef: {name: notify-in-app}
config:
body: 'Total: {total}'
title: New invoice from {supplier}
to: admins