Question
4
Replies
185
Views
Alfa Bank
Posted: June 20, 2019
Last activity: June 20, 2019
Closed
Solved
In which class should I create Declare Expression rules?
Hello, Team
Can someone explain me, when to create Declare Expression in Work class and when in Data class?
Cheers
HI 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