Web / Apache OFBiz Interview questions
What is Mini-language (simple-method) in OFBiz?
Mini-language, also called simple-method, is OFBiz's original XML-based scripting language for writing service and event implementations without full Java classes.
A typical simple-method reads like a small procedural script expressed as XML tags - <if>, <set>, <call-service> - so common CRUD-style logic can be written and reviewed without compiling Java:
<simple-method method-name="createExampleItem" short-description="Create an item"> <make-value entity-name="ExampleItem" value-field="newEntity"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> <sequenced-id sequence-name="ExampleItem" field="newEntity.exampleItemId"/> <create-value value-field="newEntity"/> </simple-method>
Newer OFBiz development favors Groovy for new services because it is more expressive and easier to debug, but Mini-language remains widely used across the existing codebase and is still fully supported.
More Related questions...