Hi Mohammed,
Why don't you configure this from the modeler? Assuming that you want to have this functionality to see on what environment the app is running, you could do this:
We have a widget called: Environment Badges. You can find it in the appstore. This will make it a lot easier for you to show badges based on what environment your app is running on.
The best solution depends on what you exactly would like to achieve.
For example, you could create a non-persistent object, which uses the constant in an attribute.