Share all details related to your problem, including any error messages you may have received.
In a beanshell rule using hashmap coding beanshell rules using hashmap association, between country code - area - specific value
It’s not a suitable approach because there can be evolution and could be reusable values, is there a sample example do that using custom object?
Custom objects are the correct place to put this information. I have seen developers put data into Configuration object and also seen them embed information inappropriately into TaskDefinition objects.
Regarding your code, my concern is that this is not thread safe, you should lock the object before editing and then unlock after.
Configuration and Custom objects are essentially the same. They’re both just abstractions of Java maps (or, more specifically, sailpoint.object.Attributes). You can use them interchangeably. I generally use them as they’re named. Configuration is for stuff like setting up plugins, configuring rule behavior, etc. Custom is for stuff like looking up values by country code.
There is ONE situation where I always prefer Configuration objects: the specific Configuration object SystemConfiguration is cached in memory. You can get it in code using Configuration.getConfiguration(). This can be enormously faster than loading the same objects repeatedly. For certain processes, I prefer putting my config stuff under SystemConfiguration (via a “merge” import) and then using the cached in-memory copy.