Tug Grall blogs about a new JDeveloper 10.1.3 extension for Groovy, a popular agile dynamic scripting language for Java. After installing the extension in JDeveloper 10.1.3.x, you can create and run Groovy scripts.
The next major release of Oracle ADF Business Components (11g) integrates support for using dynamic scripting languages like Groovy to simplify validation rules, calculated field expressions, and more. If your curious to check out some of the nice features Groovy offers ahead of time, have a look at the Getting Starting Guide on the codehaus.org website. With Tug's JDeveloper extension, you should be able to try any of the examples in the Guide right from inside JDeveloper.
Imagine being able to add a validation rule to an PurchaseOrder entity object that says:
- PromisedOrderDate > DateCreated
or adding a conditional expression on a PurchaseOrder validation rule that causes it to fire only when:
- Customer.AccountType != 'Gold'
or defining a calculated attribute named LineTotal in a view object with the expression:
- UnitPrice * QuantityOrdered
These are of course trivially simple examples, but they should already look a bit simpler to write then the equivalent Java code to achieve the same kind of thing today.
10:21:51 AM
|