I am basically fishing for ideas here. I am a beginner, so i have a crude way of accomplishing task, but i would appreciate if someone experienced can provide some better ides.
Task - I have a custom button on Case. Clicking that custom button should change the case owner to current user. It should check the Record Type of Case, and if record type is one of the record types in group A (collection of some record types), Status of the case should be changed to "Working". If record type belongs to group B (another collection of some record types), status of the case should be changed to "In Progress", and if record type doesnt belong to either group, status should not be changed.
I am implementing it via a VF page. VF doesn't really open, it just invokes a controller which does all that. In the controller, i have managed to accomplish this in a crude way - stored case record types in sets, to see which category current case belongs to.
I am sure there is a better way to store all those collections of case record types in custom settings and use it in my apex code. No need to advise me on how to use apex to access custom setting ... that would be spoon feeding .. i will get that from developer guide. I just need some design inputs on custom setting.
Any kind of design would be helpful. Is there a way heirarichal custom settings be used? Or should i use List custom setting. Should i create one custom setting for each group of case record types? I want to make sure that in future, i dont have to modify my controller when another case record type is added to a group.
I barely started with salesforce and haven't really used custom settings. I have seen experienced developers use custom setting in clever ways.