Question
Bank Of America
IN
Last activity: 17 Sep 2021 10:00 EDT
usage of pyworkpage in data layer level what is best design
hi Pega community,
Pega theory says to develop assets which support max reusability and extensibility.
In my scenario i have tried to follow the following design where i see some challenge when controlling display of the fields.
we have a case (BBB-TTT-CCC-Work-MMMM-DDD-US)
in this we have created Data Layers to hold related information
pyWorkPage(BBB-TTT-CCC-Work-MMMM-DDD-US)
-->BBB(BBB-TTT-CCC-Data-BBB)
-->XXX(BBB-TTT-CCC-Data-XXX)
--->YYY(BBB-TTT-CCC-Data-ZZZ)
The Workflow UI is using the YYY Page context and rendering Data ,however the business scenario needs fields conditional visible based on certain events which are in workpage context.
so what is best approach to achieve this.
-->
1.refer the workpage in when rule of data layer.
easy but establish workpage presence at data layer making view not reusable.
2.Create a property at data layer which declaratively find out the workpage property presence and set in data layer.
complex but reference of workpage problem again comes.
3.when event happens populate a property at data layer.
moderate but maintenance issues.
4.Circumstance the section based on above property.
but if there are many events its again maintenance issue.
hi Pega community,
Pega theory says to develop assets which support max reusability and extensibility.
In my scenario i have tried to follow the following design where i see some challenge when controlling display of the fields.
we have a case (BBB-TTT-CCC-Work-MMMM-DDD-US)
in this we have created Data Layers to hold related information
pyWorkPage(BBB-TTT-CCC-Work-MMMM-DDD-US)
-->BBB(BBB-TTT-CCC-Data-BBB)
-->XXX(BBB-TTT-CCC-Data-XXX)
--->YYY(BBB-TTT-CCC-Data-ZZZ)
The Workflow UI is using the YYY Page context and rendering Data ,however the business scenario needs fields conditional visible based on certain events which are in workpage context.
so what is best approach to achieve this.
-->
1.refer the workpage in when rule of data layer.
easy but establish workpage presence at data layer making view not reusable.
2.Create a property at data layer which declaratively find out the workpage property presence and set in data layer.
complex but reference of workpage problem again comes.
3.when event happens populate a property at data layer.
moderate but maintenance issues.
4.Circumstance the section based on above property.
but if there are many events its again maintenance issue.
Any ideas or direction you can suggest.