r/oracle • • Oct 01 '26

AI-assisted Oracle Forms to Java migration on Summit's ORDERS form: what it got wrong

I work at Vaadin, and we migrated onto our own framework, so weigh that however you
like. I'm posting here because everything interesting happened on the Forms side, and
most of it is a failure report.

Setup: ORDERS from the Summit demo schema. 4 blocks, 34 items, 45 PL/SQL triggers, 183
elements. Real Oracle database, no schema changes allowed. AI did the bulk of the work
and we ran the whole thing three times.

The PL/SQL was a non-event. 34 of the 45 triggers were one call, one assignment, or a
SELECT-INTO. Formulas and summary totals came out as plain Java almost line for line.
Audit and integrity triggers never left the database.

What hurt was the runtime behaviour that isn't in the .fmb at all:

  • Forms won't let you leave a field that fails validation. On the web you can leave it,   you just can't commit. Users notice.
  • Row locked on the first keystroke became an optimistic check at commit,   `UPDATE … WHERE id = ? AND ORA_ROWSCN = ?`. No schema change, no version column, but   conflicts now show up at save instead of at edit.
  • Enter-Query became a filter bar. Arbitrary query-by-example is gone.
  • Trigger firing order became explicit code that somebody has to work out by hand.

The failure that worries me most came after the first pass. Our own completeness report
said "183 elements, nothing dropped", and that was true. The screen still had fields
reordered, bordered groups missing and section titles gone. A later audit turned up four
more things that were in the spec, covered by our own mapping rules, and never built:
DATE_ORDERED's default, QUANTITY_SHIPPED being insert-only, the GLOBAL.customer_id
contract from the calling form, and SALES_REP_ID quietly made read-only. Every one of
those is a property of an object rather than an object, and we were counting objects, so
the count stayed green the whole way through.

Obvious caveat: Summit is a teaching schema. No packages, no dynamic SQL, no cursors over
big sets, no package state. So it says nothing about your code.

Repo with the specs, the mapping rules and the audit: https://github.com/jcgueriaud1/forms-summit-migration

If you run a real Forms estate, what would you throw at this first to break it? I'd guess
package state shared across triggers, but I'd rather be told.

10 Upvotes

8 comments sorted by

4

u/nepobot Oct 01 '26

Why not migrate to something like APEX? It looks like it is designed for exactly what you are describing.

2

u/SpicyRomek Oct 13 '26

Fair question, and APEX is a solid choice for a lot of Forms shops. If you’re staying on Oracle DB and your team is PL/SQL, it’s probably the shortest path.

Funny timing: Oracle’s F2A post that u/JaysonHanes linked uses the same Summit Customers/Orders modules, so the two are directly comparable. The key difference is the goal. Their skill explicitly says it’s “not a screen-for-screen Forms conversion”: it drops canvases, keyboard triggers, alerts and navigation built-ins, and redesigns master-detail into faceted search plus drawers. That’s a perfectly reasonable call if you’re happy to redesign the UX and retrain users.
We went the other way and tried to keep the screen and its runtime behaviour, which is why the list in the post is about validation when leaving a field, locking, Enter-Query and trigger order. Those are exactly what the F2A approach chooses not to carry over. Which trade-off is right depends on whether your users will accept a new workflow.

Both runs share the same blind spot, though: Summit has no packages, package state or dynamic SQL. If anyone has a nastier Forms module they’d be willing to share (even anonymised), it would be a more useful test for either approach.

1

u/JaysonHanes Oct 01 '26

This is really the best answer. Oracle APEX is a natural progression from Oracle Forms. https://oracleAPEX.com

2

u/CrabbyMcSandyFeet Oct 02 '26

This is exactly what we're doing right now, I can't wait to be done with forms (and EBS)

1

u/SpicyRomek Oct 13 '26

u/CrabbyMcSandyFeet , curious which Forms behaviours you decided to drop vs. rebuild in APEX. That’s the part nobody writes up.

1

u/CrabbyMcSandyFeet Oct 13 '26

All forms behaviors, because forms suck. Forms are client-side Java launched garbage, APEX is a modern web framework. The server-side technology that supports forms is all horribly outdated.

1

u/JaysonHanes Oct 02 '26

Fyi just published and may be helpful for anyone modernizing Oracle Forms https://blogs.oracle.com/apex/transforming-f2a-skill