← The Protocol Lab — all BIOVIA Pipeline Pilot guides
Build a Pipeline Pilot Protocol
From a blank canvas to a governed, production-ready scientific workflow.
Building your first protocol feels like assembling LEGO — pick components from the library, drop them on the canvas, wire them up and run. But a protocol that's ready for a regulated pharma environment needs more thought than that. After building hundreds of protocols across regulated (GMP) manufacturing and quality-control (QC) workflows, here's how I approach protocol design from day one.
Working on the canvas
When you open a new protocol you see a blank canvas with a blue Start component. Everything connects back to this Start. Key canvas skills:
- Scroll to zoom in and out. Middle-click drag to pan. Right-click empty space for context menus.
- Components snap to a grid — use alignment tools in the toolbar to keep protocols readable. An unreadable protocol is an unmaintainable one.
- Every component has a label — double-click it to rename. Not 'Read Delimited Text' but 'Read Daily LIMS Extract'. Be specific.
- Use annotation boxes (Insert → Annotation) to explain why a section exists. That context lives in the protocol, not in your head.
- The component palette is searchable — type any keyword: 'database', 'filter', 'excel', 'python'. Do not scroll through the whole tree.
Understanding ports — how components connect
Components communicate through ports. Getting ports right is the foundation of every protocol:
- Input ports (left side, blue triangles) — where data enters. Some components have multiple input ports for different data streams.
- Output ports (right side, green triangles) — where processed data exits. Some have a main output and a 'failed records' output for records that didn't pass validation.
- Error / conditional ports (orange or red) — alternative paths for pass/fail routing, exception branches. Always handle these — an unconnected error port means silent failures in production.
- One output port can connect to multiple downstream components — records are forked (copied) to each branch. Two streams merging into one input should use an explicit Merge or Append component, not an accidental multi-wire.
A production-ready protocol structure
Every production protocol I build at Pfizer follows this spine. The details vary — the pattern does not:
- Parameter Setup — read runtime parameters, validate they are present and sensible, set defaults. This is what makes one validated protocol reusable across all environments.
- Source Validation — check that the data source exists and is accessible before loading anything. Fast-fail here saves a long wait when the database is down.
- Data Ingestion — the actual read step. Keep readers simple and parameterized. SQL queries belong in the properties panel, not as hardcoded string values.
- Business Logic — filters, transforms, joins, calculations. This is the core of the protocol. Keep each component chain doing one thing and document the purpose with annotations.
- Quality Gate — record counts, reconciliation, duplicate detection, range checks. Build these before the output step. Writing zero records to a database table is always a bug, not a success.
- Output and Alerting — write results to the destination, generate reports, trigger notifications. Confirm that the records written match the records expected.
Parameters → Source Check → Data Read → Business Logic → Quality Gate → Output / Alert
Making protocols reusable with parameters
Hard-coding values inside a protocol is the fastest route to a maintenance nightmare. Promote every environment-specific value to a protocol parameter:
- Right-click the Start component → Edit Protocol Properties to add parameters that users set at runtime.
- Reference parameters inside any component property using the notation %(ParameterName)% — for example %(RunDate)% in a SQL WHERE clause.
- Common values to parameterize: database connection names, file paths, run dates, record thresholds, site codes, email recipient lists.
- When run from the Web Port, parameters appear as a form the user fills in — no protocol editing required.
- In GxP environments (the regulated 'good practice' standards that govern pharma), parameterized protocols mean one validated pipeline serves multiple sites — a significant compliance and maintenance win.
-- Example: parameterized SQL query inside a Read Database component
-- The %(RunDate)% and %(SiteCode)% tokens are substituted at runtime
-- from the protocol's input parameters
SELECT
batch_id,
product_code,
start_time,
end_time,
status
FROM
manufacturing.batch_records
WHERE
batch_date = TO_DATE('%(RunDate)%', 'YYYY-MM-DD')
AND site_code = '%(SiteCode)%'
AND status != 'DRAFT'
ORDER BY
start_time ASCSaving, versioning and organizing
Protocols live in a folder tree on the server. Good organization here pays dividends for years:
- Create a hierarchy by system and function: /REMS/ETL/, /REMS/Reports/, /LIMS/DataLoads/, /Shared/Utilities/
- Use the built-in version history (right-click protocol → Show History) before touching a production protocol — rollback is always possible.
- Save early, save often during development. Pipeline Pilot does not auto-save.
- In regulated environments, keep a Production folder that only administrators can write to. Developers work in Development and promote through formal change control.
Tip: Before every significant change to a production protocol, right-click it and 'Save a Copy' with today's date in the name. Even with version history, a clearly named dated copy is invaluable during a 2AM production incident when you want to roll back fast.