Opening the CA Gen Meta-Model (odrpta.chm)

I am working on extracting and cleaning the CA Gen Object Repository / Public Interface documentation from odrpta.chm. This meta-model contains rich business-relevant information — including Entity Types, Attributes, Relationships, Subject Areas, Functions, Processes, Action Blocks, and more.The original documentation is quite noisy and contains many low-level, internal, and obsolete details. The goal is to filter it down to the meaningful business concepts, making it much more usable for humans and AI systems.

Status: Extraction and filtering is nearly complete. The cleaned version (Markdown + JSON) will be published soon on GitHub as an open-source project. It will be designed to be easily extended in the future.

Modernizing CA Gen Applications with AI – A Practical First Step

Many enterprises continue to rely on CA Gen for their core business systems. While these systems are reliable, finding skilled CA Gen developers is becoming harder and more expensive. At the same time, businesses want faster innovation and modern technology stacks.We conducted a small but meaningful experiment using the standard GEN SAMPLE MODEL:What we did:

  • Took one existing process (ADD_DEPARTMENT) including its entity definitions
  • Used AI to automatically generate a complete modern Java version

Business Benefits Observed:

  • Dramatic reduction in effort: What traditionally takes days or weeks of manual rewriting was completed in hours.
  • Preservation of business logic: All core rules, validations, and behaviors from the original CA Gen action block were maintained.
  • Modern technology stack: The result is a clean Spring Boot + JPA application ready for cloud, containers, and modern DevOps practices.
  • Lower future maintenance cost: Java developers are far more available and affordable than specialized CA Gen resources.
  • Reduced risk: Business rules stay consistent during modernization.
  • High reusability: The same approach can be applied to other action blocks and entities.

This exercise proves that AI can act as a powerful accelerator for CA Gen modernization — not by replacing developers, but by multiplying their productivity.

Next Phases Planned:

  1. Done — Automated translation of existing logic (completed)
  2. Next — Using AI to efficiently apply changes to existing models
  3. Following — Migrating selected components between different CA Gen models

From CA Gen Action Blocks to Clean Spring Boot Code in MinutesAI-Assisted Modernization – Real Example from GEN SAMPLE MODEL 8 6

As part of exploring AI tools to support CA Gen modernization, I extracted the Entity Type Definitions and the ADD_DEPARTMENT action block from the standard sample model and asked an AI to generate a modern Java equivalent.

CA Gen Action Block (Original)

as a text

+- ADD_DEPARTMENT
    IMPORTS: input division, input employee, import department
    EXPORTS: output employee

   +- READ required division WHERE number = input division number
   +- WHEN not found → EXIT STATE division_nf

   +- CREATE new department
   |   SET name, number
   |   ASSOCIATE with required division
   +- WHEN already exists → EXIT STATE department_ae

   +- IF input employee number != 0
   |   +- READ required employee
   |   +- WHEN successful
   |   |   ASSOCIATE employee WITH new department (is_managed_by)
   |   |   MOVE TO output employee
   |   +- WHEN not found → EXIT STATE employee_nf_dept

Modern Java Equivalent (Spring Boot 3 + JPA + Lombok)Key Entity

as a java

@Entity
@Table(name = "DEPARTMENT")
public class Department {
    @Id
    @Column(name = "NUMBER", length = 20)
    private String number;

    private String name;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "DIVISION_NUMBER", nullable = false)
    private Division division;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "MANAGER_EMPLOYEE_NUMBER")
    private Employee manager;
}

Service Method (Core Logic)

as a java

@Transactional
public AddDepartmentResponse addDepartment(AddDepartmentRequest request) {

    Division division = divisionRepository.findById(request.getDivision().getNumber())
            .orElseThrow(() -> new ExitStateException("division_nf", "Division not found"));

    Department department = Department.builder()
            .number(request.getDepartment().getNumber())
            .name(request.getDepartment().getName())
            .division(division)
            .build();

    try {
        department = departmentRepository.save(department);
    } catch (Exception e) {
        if (e.getMessage().contains("Duplicate")) {
            throw new ExitStateException("department_ae", "Department already exists");
        }
    }

    if (isValidEmployeeNumber(request.getEmployee().getNumber())) {
        Employee employee = employeeRepository.findById(request.getEmployee().getNumber())
                .orElseThrow(() -> new ExitStateException("employee_nf_dept", "Employee not found"));

        department.setManager(employee);
        employee.setDepartment(department);
    }

    return buildResponse(department);
}

Results: 

  • High fidelity mapping of Gen concepts (Entity Views, READ/CREATE/ASSOCIATE, Exit States)
  • Proper JPA relationship handling
  • Clean, testable, maintainable code using current Java standards (Java 21, Spring Boot 3)

This demonstrates that AI can understand CA Gen semantics surprisingly well.

This website uses cookies. By continuing to use this site, you accept our use of cookies.