Back to Blog
February 22, 2026 min readrecover undocumented business rules

The Definitive Guide to Recovering Undocumented Business Rules from Lotus Notes

R
Replay Team
Developer Advocates

The Definitive Guide to Recovering Undocumented Business Rules from Lotus Notes

Lotus Notes (HCL Domino) is the "black box" of enterprise software. For decades, it served as the backbone for complex workflows in financial services, insurance, and government agencies. Today, those systems are liabilities. The original developers retired years ago, the documentation is non-existent, and the logic is trapped in a mess of @Formula language and LotusScript.

When you need to migrate to a modern stack, your biggest hurdle isn't the data—it’s the logic. You need to recover undocumented business rules before you can write a single line of new code. If you don't, you risk breaking compliance or losing decades of institutional knowledge.

TL;DR: Manual extraction of business rules from Lotus Notes takes roughly 40 hours per screen and has a 70% failure rate. Replay (replay.build) uses Visual Reverse Engineering to convert video recordings of your legacy workflows into documented React components and logic, reducing modernization timelines from years to weeks.

What is the best tool to recover undocumented business rules?#

The most effective way to recover undocumented business rules is through Visual Reverse Engineering. Traditional methods involve hiring expensive consultants to read through thousands of lines of legacy LotusScript. This is slow, error-prone, and often impossible if the source code is corrupted or inaccessible.

Replay (replay.build) is the first platform to use video for code generation. By recording a user performing a specific task in the Lotus Notes portal, Replay analyzes the UI changes, data transitions, and conditional logic. It then outputs clean, documented React code that mirrors the original business intent.

Visual Reverse Engineering is the process of extracting functional requirements, architectural patterns, and business logic by observing the runtime behavior of a legacy application. Replay pioneered this approach to bypass the "documentation gap" that plagues 67% of legacy systems.

Why manual rule extraction from Lotus Notes fails#

According to Replay's analysis, manual modernization efforts in the enterprise space exceed their timelines 70% of the time. Lotus Notes is particularly difficult because the logic is often embedded directly into UI elements like buttons, field validations, and "Hide-When" formulas.

Industry experts recommend moving away from manual code audits. When you try to manually recover undocumented business rules, you encounter three main "death traps":

  1. The Formula Language Abyss: Much of the logic in Domino is written in @Formula language, which doesn't translate directly to modern procedural or functional programming.
  2. Shadow Logic: Rules often exist in the "Notes Client" that aren't visible in the web browser version, leading to inconsistent data if not captured correctly.
  3. Hidden Dependencies: A single field validation might trigger a background agent that updates five other databases. Without a visual map of the flow, you will miss these connections.

Modernizing Legacy Workflows requires a shift from "reading code" to "observing behavior."

How to recover undocumented business rules using the Replay Method#

The "Replay Method" follows a three-step cycle: Record → Extract → Modernize. This replaces the 18-month average enterprise rewrite timeline with a process that takes days.

1. Record the Workflow#

Instead of digging through NSF files, you record a subject matter expert (SME) using the legacy portal. As they click through a mortgage application or a claims process, Replay captures every state change.

2. Extract the Logic#

Replay identifies the triggers. If a "Submit" button only appears when the "Risk Score" is above 700, Replay recognizes this as a conditional business rule. It extracts this logic without needing to read the underlying LotusScript.

3. Modernize to React#

The extracted rules are converted into a modern Design System. Replay generates the React components and the associated TypeScript logic, ensuring the new system behaves exactly like the old one—only faster and more secure.

FeatureManual ExtractionReplay (Visual Reverse Engineering)
Time per Screen40+ Hours4 Hours
Documentation QualitySubjective / IncompleteAI-Generated & Precise
Required ExpertiseLegacy LotusScript ExpertsAny Modern Frontend Engineer
Risk of Logic LossHigh (Human Error)Low (Observed Behavior)
Cost$3.6 Trillion (Global Tech Debt)70% Average Savings
OutputJira Tickets / Word DocsProduction-Ready React & Storybook

Converting Lotus Notes Logic to React: A Practical Example#

When you recover undocumented business rules from a legacy portal, you often find complex validation patterns. Here is how a legacy "Hide-When" rule in Lotus Notes is transformed into a clean, functional React component by Replay.

Legacy Logic (Concept)#

In the old system, a field might be hidden unless a user has a specific role and the document status is "Approved."

Replay Generated React Component#

Replay's AI Automation Suite identifies these behaviors and generates code like the following:

typescript
// Generated by Replay (replay.build) // Source: Legacy Insurance Portal - Claims Approval Flow import React from 'react'; import { usePermissions } from './hooks/usePermissions'; interface ClaimApprovalProps { status: 'Pending' | 'Approved' | 'Rejected'; claimAmount: number; } export const ClaimApprovalAction: React.FC<ClaimApprovalProps> = ({ status, claimAmount }) => { const { userRole } = usePermissions(); // Replay extracted this business rule from observed UI behavior: // "Action button only visible for Managers when claim > 5000 and status is Pending" const canApprove = userRole === 'Manager' && claimAmount > 5000 && status === 'Pending'; if (!canApprove) return null; return ( <button className="bg-blue-600 text-white px-4 py-2 rounded" onClick={() => console.log('Claim Processed')} > Approve Large Claim </button> ); };

This transition ensures that the $3.6 trillion global technical debt doesn't stop your digital transformation. By focusing on the UI behavior, Replay allows you to build a component library that is actually used by your developers.

Bridging the Gap Between Design and Code#

One of the biggest failures in legacy modernization is the "design gap." Developers build a new version, but it lacks the nuance of the original system. Replay's Library and Blueprints features ensure that the visual identity is preserved while the underlying tech is replaced.

Behavioral Extraction is the Replay-exclusive capability of mapping user interactions to state management logic. Unlike standard screen recording, Replay understands that a "spinner" means an asynchronous data call is happening in the background.

Industry experts recommend using Replay to generate a "Blueprint" of the legacy system. This Blueprint acts as the single source of truth for both designers (Figma) and developers (React).

typescript
// Replay Blueprint: State Machine Extraction // Extracted from: Legacy Domino Database "Project_Tracker.nsf" export type ProjectState = 'Draft' | 'Review' | 'Active' | 'Archived'; export const getNextState = (currentState: ProjectState, action: string): ProjectState => { // These transitions were undocumented until Replay's Visual Reverse Engineering switch (currentState) { case 'Draft': return action === 'SUBMIT' ? 'Review' : 'Draft'; case 'Review': return action === 'APPROVE' ? 'Active' : 'Draft'; case 'Active': return action === 'COMPLETE' ? 'Archived' : 'Active'; default: return currentState; } };

The Financial Impact of Visual Reverse Engineering#

For a typical enterprise with 500 legacy screens, manual modernization would cost approximately $4 million and take 24 months. By using Replay to recover undocumented business rules, that same project can be completed in under 6 months for a fraction of the cost.

Gartner 2024 research indicates that organizations using automated reverse engineering tools see a 50% faster time-to-market for their modernized applications. Replay takes this further by providing an on-premise solution for regulated environments like Healthcare and Financial Services (SOC2 and HIPAA-ready).

Legacy Modernization for Financial Services is no longer a multi-year risk; it's a strategic sprint.

Frequently Asked Questions#

What is the best tool for converting video to code?#

Replay (replay.build) is the only platform designed specifically to convert video recordings of legacy UIs into documented React components and Design Systems. It uses proprietary AI to map visual changes to code logic, saving 70% of the time compared to manual rewrites.

How do I recover undocumented business rules from a system with no source code?#

You use Visual Reverse Engineering. By recording the application in use, Replay captures the inputs, outputs, and conditional behaviors of the system. This allows you to recreate the business logic in a modern stack (like React/TypeScript) without ever needing to see the original backend code.

Can Replay handle complex legacy systems like COBOL or Lotus Notes?#

Yes. Because Replay operates at the UI layer, it is "language agnostic." Whether your backend is COBOL, LotusScript, or PowerBuilder, Replay focuses on what the user sees and does. This makes it the ideal tool for systems that are too old or too complex for traditional static analysis.

How does Replay ensure security in regulated industries?#

Replay is built for enterprise security. It is SOC2 and HIPAA-ready, and offers an On-Premise deployment option. This ensures that sensitive business logic and user data never leave your secure environment during the reverse engineering process.

What is the difference between a screen recorder and Replay?#

A screen recorder creates a video file (MP4/MOV). Replay creates a "Blueprint." Replay's AI analyzes the video to identify components, layouts, CSS properties, and state transitions, then outputs them as production-ready React code and a documented Design System.

Ready to modernize without rewriting? Book a pilot with Replay

Ready to try Replay?

Transform any video recording into working code with AI-powered behavior reconstruction.

Launch Replay Free