Groovy expression
ADF Business Components utilize Groovy expressions to support scripting. Groovy is an open source, Java-like scripting language that can be stored in an XML definition file. For instance, the attribute name for the employee name Ename
can directly be used in a Groovy expression to represent the value of the Ename
attribute.
Groovy follows the same JavaBeans way of accessing the methods of an entity object that is defined in the Java class. Following are some of the ways to call the method of entity objects in a Groovy expression:
Java method |
Groovy expression |
---|---|
|
|
|
|
|
|
|
|
|
|
Setting a default value
We can set a default value for an attribute in the entity or view object by using the Groovy expression. The Default Value section for the attribute is provided with three options—Literal, Expression...