# Confirm receipt and take the file

> Tells the sender right away that the email arrived, and whether it starts now or waits for an earlier update of the same file to finish. Place it first in a flow that declares file locks; a waiting run starts by itself, in order, and says so in the same email thread.

Source: https://docs.go-lumen.ai/de/reference/steps/acknowledge

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Schrittname** | `acknowledge` |
| **Ressource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palettengruppe, Kategorie** | notify, messages |
| **Credits** | **0** Credits bei jedem Erfolg |
| **Externe Wirkung** | ja: 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 bereitstellen** | `mail` |

## Eingaben

| Eigenschaft | Wert |
| --- | --- |
| **Braucht** | nichts |
| **Liefert** | `fields` |
| **Arbeitet auf** | item: 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](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#documents-and-data).

## Ausgaben

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

| Ausgabe | Typ |
| --- | --- |
| `waited` | boolean |
| `lockWait` | boolean |
| `waitingFor` | string |
| `file` | string |

## Einstellungen

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

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `to` | text or list |  | To is who is told; empty is the sender of the email that started the run. (maxLength 2000; maxItems 20) |
| `lang` | string |  | Lang is the emails' language, he or en; empty follows the email. (one of , he, en) |
| `startNotice` | boolean | `true` | StartNotice says a run that waited sends a short "starting now" in the same thread when it starts; unset is true. |
| `messages` | object |  | Wording |
| `messages.processing` | object |  | When it starts at once |
| `messages.processing.en` | string |  | English (maxLength 1000) |
| `messages.processing.he` | string |  | Hebrew (maxLength 1000) |
| `messages.waiting` | object |  | When it has to wait |
| `messages.waiting.en` | string |  | English (maxLength 1000) |
| `messages.waiting.he` | string |  | Hebrew (maxLength 1000) |
| `messages.starting` | object |  | When a waiting run starts |
| `messages.starting.en` | string |  | English (maxLength 1000) |
| `messages.starting.he` | string |  | Hebrew (maxLength 1000) |

Das vollständige JSON Schema dieser Einstellungen: [acknowledge.schema.json](https://docs.go-lumen.ai/schemas/steps/acknowledge.schema.json).

## Beispiel

```yaml title="config"
lang: en
to: ops@yourcompany.co.il
```

## Im Flow verwenden

Ein Knoten, der `acknowledge` ausführt, steht unter `spec.nodes` eines [Flow](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#the-flow-as-yaml). Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: acknowledge-example
  namespace: tenant-acme
spec:
  displayName: "Confirm receipt and take the file"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [acknowledge]
  nodes:
    - id: acknowledge
      stepRef: {name: acknowledge}
      config:
        lang: en
        to: ops@yourcompany.co.il
```
