Wait
Flow-Knoten
waitlogicPauses the run for a while, or until a date.
Auf einen Blick
| Eigenschaft | Wert |
|---|---|
| Node field | wait (set instead of stepRef on a FlowNode) |
| Side effects | no |
A FlowNode sets exactly one of stepRef, branch, filter, forEach, wait and approval.
Einstellungen
Der Wert des Knotenfelds, mit diesen Einstellungen.
| Einstellung | Typ | Standardwert | Beschreibung |
|---|---|---|---|
for | string | - | For is how long to wait, e.g. 30m or 48h.pattern `^([0-9]+(\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$` |
until | string | - | Until is an RFC 3339 time, or a <nodeId>.<field> reference to an upstream date field. |
Das vollständige JSON Schema dieser Einstellungen: wait.schema.json.
Im Flow verwenden
flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: my-email-forward
namespace: tenant-acme
spec:
classRef: {name: email-forward}
config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: wait-example
namespace: tenant-acme
spec:
displayName: "Wait"
triggers:
- id: start
ref: {name: email-arrives}
connectorRef: {name: my-email-forward}
next: [text]
nodes:
- id: text
stepRef: {name: read-text}
next: [pause]
- id: pause
wait: {for: 48h}
next: [remind]
- id: remind
stepRef: {name: notify-in-app}
config:
to: admins
title: Two days passed
body: Has the invoice been paid?
War diese Seite hilfreich?