cancel
Showing results for 
Search instead for 
Did you mean: 

Component controller being used instead of cust controllers

Former Member
0 Kudos

Hi masters

I have to maintain an application developed by another consultant. He put all the business logic, all the methods etc inside de component controller instead of create cust controllers, is it a problem ?

Accepted Solutions (1)

Accepted Solutions (1)

TusharShinde
Active Participant
0 Kudos

Hi,

It depends on How complex the Business logic. sometimes for small applications you can continue using Comp Contr but according to best practices it is always good to put Business Logic in Custom controllers.

Generally, its good to follow MVC paradigm, in that if Business Logic is complex we need to modularize Controller logic into many controllers so as to make a single controller less heavy.

Regards

Tushar

junwu
Active Contributor
0 Kudos

which best practice says that?

following is from JA310 training material.

>Before implementing a custom controller, consider carefully whether its presence will simplify or

>complicate the overall architecture of your application. Custom controllers should only be added in

>situations that will optimize or simplify the architecture of your application.

Answers (2)

Answers (2)

Former Member
0 Kudos

Custom controllers are to be used in special cases only such as when your application is huge and you want to modularize it. For example, creation of Order to Cash (Sales Order Creation) process. Now you may want to keep interface with Finance, interface for Purchase Order, Trucking/ Shipping etc seperate from each other.

Now, in such cases you may want to use seperate custom controllers handling seperate business logic/ flow.

Custom controllers are provided just to make your project more manageable.

Regards

Vineet

junwu
Active Contributor
0 Kudos

i think it is quite ok,

creation of additional custom controller is problem.