Run another flow and wait
run-flowcontrolefectos externosStarts 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
| Propiedad | Valor |
|---|---|
| Nombre del paso | run-flow |
| Recurso | ClusterStep (lumen.ai/v1alpha1) |
| Grupo de la paleta, categoría | control, logic |
| Créditos | 0 créditos cada vez que tiene éxito |
| Efectos externos | sí 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 aportar | nada |
Entradas
| Propiedad | Valor |
|---|---|
| Necesita | nada |
| Produce | fields |
| Trabaja sobre | item 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.
| Salida | Tipo |
|---|---|
childRun | string |
flow | string |
status | string |
outcome | string |
error | string |
timedOut | boolean |
output | object |
Ajustes
Se definen bajo config: en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como {nodeId.field}.
| Ajuste | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
flowobligatorio | string | - | 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 |
timeoutHours | integer | 168 | TimeoutHours is how long to wait for the child; unset is 168 (7 days).minimum 1; maximum 720 |
onTimeout | string | "fail" | OnTimeout is what the step does when the child is not done in time.one of fail, continue |
onFailure | string | "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
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.
- id: run-flow
stepRef: {name: run-flow}
config:
flow: price-list-update
timeoutHours: 72