Solved Should I write a logic in a process creating a sub-page or create an object having that logic??

kishoredeka

New Member
Hi,

I was looking for some advice from solution design perspective. I have a logic to calculate something (say factorial). Should I write that logic in a Sub process and call it in main process or should I create an object and then call that object in Main process? I am looking for an answer from blueprism memory management perspective. I understand the importance of objects (reusability etc) but what decision should we take if those benefits from objects are not achieved. Is it better to write that logic in Sub process then?
 

RDawson9

Geek
Staff member
Hi,

As a rule, business logic belongs in the process and application logic in the business object. So if you're not using an application here and this is just a calculation, as you say, I would put the logic in the process.
 
Top