Nuclos generic implementation: generic business objects (GBO), mapping, generic rules, wrapper class, getGenericBusinessObject. |
Language: Deutsch · English
One rule for many business objects: abstract commonalities in generic business objects instead of instanceof chains.
On this page |
The generic implementation enables rules that apply to several business objects alike – e.g. sequential numbers or net/gross totals for quote, order, delivery note and invoice. Instead of instanceof chains you abstract commonalities in a generic business object (GBO).
Previously each type had to be checked individually in a rule:
|
Menu: Configuration → Rule sets → Generic implementation
A BO marked as generic (checkbox in the BO wizard) is required. Then the mapping is maintained:
Mapping of the generic implementation.
| Term | Meaning |
|---|---|
| GenericBusinessobject (GBO) | abstracts commonalities of several BOs |
| Wrapper class | generated class mapping GBO attributes to a BO |
| Implementing BO | concrete BO mapped to a GBO |
| Generic rule | rule that works with GBOs |
getGenericBusinessObject(GBOClass); GBOs may have reference fields to other GBOs.