דלג לתוכן הראשי

תהליך אחר מפעיל אותו

Triggerflow-called

מתחיל כשתהליך אחר מעביר אליו מייל בעזרת הצעד הרצת תהליך, עם אותם מסמכים, ונותן לאותו תהליך להמתין לתוצאה.

במבט אחד​

מאפייןערך
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.

פלט​

צומת מאוחר יותר מפנה לפלט כ-{nodeId.field} בטקסט, או כ-nodeId.field בתנאי.

פלטסוג
fromstring
tostring
subjectstring
bodystring
attachmentsnumber
senderVerifiedboolean
receivedAtdate
messageIdstring
parentRunstring
parentFlowstring

הגדרות​

Set under config: on the flow trigger.

הגדרהסוגברירת מחדלתיאור
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

ה-JSON Schema המלא של ההגדרות: flow-called.schema.json.

שימוש בתהליך​

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