Before the Rewrite: Recovering Business Rules in Nordic Energy Systems

A modernization decision guide for CIOs, application owners and engineering leaders

Before approving a legacy application rewrite, answer a more important question: Can your team explain—and test—the business behavior that must survive it?
For Nordic energy organizations facing poorly documented applications, that is a practical starting point. Replacing code should not mean guessing which calculations, exceptions and dependencies still matter. Nor should modernization preserve every historical behavior without questioning whether the business still needs it.
Start with one bounded application. Recover its embedded logic, map its dependencies and validate the resulting specifications with people who understand the business. Then use those specifications to test replacement software before deciding whether to migrate.
The goal is not simply newer technology. It is a defensible decision about what to preserve, what to change and what evidence is sufficient to proceed.

1. Identify a bounded application—not an entire transformation program

Choose an application with a clear business purpose, identifiable ownership and a boundary your team can investigate. A useful starting point is one where missing documentation creates a specific obstacle to change, rather than one selected solely because its technology is old.
For an energy business, consider a discrete calculation, reporting or operational-support application rather than treating a whole interconnected estate as the first unit of work. These are candidate scopes, not assumptions about what any particular organization operates.
Create a short application brief that answers:
The CIO should establish the business priority and acceptable risk. The application owner should define the boundary and secure domain expertise. Engineering leaders should determine what evidence is needed to assess the application.
Decision gate: Proceed when the scope and ownership are clear. If the application cannot yet be separated from adjacent processes, investigate those connections before committing to a rewrite.

2. Recover embedded logic before designing the replacement

Treat existing code as evidence of implemented behavior—not as an unquestionable statement of future requirements.
Recover the decisions the application makes: inputs, calculations, conditions, exceptions and outputs. Translate those findings into specifications that business and engineering teams can review together. Distinguish confirmed rules from unresolved interpretations so uncertainty remains visible.

Where Sapient Slingshot fits

Sapient Slingshot modernizes legacy systems by turning existing code into verified specifications and generating modern software with full traceability. It reads existing code and recovers embedded business rules. Its capabilities also include extracting logic, mapping dependencies and making that logic testable.
This supports a code-to-specification approach: understand the behavior already implemented before rebuilding it. Traceability matters because teams need to assess whether replacement software preserves the rules they have agreed to retain.
However, recovering a rule does not establish that it remains appropriate. Domain experts still need to determine its business meaning and whether it should survive modernization. Full traceability should support that review, not substitute for it.
For your application, ask the delivery team to demonstrate how recovered behavior, verified specifications and replacement software remain connected. Agree how reviewers will record questions, approved changes and supporting test evidence.
Decision gate: Do not treat an apparently complete specification as approval to build. First establish which rules are understood and which require business decisions.

3. Map dependencies around the application boundary

A bounded application is not necessarily an isolated one. Review what supplies its inputs, what consumes its outputs and what must happen before or after it runs.
Build a dependency map covering relevant systems, data exchanges and workflow handoffs. For each connection, identify an owner and describe the expected behavior. Include unresolved dependencies rather than hiding them behind a generic integration label.
For an energy application, use the review to ask concrete questions: Does another process rely on a particular calculation output? Must a report be available before a downstream activity begins? Does an exception trigger a manual decision? Investigate these possibilities rather than assuming the source code alone explains the entire process.
Slingshot’s dependency-mapping capabilities can support this work. The modernization decision should also include confirmation from the people responsible for connected systems and workflows.
Decision gate: If an important dependency has no owner or its behavior remains unclear, resolve it—or explicitly constrain the modernization scope—before planning migration.

4. Validate specifications with domain experts

Bring recovered specifications to the people who can explain why the application behaves as it does. Ask them to review concrete scenarios, not just approve a technical document.
For each significant rule, decide whether to:
Keep current behavior separate from intended behavior. Otherwise, a modernization team may inadvertently reproduce an unwanted exception—or remove an unusual but essential rule.
Define acceptance criteria during this review. Specify expected results, exception behavior and the evidence required for approval. Where reviewers disagree, name the decision owner and keep the issue open until it is resolved.
Decision gate: Approve the specification only when critical rules have accountable business owners and unresolved questions have an agreed disposition.

5. Test replacement software before migration

Use the validated specifications as the basis for testing. Do not rely solely on whether new software compiles, runs or resembles the previous interface.
Build tests around normal behavior, boundary conditions, exceptions and dependency interactions. Where appropriate, compare legacy and replacement outputs using controlled inputs. Investigate differences against the approved specification: a mismatch may indicate a defect, an intentional change or a misunderstanding of the original behavior.
Set test expectations according to business criticality. Ask whether every critical rule has an associated test and whether connected workflows have been exercised. Include operational acceptance criteria, such as agreed availability and performance expectations, rather than leaving them until release approval.
Decision gate: Authorize migration only when business and engineering owners accept the evidence, material discrepancies are resolved and the transition responsibilities are clear.

RWE: a non-Nordic energy reference

RWE provides a relevant energy-sector reference outside the Nordics. It used Sapient Slingshot to modernize an aging application with no documentation, restoring reliability and reducing operational risk. That application modernization was reported as taking two days.
RWE’s modernization work also included surfacing business rules, mapping dependencies and activating lifecycle automation to preserve operational stability while reducing defect risk.
The useful lesson is the sequence: expose the logic and dependencies before replacing software. The two-day result is specific to that application. It is not a forecast for another organization, nor evidence that a wider estate or migration can follow the same timeline.

Readiness checklist: are you ready to proceed?

Use this checklist with your business sponsor, application owner and engineering lead before authorizing replacement and migration.

Documentation gaps

Business criticality

Test coverage

Acceptance criteria

If a critical answer is no, make that gap the next task—not an assumption carried into the rewrite.