I have interesting topic to share – new Groovy API in ADF to work with View Object, apply View Criteria, execute it. I have discovered it while experimenting with new features and functionality in ADF 12c. Starting from ADF 12.2.1, we have an option to code Groovy in separate file with extension .bcs – ADF BC Groovy Improvements in ADF 12.2.1. This makes sense especially with this new Groovy API – it is more convenient to code/maintain more complex Groovy logic in separate file. As Oracle docs say – Groovy runs faster when it is coded in separate .bcs file, probably there is no need to parse XML to extract and execute expression.
Sample application – GroovyADFApp.zip, contains Groovy implementation for Employees EO:
There is validation rule for Salary attribute coded in Groovy: Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.