OFBiz Framework
OFBiz Framework
In: servicedef/services.xml In addition to the primary best practices tools the OFBiz
Framework also has recommendations for various secondary
createExample, updateExample, deleteExample, createExampleStatus, cre- tools such as Java Methods, FreeMarker Templates, and
ateExampleItem, updateExampleItem, deleteExampleItem BeanShell scripts that can be used when more flexibility or
createExampleFeature, updateExampleFeature, deleteExampleFeature, control are needed. The framework has touch points that
createExampleFeatureAppl, updateExampleFeatureAppl, deleteExampleFea- allow the use of other tools in any place, and combined with
the best practice and secondary tools.
tureAppl
Step 3: Implement Services As a general rule for OFBiz (and a nice principle for life in
general) the less code the better and minor compromises in
In: script/org/ofbiz/example/example/ExampleServices.xml & functionality are okay for the sake of less code (easier and
script/org/ofbiz/example/feature/ExampleFeatureServices.xml cheaper to maintain, customize, etc, etc). Often these com-
promises in functionality are really a good thing for the sake
Step 4: Define Request & View Maps of consistency, it is easier for both end-users and customizers
to understand the system as a whole.
In: webapp/example/WEB-INF/controller.xml
FindExamples, EditExample (createExample, updateExample), EditExample-
Items (createExampleItem, updateExampleItem, deleteExampleItem), EditEx-
ampleFeatureAppls (example_createExampleFeatureAppl, example_updateExampleFeatureAppl, example_deleteExampleFeatureAppl)
FindExampleFeatures, EditExampleFeature (createExampleFeature, updateExampleFeature), EditExampleFeatureExampleAppls (fea-
ture_createExampleFeatureAppl, feature_updateExampleFeatureAppl, feature_deleteExampleFeatureAppl)