Source
COBOL
An electricity company’s legacy application, with energy data records and query and extraction functions.
Customer story · modernAIze
Working with Roger Casals, Wattium used modernAIze to access the energy data needed for an energy storage pilot. The information was managed in an electricity company’s legacy COBOL application. The work integrated querying and extracting that data into a Java and Spring service accessible from the pilot application.
Wattium develops energy storage technology. This project addressed a specific pilot requirement: incorporating energy data from an electricity company that managed it through a legacy COBOL application. The work focused on adapting query and extraction functions to make that information available to the pilot application through Java and Spring.
Integration depends on details that a language change alone does not resolve. Units, decimal precision, measurement periods and the distinction between measured, estimated and aggregated values determine how the data is interpreted. The service also needs a clear contract for queries, responses and the handling of missing data or invalid requests.
The modernization path
modernAIze supports reviewing the source query and extraction functions and their interpretation rules to integrate them into a Java and Spring service.
Source
An electricity company’s legacy application, with energy data records and query and extraction functions.
Understanding & design
Data definitions, interpretation rules and access functions linked to the source logic.
Target
An energy data query and extraction service, accessible from the energy storage pilot application.
A supporting technical demonstration
The screens illustrate how modernAIze makes units and decimal precision explicit through an interval-energy calculation, from COBOL to Spring. They use synthetic material from our COBOL demonstration. They contain no real project code and do not represent the pilot’s query and extraction functions.

The example first calculates the power deficit, then converts that value over a time interval into energy. The source flow keeps the operation order and rounding point visible.
The engineering value
Connect data to its units, decimal precision, measurement periods and status as measured, estimated or aggregated values to preserve its meaning.
Separate query and extraction functions from the service interface, request validation and error handling.
Define how the service should respond to missing data, invalid requests and different measurement periods. These cases make acceptance criteria precise.
Bring the source code, its data definitions and representative queries and responses. We can establish what meaning must be preserved and how to integrate access to that data into your application.
Talk to Trazadera