Question
Eviden
NL
Last activity: 22 Dec 2020 4:20 EST
Complex Parent-Child class inheritance
Context:
We are using (multiple) parent case-type(s) which can spawn (multiple) child case-type(s). We would like te reuse rules using class inheritance. However, our current class setup poses some issues to achieve this as the child classes also use class inheritance and are grouped by subject.
Example of our class setup:
Parent:
- PEGA-MyApp-Work-Insurance
Child:
- PEGA-MyApp-Work-Car-Repair
- PEGA-MyApp-Work-Car-Maintanence
- PEGA-MyApp-Work-Car-ContactDetails
- PEGA-MyApp-Work-Motor-Repair
- PEGA-MyApp-Work-Motor-Maintanence
- PEGA-MyApp-Work-Motor-ContactDetails
- PEGA-MyApp-Work-House-Repair
- PEGA-MyApp-Work-House-Maintanence
- PEGA-MyApp-Work-House-ContactDetails
All these Repair/Maintanence/ContactDetails child case-types inherit from the higher classes such as Car/Work/House. However, all these child case-types should spawn from the Insurance parent case-type. AND these child case-types should be able to inherit from their parent, thus from PEGA-MyApp-Work-Insurance. However, how is this to be achieved?