Skip to main content

Confirm receipt and take the file

Stepacknowledgenotifyside effects

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.

At a glance​

PropertyValue
Step nameacknowledge
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categorynotify, messages
Credits0 credits each time it succeeds
Side effectsyes It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it.
Installation must providemail

Inputs​

PropertyValue
Needsnothing
Producesfields
Works onitem one document at a time

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.

Outputs​

A later node references an output as {nodeId.field} in text, or nodeId.field in a condition.

OutputType
waitedboolean
lockWaitboolean
waitingForstring
filestring

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
totext or list-To is who is told; empty is the sender of the email that started the run.maxLength 2000; maxItems 20
langstring-Lang is the emails' language, he or en; empty follows the email.one of , he, en
startNoticebooleantrueStartNotice says a run that waited sends a short "starting now" in the same thread when it starts; unset is true.
messagesobject-Wording
messages.processingobject-When it starts at once
messages.processing.enstring-EnglishmaxLength 1000
messages.processing.hestring-HebrewmaxLength 1000
messages.waitingobject-When it has to wait
messages.waiting.enstring-EnglishmaxLength 1000
messages.waiting.hestring-HebrewmaxLength 1000
messages.startingobject-When a waiting run starts
messages.starting.enstring-EnglishmaxLength 1000
messages.starting.hestring-HebrewmaxLength 1000

The full JSON Schema of these settings: acknowledge.schema.json.

Example​

Confirm a rate email

config
lang: en
to: ops@yourcompany.co.il

Use it in a flow​

A node that runs acknowledge goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.

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