---
title: "Build and run scientific workflows"
summary: "Save a reusable process, bind exact inputs and review the results before continuing."
url: https://hookeui.org/docs/scientific-workflows/
status: Development docs
publication_status: development-preview
implementation_status: merged-development
availability: Merged development source. The retained research and Part 2.1 additions described here are not included in published Stable 0.5.2 or Beta 0.6.0. Packaged owner interaction, complete two-agent Study qualification and scientific validation remain separate.
source_repository: https://github.com/wpulier/HookeUI
source_revision: 225fd52fc264f977887d626a83e2c82fa51e9b8a
reviewed_date: 2026-10-28
source_paths: ["services/orchestrator/door/studies.py","services/orchestrator/door/projects.py","apps/studio/src/workflow-editor.tsx","apps/studio/src/workflow-settings.tsx","apps/studio/src/workflow-model.ts","services/orchestrator/workflow_service.py","services/orchestrator/workflows.py","docs/architecture/scientific-workflows.md"]
---

# Build and run scientific workflows

Save a reusable process, bind exact inputs and review the results before continuing.

Merged development source. The retained research and Part 2.1 additions described here are not included in published Stable 0.5.2 or Beta 0.6.0. Packaged owner interaction, complete two-agent Study qualification and scientific validation remain separate.

These guides follow development; your installed Stable or Beta may differ.

A **workflow** is a saved personal process. A **run** executes one frozen version in a Project. Editing the library does not rewrite earlier runs. Workflows and the existing [saved-tool recipes](/docs/reusable-workflows/) remain separate until you explicitly copy one into the library.

## Make the first process [#make-the-first-process]

### Open Workflows [#open-workflows]
Choose **Workflows** from the rail or app menu, or **Tools → Scientific workflows**. The personal library holds reusable definitions; **Runs in this Project** holds this Project's executions and results.
### Save the process [#save-the-process]
Choose **Measure bright regions**, give it a **Workflow name**, and inspect **Smoothing (pixels)**, **Minimum region size (pixels)** and **Connected neighbors**. Choose **Save**, or **Save new version** for an existing definition. The process finds intensity-defined regions; it does not identify verified cells.
### Bind and check the input [#bind-and-check-the-input]
Use **Refresh available inputs**, select a retained input, then **Inspect**. This first automatic image process requires an 8-bit grayscale y/x intensity image of at most one million pixels. A color image needs explicit conversion first. Inspect **Declared input**, bind every named input when present, then **Check readiness**.
### Start and follow the run [#start-and-follow-the-run]
Choose **Run workflow**. Follow the ordered attempts in **Runs in this Project**. This process identifies regions, pauses for review, measures the accepted labels and retains a CSV. Opening a run or pressing **Refresh** does not start it again.

## Review the exact result [#review-the-exact-result]

When the run awaits review, use **Inspect saved result**. To choose a corrected result, use **Find saved corrections and results → Inspect**, then **Accept this revision** or **Reject**. Accept the intended saved revision before continuing. A correction must be retained; unsaved edits are not review evidence.

Interactive steps can wait at **Open this step’s controls**. Run, inspect and save through those controls; putting the tool in a graph does not make it unattended. After completion, **Continue from this correction in a new run** retains the original run and its accepted history while creating new downstream work.


**The input determines what is measured**

The built-in bright-region step reads the original intensity image. An earlier corrected mask is not automatically its input. Inspect the attempt's exact inputs and review the labels it actually produced. Agreement between methods or a completed CSV is not biological validation.


## Connect steps or process several inputs [#connect-steps-or-process-several-inputs]

Switch between **Connected steps** and **Ordered steps** for the same definition. Use **New step type → Add step**, then **Step settings**, **Name** and **Input from**. **Saved settings → Apply step settings** uses the selected retained settings. Check all dependencies after **Remove step**.

The development preview allows 1–12 fixed steps without cycles and up to 64 exact primary inputs per run. Inputs run sequentially, with explicit review pauses; this is not an unlimited parallel batch. Named input bindings are also frozen. Select data for the destination Project rather than relying on the Project used to create the library entry. A researcher-node editor can be visible, but standalone managed report execution is refused; Study workflows also refuse recursive researcher nodes.

Use **Duplicate**, **Remove from library**, or **Removed workflows → Restore** deliberately. Removal preserves old run definitions; edits create versions rather than changing what a completed attempt used.

## Pause, stop and recover [#pause-stop-and-recover]

- **Pause** prevents subsequent steps from starting; **Resume** is explicit.
- **Stop** records a request and blocks later work. Wait for the actual outcome; closing a Tab is not cancellation.
- An **unstarted** admission needs **Resume**. Reopening or retrying an unchanged request does not restart a missing driver.
- For **interrupted** work, use **Reconcile interrupted run**. Record **Observed termination evidence → Record confirmed termination** only after observing termination, then use **Retry** when offered. Do not invent evidence to clear an uncertain attempt.
- After a lost start reply, inspect the retained run and retry the same unchanged request before submitting different inputs. Accepted steps are retained; uncertain dispatched work is not silently replayed.

Continue with a [single retained-file capability](/docs/retained-file-capabilities/), a [Study](/docs/researchers-and-studies/), or [save and export](/docs/save-and-export/).


## Run saved inputs without moving the live stage [#run-saved-inputs-without-moving-the-live-stage]

In the merged development connector, an authorized outside agent can admit a Study-bound workflow against retained inputs without switching your active Project or image. It needs creator or owner-granted **Contribute** access, an associated frozen workflow, exact saved revisions and a ready local runtime. [Read the Project and Study guide](/docs/agent-studies/).

This does not relax the older live-stage tools' creator/open-Project rules. Opening a result is a separate presentation action, and review pauses still require the actual accepted revision in Hooke.
