ADF 12c New Groovy API to Work with View Object Methods by Andrejus Baranovskis

Posted: July 27, 2017 in JDeveloper & ADF
Tags: , , , , , , ,
image

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.

WebLogic Partner Community

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.

Blog Twitter LinkedIn Forum Wiki

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic,WebLogic Community,Oracle,OPN,Jürgen Kress

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s