Feature #6342
provide a simple mechanism to call into converted code
0%
History
#1 Updated by Greg Shah almost 2 years ago
From 4GL code, we have a very clean Direct Java Access approach to call "out" into arbitrary Java code.
This task is envisioned for creating a simple mechanism to call from arbitrary Java code "in" to the converted 4GL code. This should include:
- procedures
- OO 4GL classes
For procedures, we have the Progress-Compatible Top-Level Session Wrapper. I would like to see that improved to be much simpler. I think an improvement would be to provide helpers in FWD that implement correct delgated execution of a passed-in lambda. We need to consider what kinds of options need to be provided including handling parameter passing.
For OO 4GL classes, I can see a kind of factory approach which might work. We could hide the compatibility session initializaton inside the factory and return back instances of OO 4GL objects which could be used directly.
Please post ideas and issues here. Let's try to come up with approaches that make it very easy and clean to call into converted code.