Zum Hauptinhalt springen

Run another flow and wait

Schrittrun-flowcontrolexterne Wirkung

Starts another flow of this workspace on the same documents and waits until it finishes. Then you can go on by what it did, such as its status or the fields it found. The other flow keeps its own settings, connections and cost.

Auf einen Blick​

EigenschaftWert
Schrittnamerun-flow
RessourceClusterStep (lumen.ai/v1alpha1)
Palettengruppe, Kategoriecontrol, logic
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
Liefertfields
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​

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

AusgabeTyp
childRunstring
flowstring
statusstring
outcomestring
errorstring
timedOutboolean
outputobject

Einstellungen​

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

EinstellungTypStandardwertBeschreibung
flowerforderlichstring-One of this workspace's flows that starts with 'Another flow starts it'. The step starts it on the same documents and waits for it to finish.minLength 1; maxLength 253
timeoutHoursinteger168TimeoutHours is how long to wait for the child; unset is 168 (7 days).minimum 1; maximum 720
onTimeoutstring"fail"OnTimeout is what the step does when the child is not done in time.one of fail, continue
onFailurestring"fail"OnFailure is what the step does when the child fails.one of fail, continue

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

Beispiel​

config
flow: price-list-update
timeoutHours: 72

Im Flow verwenden​

Ein Knoten, der run-flow 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 (spec.nodes)
- id: run-flow
stepRef: {name: run-flow}
config:
flow: price-list-update
timeoutHours: 72