Workflows, versions and tags
An Unstract Flow workflow lives in a project and keeps two histories. The spec has versions, which Flow saves as you write. Each Prepare makes a compiled version, and a tag names one compiled version so a deployment can run it.
Workflow status
A project's Workflows tab shows a status for each workflow.
| Status | Meaning |
|---|---|
| Ready | The workflow has been prepared since you last saved it. |
| Draft | The spec has been saved since the last prepare, or the workflow has never been prepared. |
| Archived | The workflow is archived. It keeps its spec and run history, its deployments are paused, and it can't be run until it is unarchived. |
Selecting Save moves a workflow back to Draft. Changes autosave makes, inserting a proposal from Flow Chat, and restoring a version leave the status as it is, so a Ready workflow may hold spec changes its prepared version doesn't have. When a build finishes, the workflow is set to Ready if the spec hasn't changed since generating started, and to Draft if it has, even if it was Ready before. Any save that changed the spec in that time, autosave included, is in the next build, not this one, so the workflow stays Draft until you prepare again; Run still runs the build that finished. A save that only changed spacing, comments or how a table's columns line up counts as no change; renaming a page counts as a change. When the editor has unsaved edits, Flow saves them first, and that save moves the workflow to Draft. Unarchiving a workflow sets it to Draft. A Draft workflow that was prepared before still runs its last prepared version.
The Workflows tab lists archived workflows with the others. To archive one, select Archive in its menu there; to archive every workflow in a project, archive the project from the Projects list, as Projects describes. Archiving pauses the workflow's deployments; the API, a webhook and the editor's Run all refuse an archived workflow, and so do Resume from failure and Re-run failed iterations on a finished run. A run already in flight carries on to its end, a run waiting at a review when its ticket is answered. To use the workflow again, select Unarchive in its menu on the Workflows tab. Its deployments stay paused until you resume them.
Spec versions
About a minute after you stop typing, Flow saves the spec as a new version if anything in it changed. Blank lines added at the end don't count; select Save to keep them. If you reload the page or close the tab before then, your browser asks you to confirm, because those edits aren't saved yet. An autosaved version is marked Auto and carries a short summary of what changed. Every other version is marked Manual. That includes a restored version, an applied Flow Chat proposal and your answers to the questions Prepare asks. It also includes the saves Flow makes before a restore, before applying a proposal, and before a message or an answer to Flow Chat. Flow keeps the latest 50 Auto versions and every Manual version.
An Auto version that a prepared version was built from, or that a review ticket belongs to, is kept however old it gets.
To see them, select Version history in the workflow's menu on its project's Workflows tab, or the version number beside the workflow's name in the editor. For a project that holds one workflow, the project's menu on the Projects list has Version history too. Each version shows when it was saved, in your browser's time zone.
- Compare to latest shows what changed between that version and the current one.
- Restore this version creates a new version with that version's content, so nothing is overwritten. If the editor has unsaved edits, Flow first saves them as a version with the note "Saved before restoring a version"; if that save fails, nothing is restored. Flow removes the connector instances that the restored version doesn't mention and that hold no configuration, as Instances describes, except while the workflow has an active deployment. You can add them back from the Tools tab. Only people who can edit the workflow see Restore this version; Members and roles says who can. Anyone else, such as a Viewer or a Member with a Blueprint share of the project, can still open the versions and use Compare to latest.
When you answer the questions Prepare asks, Flow writes your answers into the spec as a new version too, with the note "Added your answers to the Prepare questions". With the Architect setting on Auto · defaults, no dialog, the note is "Added the recommended answers to the Prepare questions". When the Architect asks nothing and only fills in what the spec left out, the note is "Filled in what the spec left out, before Prepare", whichever mode the Architect setting is on.
Tags
Each prepare makes a compiled version. A tag names one compiled version, such as v1.0 or stable. Deployments can only run tagged versions, and an API request can name a tag to run that version.
- After preparing, select Tag next to the workflow's name in the editor.
- Enter a name. It can use letters, numbers, dots, underscores and hyphens, up to 100 characters.
- Select Create tag.
A build you deploy through the API without a tag gets one from Flow: v1, v2 and so on. That tag is permanent. Only one build per workflow runs at a time, so a second Prepare while one is queued or running is refused.
Tagging a version needs edit access to the workflow. The editor can't change or remove a tag, and a tag's name is unique within the workflow. Once a version is tagged, the editor shows the tag's name where the Tag button was.
When you create a deployment, you pick one tag; the list shows the 20 most recent. The deployment stays on that version's steps. The dialog says "Only the steps are locked to this version. Credentials, secrets, connector settings, default inputs, call limits and input files come from the workflow and its project as they are now." A change on the project's page, or in another workflow of the project, to the input files and secrets they share reaches the deployment's next runs. While the deployment is active, the editor's Tools and Settings tabs show a note saying so. The one exception is the Key Mappings default on a 3270 step: each version keeps the one it was prepared with. See Default inputs.