OBLYTECH Logo
OBLYTECH Logo
ServiceNow Flow Designer for Life Sciences and Pharma
Home / Guides, Services and Solutions / by Industry / for Life Sciences and Pharma / ServiceNow Flow Designer for Life Sciences and Pharma

ServiceNow Flow Designer for Life Sciences and Pharma

Flow Designer in a regulated life sciences setting is the tool for automating approvals, notifications and record updates, with every step left open to inspection. The page helps a quality or IT lead decide which flows need full validation, how approvals stay attributable and when a regulated step should remain a human task.

Flow Designer in Regulated Industries

A flow in a pharmaceutical or life sciences company has to prove four things to an inspector: that the process ran as designed, that every action is attributed to a person and a time, that the data it touched is intact, and that the flow changed only through controlled, tested releases. The sections below cover the FDA electronic records rule, GxP and SOX behind those demands, the processes commonly automated, designing and validating flows for compliance, how much validation a flow needs, running flows after go-live, the identity recorded on each approval, failure handling that does not leave a batch half-changed, and when a regulated step belongs outside the flow.

Regulatory Context and Traceability

Life Sciences and Pharma must demonstrate: process integrity (processes execute as designed, and unauthorized changes are prevented); audit trails (who did what, when, and why); data integrity (data is authentic and has not been altered); and change control (configuration changes are documented, approved, and tested before deployment). Flow Designer must support all four.

Key regulations: FDA 21 CFR Part 11 (electronic records and signatures), GxP guidelines (good practices for manufacturing and quality), and SOX (for pharmaceutical companies, internal controls over financial processes). These require: electronic signatures for critical decisions, audit trails showing all changes to data, role-based access control, and documented validation of system changes.

Common Life Sciences and Pharma Processes Using Flow Designer

Incident and Change Notifications: when a quality incident or change is reported, Flow Designer notifies affected teams, escalates based on severity, and tracks acknowledgment. Regulatory traceability: each notification is logged, with timestamps and who received it.

Document Review Workflows: Flow Designer routes documents (test results, batch records, SOPs) for review and approval. Compliance benefit: the flow maintains an audit trail showing who reviewed, approved, and when. Rejected documents are returned with comments, and revision cycles are tracked.

Compliance Assessments: Flow Designer automates routine compliance tasks (annual refresher training reminders, recertification verifications, supplier audits). Audit benefit: the flow documents completion dates, who completed assessments, and flagging when deadlines approach.

Inventory and Traceability: for regulated materials (active pharmaceutical ingredients, finished goods), Flow Designer tracks lot numbers, expiration dates, and custody. When a lot is moved, the flow logs the transaction, creating an audit trail required for recall investigations.

Designing Flows for Regulatory Compliance

Requirement 1: Audit Trail Everywhere. Every action in the flow must be logged: who triggered it, when, why, and the outcome. ServiceNow’s activity stream and change log capture this automatically for most operations, but verify: if the flow makes external API calls (to a lab system or supplier portal), ensure those calls are also logged in a way that can be audited later (log to an audit table, or require the external system to provide receipt confirmation).

Requirement 2: Traceability. Design flows so that every record processed can be traced back to the originating request and all downstream actions. If a product batch record is created, and that batch is then used in multiple downstream processes (testing, manufacturing, distribution), the flow should link all related records so they can be queried together. Use reference fields or links to maintain traceability.

Requirement 3: Role-Based Access Control. The flow should honor ServiceNow roles: only users with the “quality_engineer” role can approve a test result; only users with “change_authority” role can approve a process change. Design the flow to check roles and escalate if the required role is unavailable. Log role checks in the audit trail (this proves the system was preventing unauthorized actions).

Requirement 4: Electronic Signatures for Critical Steps. For highly regulated decisions (approving a batch release, authorizing a deviation, signing off on a critical test), use electronic signature capabilities. ServiceNow’s built-in signature field allows users to capture digital signatures tied to their identity. Flows should require signatures for critical steps and prevent records from moving forward without them.

Validation and Change Control for Flows

Before deploying a flow to production, validate it against regulatory requirements. Create a validation protocol: document the flow’s intended behavior, define test scenarios (happy path, error cases, edge cases), and confirm the flow performs as intended. For FDA-regulated processes, validation is a regulatory requirement.

Use change control: do not change flows directly in production. Instead: make changes in a development environment, test thoroughly, document the change (what changed, why, testing results), obtain approval from a supervisor or compliance officer, then promote to production. ServiceNow’s environments (dev, staging, prod) support this workflow. Maintain a change log documenting all flow versions, changes made, who approved, and when deployed.

Common Life Sciences and Pharma Pitfalls

Pitfall 1: automating without thinking through audit trail implications. A flow updates a critical field (batch status, test result, release decision) but does not log why the change happened. During an audit or recall, you cannot trace the change. Prevention: design flows so that all critical updates include a reason or justification recorded in a field. Use flow steps that explicitly log actions to an audit table.

Pitfall 2: bypassing approvals to speed up workflows. A flow is designed to route documents for approval, but someone manually bypasses the approval step. This violates regulatory requirements. Prevention: build approval enforcement into the flow (do not allow records to progress until approved), and log any manual bypasses so auditors can see them.

Pitfall 3: not testing error scenarios. A flow is designed to handle normal batch processing, but what happens if an external system (lab equipment, supplier system) is down? The flow must handle this gracefully: retry, escalate, or fail in a way that is auditable. Prevention: test failure scenarios in your validation protocol.

Pitfall 4: changing processes without updating the flow. Your company changes a manufacturing process (e.g., a new test procedure), but the ServiceNow flow is not updated. The system is now out of sync with the real process, creating compliance risk. Prevention: tie flow updates to process changes. When a process change is approved, the corresponding flow change is made and tested before deployment. Document the link between process change and system change.

Checklist for Life Sciences and Pharma Flows

Before deploying a flow, verify: all actions are logged to an audit trail; critical decisions require approval or electronic signature; role-based access is enforced; error scenarios are handled (do not fail silently); data traceability is maintained (related records are linked); the flow has been validated against regulatory requirements; the flow follows change control (dev -> staging -> prod); and training has been provided to users. Document your validation and keep records available for audits.

Deciding how much validation a flow needs before anyone builds it

The first decision on a regulated flow is not the trigger or the first action. It is whether the flow will touch a record that an inspector could later ask about. A flow that only tells a reviewer that a document is waiting carries little product risk. A flow that changes a batch release status carries a great deal. Quality teams often settle this with a short impact assessment written before the build starts, because the answer sets how much testing evidence the flow will need and who has to sign it off.

Write the assessment against the record the flow changes, not against the flow itself. Ask which fields move, who relies on those fields downstream, and whether any decision in the quality system reads them. A notification that only sets a due date is a different case from a notification that tells a supplier to ship. Treat the table as a working draft; your quality function owns the final classification.

Flow purpose Regulatory weight Evidence to expect Who signs off
Reminder or routing notice with no field changes Low Functional test script and a documented role check Process owner
Document routing through approval steps Medium Test script covering each approval path, rejection path and audit entry Quality assurance
Change to a batch or lot status field High Full validation protocol, negative tests, electronic signature checks and traceability review Quality and compliance together
Pull of results from an external laboratory or supplier system High where the data feeds a release decision Interface qualification, reconciliation test against source data and documented error handling Quality with the owner of the source system

A common mistake is to validate the happy path thoroughly and treat the rejection path as a formality. In a regulated flow the rejection path is where the auditor’s questions live: who stopped the record, why, who was told, and whether the record can move again without someone deliberately overriding the stop. Test those paths with the same care as the success path.

Running flows after go-live is the part most teams under-plan

Validation shows that a flow behaved as intended on the day it was tested. It says nothing about the flow once the process around it has changed, after a new supplier has been added or a reviewer has moved to another site. Operating a regulated flow means keeping evidence that it runs, still fails safely, and still belongs to someone. Many findings in this area are not about the design. They are about a flow that nobody has looked at since it went live.

A workable operating routine has four parts, and each one should leave a record:

  1. Name a business owner and a technical owner for every flow, and record both against the flow in your controlled system inventory. The developer who built the flow should not be the only person who knows what it does.
  2. Confirm the flow runs under a service account limited to the roles the flow actually needs. An administrator account running a flow makes every action look like an administrator action in the audit trail. Access design for these accounts sits within instance security and access control.
  3. Review failed, canceled and paused executions on a schedule your quality system sets. Record the review, the failures found and what was done about each one.
  4. Re-assess the flow whenever the process it supports changes, using the same impact table that governed the original build. A change to the process is a change to the flow, and it follows the same route through change control. The sector view of that route is in change enablement for life sciences.

Flow execution details can contain record values, so decide who may open them. Read access to execution history is often broader than teams expect, and it can expose data that the flow itself was careful to restrict.

Service accounts and the identity recorded on each approval

A flow that runs under a service account performs actions that no human initiated in that moment. That is normal and acceptable, but it has a consequence for approvals. Any approval step must record the identity of the person who approved, taken from the approval itself, never from the identity the flow runs as. If the flow writes the approver’s name using a value the flow sets for convenience, the audit trail will show a name that did not make the decision.

Check this during testing by asking a reviewer to approve a record and then reading the audit entry from the record, not from the flow log. If the two disagree, the design is wrong, however neatly the flow ran. The same care applies to any step that copies a user reference from one record to another. Copy the reference that was captured at the time of the action, and do not look it up again later, because the person’s current role may have changed.

Failure handling that does not leave a batch half-changed

When step three of a five-step flow fails, the record may already carry the changes from steps one and two. Retry logic makes this worse. A retry that re-runs a step which had partly succeeded can produce a second notification, a second release entry or a second copy of a document. Design each write so that a repeated run checks whether the outcome already exists before it writes again. Teams call this idempotency, and it is one of the most useful properties for a regulated integration flow. The broader governance habits that keep flows reviewable are in the guidance on Flow Designer governance.

When a failure does leave a record in an intermediate state, correct it with a new, explained entry rather than by overwriting history. The correction should say what the flow did, what failed, what was restored and who authorized the restoration. In practice that means the following kinds of state should be visible rather than silent:

  • A failed step that sets a clear error status on the record and notifies the flow owner.
  • A paused run that holds the record in its current state and waits for a named person to decide.
  • A completed compensating action that is linked to the original run so the two can be read together.

When a regulated step belongs outside the flow

Flow Designer is a good fit for routing, notifications, approvals and orchestration across records. It is a poor fit for logic that depends on judgment, for calculations that a reviewer must be able to reproduce line by line, and for any change that the quality team needs to make more often than the validation cycle allows. A flow with a dozen branches and nested conditions is hard to validate completely, and each branch you add multiplies the test cases.

Situation Flow Designer is suitable Consider a validated procedure or a reviewed code component
The step routes a record to the correct reviewer Yes Not needed
The step decides whether a batch passes a test Only where the criteria are fixed and fully documented Preferred where the decision needs professional judgment
The step calculates a result that must be reproduced Only for simple, documented arithmetic Preferred for anything with branching or rounding rules
The process changes often Workable if change control is fast and tested Keep the human step until the process settles

If a flow starts to look like a second copy of the quality procedure written in visual blocks, stop and ask whether the procedure should stay a human step for now. A missing automation is recoverable. A flow that quietly enforces the wrong rule across hundreds of records is much harder to explain to an inspector.

Frequently asked questions about regulated flows

Does a notification-only flow still need a validation record?

Usually yes, but the record can be short. If the flow sends messages and changes no regulated field, a functional test script, a documented role check and an assessment that says why the impact is low will normally satisfy a quality review. Keep the assessment with the flow so that a later change to add a field update triggers a fresh assessment.

Who should be allowed to edit a flow that already supports a released batch process?

Editing should be restricted to the technical owner, and every change should travel through the same development, test and production path as any other controlled change. The business owner approves the change but does not edit the flow directly in production. Keep an edit history that names the approver for each version.

What happens when a flow depends on a laboratory system that is offline?

The flow should not assume the answer. It should record that the call did not complete, hold the dependent record in a visible waiting state and notify whoever runs the source system and the flow owner. When the system returns, a documented retry or manual reconciliation closes the gap, and the closure is recorded against the original run.

Can a flow decide approval on behalf of a quality reviewer who is unavailable?

It should not. Escalation to a named alternate reviewer, who holds the required role and makes the decision with their own electronic signature, is the defensible pattern. Automatic approval after a timeout is often a control weakness in regulated settings, and it should be treated as a design defect rather than a convenience.

Bringing your flow list to the next review

Once the impact table is filled in for each planned flow, the flows that need full validation tend to become obvious.

Frequently asked questions

Do all flows require electronic signatures?

No. Electronic signatures are required for critical decisions that impact product quality, safety, or compliance (approving batch release, authorizing deviations, signing SOPs). Routine administrative tasks (sending notifications, updating status) do not require signatures. Identify which decisions are critical in your industry and regulatory context.

How detailed should flow documentation be?

Document: the business process the flow automates, the flow logic and key decision points, the roles involved and what each role can do, the audit trail and what is logged, and test results showing the flow meets regulatory requirements. Auditors will ask for this documentation, so be thorough.

What happens if a flow fails during a critical operation?

Design flows to fail safely: if an approval step cannot reach the required approver, escalate to a backup or flag for manual review (do not auto-approve). If an external system call fails, retry a few times, then log the failure and escalate. Never silently skip a step; always make the failure visible in the audit trail.

Talk to Oblytech

Planning, running or fixing a ServiceNow programme? Tell us where you are and we will suggest a sensible next step.

Contact us