TriggerHandler and Service Layer #341
-
Hey, trying to integrate the new domain structure and just ran into a problem where I am little confused.
Now I want to call the "doProcess" logic from a button on this custom object regardless of whether the specific conditions are met. Can I call the "doProcess" Method from my service layer or would I refactor this domain logic into a service layer? Appreciate the feedback |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi, @reignman5 |
Beta Was this translation helpful? Give feedback.
Hi, @reignman5
You would normally have a method on your controller which calls a service method to execute business logic.
When that business logic is handling Lists of (S)Objects than that list is warped inside a domain to perform getter, setter and filter operations on that list.