Question
Cognizant Technology Solutions India Ltd.
ES
Last activity: 28 Aug 2019 10:32 EDT
Reference Division layer rule in a Framework layer rule
Hi ,
A question regarding extending the rules defined in FW layer data type in implementation layer.
Scenario:
If a application is builton a FW application and in the case a page type property is defined of class ABC-FW-XYZ-Data-Event , to show data from this page a section is also defined at the same class. Now the section uses a data page which is defined in Divion layer (ABC-Div-Int-Service) which is part of implementation application. How to specialize the section defined ABC-FW-XYZ-Data-Event to use divison layer rules?
Options :
- Save as the same section to implemetation ruleset but the class remains FW ? It doesn't sound good to me but is it recommended? If it recommended also the error is still there because the FW class can't reference a Div layer rule.
ABC-Div-Int-Service needs to extend a class in your FW layer, e.g., ABC-FW-Int-Service.
Your Data Page also needs to be defined at ABC-FW-Int-Service in an "Int" ruleset, say OrgFWInt.
When the Data Page loads you can have it change its pxObjClass to one that is defined in your implementation layer.
The clean way to do this is have that Data Page ask a "DCR" Data Page what class to change to.
Suppose the DCR Data Page is named "D_IntServiceDCR".
D_IntServiceDCR would source a Data Transform.
ABC-Div-Int-Service needs to extend a class in your FW layer, e.g., ABC-FW-Int-Service.
Your Data Page also needs to be defined at ABC-FW-Int-Service in an "Int" ruleset, say OrgFWInt.
When the Data Page loads you can have it change its pxObjClass to one that is defined in your implementation layer.
The clean way to do this is have that Data Page ask a "DCR" Data Page what class to change to.
Suppose the DCR Data Page is named "D_IntServiceDCR".
D_IntServiceDCR would source a Data Transform.
At the FW layer, that Data Transform would set pxObjClass = ABC-FW-Int-Service
In an implementation layer "Int" ruleset, say OrgDivInt, you would override that Data Transform
That override Data Transform would set pxObjClass = ABC-Div-Int-Service
Eventually you end up setting D_IntService.pxObjClass = D_IntServiceDCR.pxObjClass
This only allows your implementation layer to see that FW-layer section, plus gives you access to additional rules defined in OrgDivInt that are not defined in OrgFWInt.