Skip to main content

Files in workflows and Human Tasks

A File is one immutable managed snapshot. A workflow carries its FileRef: ID, name, media type, size and content hash. It carries no bytes, storage address or download grant.

Bind a File​

For a File input, select an existing Document in the active workspace, or select Expression, Variable or Reference to bind an upstream File. The Document picker lists authorized active, ready workspace assets with their stored label. It stores the canonical FileRef in the node. It does not upload, rename, organize or search Files.

A required File must be present. The node's accepted media types and maximum size apply, together with the current workspace maximum File size. The runtime checks the real File metadata, workspace, lifecycle and policy before the provider runs. A FileRef copied from another workspace or edited by hand cannot bypass those checks.

Inspect execution Files​

Expand a retained node input or output. Nested Files show a recorded name, media type and size. Select Check availability, then Preview or Download. Mounting the view never reads File content. Each protected operation checks current access and lifecycle.

A File consumed from a Document or another execution can have no owner link in this execution. It stays a recorded snapshot with “File unavailable in this execution” and no preview/download action. The view does not create a link, extend retention or use another owner's route.

PNG, JPEG, WebP, PDF and plain text can have a safe preview. Other media uses download. PDF preview shows inert pages and accessible text; it does not run document scripts, forms or navigation. Close the viewer when finished. A failed preview can still leave authorized Download available. A page controlled by a service worker blocks File requests.

Use Files in Human Tasks​

In the Human Task node, add upstream attachment sources. Each expression, variable or reference must resolve to one File or a File array. Literal FileRefs are not accepted. The task freezes the ordered, deduplicated attachments when the workflow reaches the visit. Assigned users can check availability, preview or download through that task.

Enable File response to set minimum and maximum counts, accepted media types and maximum bytes per File. Counts must satisfy 0 <= minFiles <= maxFiles <= 100, with maxFiles >= 1. The workspace limit also applies.

In Inbox, upload a response File. A pending upload is not a response. Select Check upload status after validation, select an outcome, add an optional decision note, and submit. Only ready Files are submitted. The first authorized resolving response wins. The response, accepted Files, both owner links and wake commit together. A losing response keeps its unused creator lease; use Remove file or let the lease expire. Comments do not complete a task. Tasks without File response keep the normal choice and note controls.

Run once tasks belong to one durable initiator. Current blueprint:read and execution:run are required for new File metadata, preview, download, uploads and writes. After permission loss, ordinary task detail can remain readable, but that detail does not grant File access. This guide does not change workflow entry or Run once entry.

Limits, retention and recovery​

Runtime input/output validation has root depth zero, maximum depth 64, 10,000 visited values and 100 distinct FileRefs. The execution view uses the depth and visit limits for retained values. Repeated occurrences and non-File values count. Runtime overflow gives FILE_VALUE_LIMIT_EXCEEDED for depth or visits, or FILE_REFERENCE_LIMIT_EXCEEDED for distinct Files; it never accepts a partial value. The execution view preserves visible siblings and displays “Value too large to display completely” at an omitted subtree or tail.

Execution and Human Task links retain Files through the parent execution's history retention. Workspace Documents remain retained until release or workspace deletion. Upload leases last 24 hours. Without a retaining link or lease, cleanup also waits for at least 24 hours of orphan grace. Reading or consuming a File does not extend its retention. A deleted File keeps a sanitized 30-day tombstone; older workflow history is not rewritten.

Typed errors identify unavailable content, invalid metadata, expired leases, quota or access loss. Keep the task open, remove an unused upload, and retry with a ready File when the current policy and access permit it. A terminal task cannot accept a replacement decision.

V1 uses managed storage. It has no general File library, folders, sharing, malware scanning, SaaS BYOS, provider-specific File action, media editor, arbitrary TTL or legal hold.