Skip to main content

Run a workflow

Run an Unstract Flow workflow from the editor to try it on real data before you deploy it. The run uses the last prepared version, and the Run tab of Tools and configuration follows it step by step.

Start a run​

  1. Prepare the workflow. Prepare a workflow covers it.
  2. Select Run in the bar above the spec.
  3. The Run tab of Tools and configuration opens and follows the run.

Before it starts, Flow checks that every connector instance is set up, for example "Please setup Gmail before running", and that the queue set on each review step is active. A queue named in the spec is checked only for being paused: when your organization has no queue of that name, the ticket goes to the default queue. A failed check names the connector, or highlights the review step in the Diagram tab.

When your organization has used its allowance for the current billing period, Run opens Allowance exceeded, and the run doesn't start.

A workflow that opens read only for you, because you can't change it, can still be run: running needs a role that can run workflows, not edit access. Members and roles lists what each role can do.

Run is available once the workflow has been prepared, and unavailable while a prepare is running. When you've changed the spec since, the button's tooltip reads "Runs the last compiled version. The spec has changed since it was prepared." Prepare again to run your changes. When a run fails, Run details covers resuming it. An archived workflow doesn't run: Run answers "Workflow is archived. Unarchive it to run it."

A run from the editor gets no inputs. A workflow that reads run inputs gets them from a webhook deployment or from a run started through the API.

Changes you make while testing, to connector instances, credentials, settings, secrets, default inputs or call limits, reach the workflow's deployments too. Deployments lists where the editor says so. A 3270 step's Key Mappings default is the exception: it reaches a deployment only through a version prepared after the change.

Follow the run​

The Run tab shows where the run is.

The tab showsMeaning
Preparing and startingThe run is queued.
RunningThe run is working through its steps. A loop shows which item it's on.
Waiting on a humanThe run is paused on a review. The ticket is in HITL.
Waiting for a call limitA tool call quota is used up. The run continues when a slot frees up or the limit is raised, and fails after 6 waits, or when the next wait would take the total past 2 hours; Call limits explains the wait. Stop cancels it.
SucceededThe run finished. What the workflow produced appears below, under Result.
Finished with failuresThe run finished, and some items failed along the way. The Runs page shows this run as Partial. What the workflow produced appears below, under Result.
FailedThe run stopped on an error, and the message appears under the status. When a connector call failed, Failed node details: names the step and gives the connector's error.
StoppedThe run was cancelled.

Result shows the value the workflow returned, as fields; Show as JSON shows it raw. A result larger than 64 KB is cut short, and the first part is shown. Rarely, Flow can't read a finished run's result. The run then ends as Succeeded (completed), and its result says unavailable with the reason. Without the result Flow can't tell whether the run carried on past failed items, so check its logs for failed steps.

Below that, the tab shows the run's values under Blackboard Variables, and the run's logs, which record each step as it starts and finishes. Blackboard Variables lists the values the workflow keeps, under the names the workflow gives them, such as a step's result, an extracted field or the item a loop is on. A review's answer shows as review_decision: whether the reviewer approved, their note and the values they corrected. With more than one review, it holds the latest answer. Each loop over a list of known size gets a row under its step's name, with its item count, how many items are done, and the values of the last 50 items, or its counts only when the run's values pass 200,000 characters in all. While a run goes, a row of over about 64 KB also shows only its counts; Run details still has its items. A value longer than about 1,200 characters is cut short, and selecting it shows the part that was kept. When the list holds one row per step, named after the step, the workflow was prepared before Flow recorded its values by name; prepare it again to see them.

The Run tab follows a run while the editor is open. Blackboard Variables fills as you follow the run, and a value can take a few seconds to appear. Flow also saves the values: after the run, Run details shows them under Variables.

Stop a run​

Running and stopping need the Owner, Admin or Member role; a Viewer can select Run, but the run doesn't start. While a run is going, Run becomes Stop. Select it to cancel the run. Until the run's ID shows, Stop reads "The run is still starting. Select Stop again in a moment." and cancels nothing. "Workflow run cancelled" or "Stopping the workflow run" means the cancel went through. If the cancel is refused or fails, Stop says why and the run keeps going. If the run had already ended, Stop says "The run had already ended." and the editor stops showing it as running. The run ends as Cancelled, and the review ticket it is waiting on is cancelled with it. A ticket from an Info only, no stop review stays open.

After the run​

  • After a run that finished or failed, Open in Runs opens the run's details in a new tab, on its workflow's runs page. Run details covers them.
  • Run again on a failed run starts a new run from the first step. Items the failed run still held in a pipeline stay with it, so the new run takes other items. Release claims in its details returns the table rows and files it held and the inbox threads it claimed but hadn't read. The threads it read come back only when you tick Also release items this run already read or finished. Run again leaves the failed run as it was; to start that run itself again, with its input values, see Run details.
  • To find out why a run failed, ask Flow Chat, for example "Why did my last run fail?". Flow Chat reads the latest Failed or Partial run: its error and up to five steps that failed. For what else Flow Chat reads, see What Flow Chat reads. It can then propose a change to the spec. See Draft with Flow Chat.
  • Anything else the run produced is wherever the spec sent it: a table, a folder, an email.
Limitations
  • After you reopen a workflow whose latest run has ended, the Run tab shows that run when its step timings are in the logs. Otherwise it reads "No run to show"; open the run from the Runs page. A run restored this way shows no Result, Open in Runs or Run again. Open it from the Runs page, or select Run to start a new run. If you ran the workflow earlier in the same browser session, the tab can still show that run's ID, Result and Open in Runs under the newer run's status; open the run from the Runs page to be sure which one you're reading.