Saltar al contenido principal

Run another flow and wait

Pasorun-flowcontrolefectos externos

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.

De un vistazo​

PropiedadValor
Nombre del pasorun-flow
RecursoClusterStep (lumen.ai/v1alpha1)
Grupo de la paleta, categoríacontrol, logic
Créditos0 créditos cada vez que tiene éxito
Efectos externossí Cambia algo fuera de Lumen, así que un reintento pregunta antes y una prueba muestra lo que haría en lugar de hacerlo.
La instalación debe aportarnada

Entradas​

PropiedadValor
Necesitanada
Producefields
Trabaja sobreitem un documento cada vez

Necesita y Produce son tipos de datos (file, text, fields, email). El editor ofrece un paso solo donde lo que necesita ya está en el camino. Consulta Documentos y datos.

Salidas​

Un nodo posterior se refiere a una salida como {nodeId.field} en un texto, o nodeId.field en una condición.

SalidaTipo
childRunstring
flowstring
statusstring
outcomestring
errorstring
timedOutboolean
outputobject

Ajustes​

Se definen bajo config: en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como {nodeId.field}.

AjusteTipoValor por defectoDescripción
flowobligatoriostring-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

El JSON Schema completo de estos ajustes: run-flow.schema.json.

Ejemplo​

config
flow: price-list-update
timeoutHours: 72

Úsalo en un flujo​

Un nodo que ejecuta run-flow va bajo spec.nodes de un Flow. Dale cualquier id y enumera en next los ids de los nodos siguientes.

flow.yaml (spec.nodes)
- id: run-flow
stepRef: {name: run-flow}
config:
flow: price-list-update
timeoutHours: 72