is a scripting language that can be used in the context of ADF BC. It
simplifies Java object access and method execution. Basically everything you
could access from Java you can access from Groovy. If logging is needed in your
Groovy scripting, then this can be achieved using the ADF Logger as shown below.
Just add script similar to this into the Groovy code are (e..g when working
with custom entity validators)
//log information to console.
Create a logger instance for
//the entity class – "Employees in this sample
oracle.adf.share.logging.ADFLogger LOGGER =
Statement: oldValue and newValue in Validdator
Statement: All salaries in Department
Statement: current budget "+(100000 -
(Departments1.Employees1.sum('Salary')+ newValue) + oldValue ))
In Java, you define a variable to hold the logger reference to then use it to
print info messages