cloudguidewire

How to use GCC Variable in pcf or gosu code in guidewire cloud


Just want to know if we can use GCC variable in pcf or gosu class . I know we can use GCC variable reference in config.xml like "${GCC-variableName}". But want to check same can be used in any of pcf file or gosu. Codr


Solution

  • You can access variables using System.getenv()
    For example, I have a variable called MOCKING_TYPE, and I can get the value using System.getEnv("MOCKING_TYPE")