Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In rev. 1298461 and 1298908 I have committed some a series of enhancements to the Groovy service engine and event handling has been introduced to let the system inject a base class for all the Groovy scripts. The classname is configurable in the service engine.xml file: a first version of it with an initial but already usable implementation of a the base class currently available provides an implementation of an OFBiz DSL (Domain Specific Language) for Groovy servicesbased on Groovy specialized in the implementation of business logic (services, events and data preparation scripts).

Main goal: make available to all Groovy services and events a DSL specific for OFBiz and focused on simplifying common tasks like calling other services, performing entity operations, logging and returning messages, error handling. The end result is that Groovy servicesand events can be implemented following a programming style very similar to the one provided by Minilang but leveraging all the features of a complete programming language.

...