Question4Replies175Views alexplisov Member since 2017 5 posts Alfa Bank Posted: 1 year agoLast activity: 1 year 3 months ago Closed Solved In which class should I create Declare Expression rules?Hello, TeamCan someone explain me, when to create Declare Expression in Work class and when in Data class?Cheers Case Management ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 1 year agoUjjwalShukla_GCS PEGA replied to alexplisovHI Alex, It depends on the operation that you intend to carry out. If my top level class for the property concerned is Work- then we would go for Declare Expression on work Class. For eg MyApp-Work :- Properties ->> TestPage(MyApp-Data) -> D1, D2 , D3 MyApp-Data :- Properties->> D1,D2,D3 For above structure lets say we intend to create Declare Expression on Property D3 (Defined in Data but also included in Work using TestPage Definition). In my case if I need to trigger something Declaratively based on Value of D3 with/under context Of Work Page, I would create Expression under Work Class. Other wise it would be Data Class. Regards, Ujjwal Posted: 1 year agoalexplisov Alfa Bank replied to UjjwalShukla_GCSHi, Ujjwal Thank you for response! Alright, pretty reasonable. But is it considered the best practice? It is confusing that Data Type has such declarative behavior. I considered that all process related rules should be stored inside of the Work classes and Data classes are just Data Models for our processes. Posted: 1 year agoUjjwalShukla_GCS PEGA replied to alexplisovWell yes may not be best approach to use only with Data Type, but certainly a good design when using data Class structure under pyWorkPage or aother work class page. Regards, Ujjwal Posted: 1 year agoalexplisov Alfa Bank replied to UjjwalShukla_GCSAlright, thank you.