Zum Hauptinhalt springen

Another flow starts it

Auslöserflow-called

Starts when another flow hands it an email with a Run flow step, on the same documents, and lets that flow wait for the result.

Auf einen Blick​

EigenschaftWert
Trigger nameflow-called
ResourceClusterTrigger (lumen.ai/v1alpha1)
Sourceevent
Needs a connectionno
Producesemail, file
Emitsitem
Installation must providenothing

The trigger goes under spec.triggers of a Flow. Its outputs are referenced as <triggerId>.<field>. A trigger can also carry a when condition ("Start only when") and disabled: true.

Ausgaben​

Ein späterer Knoten verweist auf eine Ausgabe als {nodeId.field} in einem Text oder als nodeId.field in einer Bedingung.

AusgabeTyp
fromstring
tostring
subjectstring
bodystring
attachmentsnumber
senderVerifiedboolean
receivedAtdate
messageIdstring
parentRunstring
parentFlowstring

Einstellungen​

Wird unter config: im Auslöser des Flows gesetzt.

EinstellungTypStandardwertBeschreibung
acceptsstring"email"Accepts is what the flow takes from the flow that calls it. Only email in this version: the caller's documents, with the email they came in.one of email

Das vollständige JSON Schema dieser Einstellungen: flow-called.schema.json.

Im Flow verwenden​

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: flow-called-example
namespace: tenant-acme
spec:
displayName: "Another flow starts it"
triggers:
- id: start
ref: {name: flow-called}
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