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

  • Guidewire Home Variables (i.e. GCC variables) should be used for placeholder values in InsuranceSuite XML configuration files.

    Runtime properties or the Guidewire Settings Vault might be helpful to you instead of Variables.

    System.getenv() uses java.lang.System to directly access the value of the specified environment variable. However, it's not the documented way of accessing Guidewire Home Variables, and this functionality could change in future. So, I wouldn't do that.