contact@syaga.eu

Extracting business rules from legacy code: the step everyone forgets

SYAGA CONSULTING · IT consulting and audit since 2009 · SIREN 518 489 471

This is the most critical step of any modernisation, yet it is the one most frequently overlooked: before rebuilding an application, you must extract the business rules buried within its code. To forget them is to disrupt your teams' daily operations. Extracting and proving them is the only way to modernise without losing anything.

What is an embedded business rule?

Over the years, an application accumulates business decisions that are written down nowhere but in its code: a discount calculation applied in a precise order, a check that blocks a validation until a field is filled in, a special case for one type of customer, a right reserved for certain users. These rules appear in no specification. They live in VBScript scripts, plugins and scattered formulas.

A telling example: a cascading discount must apply the second discount to the amount already reduced by the first, not to the original price. An ordering error, invisible to the eye, skews every quote. This is exactly the kind of rule that a from-scratch rewrite forgets.

Why almost everyone skips this step

Extracting business rules is long, demanding and unspectacular work. It is easier to sell an automatic conversion that translates code line by line, or to start again from a blank page by redefining everything with the client. Either way, the accumulated knowledge is skipped, and then rediscovered painfully in production.

That is why SYAGA sets a simple rule: we do not write a single line of new code before we have understood and proven the existing application.

How SYAGA extracts and proves rules

The approach relies on open, standard frameworks, not on a proprietary format:

  • Reverse engineering of the application to find where the rules live (scripts, plugins, formulas).
  • Formalisation using OMG frameworks: DMN for decisions and calculations, BPMN 2.0 for workflows, SBVR for business vocabulary. These are recognised, readable and long-lasting standards.
  • Traceability: every rule stays linked to its source in the original code. Nothing is guessed; everything is verifiable.
  • A test suite built from real, anonymised cases: we replay your own records to prove that the extracted rules produce the same result as the original application.
On a real business application, SYAGA catalogued in the region of 10,000 business rules from around 924 extracted plugins, each one traced back to its source. These figures are given as an order of magnitude, for information only, without ever naming the client or exposing its data.

What you get out of it

Beyond the modernisation itself, extracting the business rules leaves you with a lasting asset:

  • A readable catalogue of your business logic, independent of the code, that your teams and future providers can understand.
  • A safety net: the test suite ensures that no future change breaks an existing rule.
  • The end of a dependency on the one person who knew the application: the knowledge is finally written down and proven.

This is the step that turns old, opaque code into a system that is understood, documented and under control: the foundation for everything else.

Protect your business rules

A short conversation is enough to tell you where your business rules live and how to extract them before they are lost. No obligation.

Speak to an expert