Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: PASDOC-1563


Syntax


Code Block
languagenone
set anotherValue = setting("aName", aValue);
set anotherValue = setting("aName", aValue, "password");


SemanticsBy using the setting() macro, you can specify literals that are global to the xUML service and configurable. The name-value pair can be overridden on the deployed service.
If the setting macro is used to define passwords, specify a third parameter "password". Now, the value of this setting will be hidden in the administration interface.
SubstitutablesaNameString literal.  
aValue A value of base type.
Examples


Code Block
languagenone
set x = setting("My setting", "abcd");
set x = setting("My setting", y); 
set x = setting("My setting", "{{a_global_setting_variable}}");
set x = setting("My password setting", "secret", "password");