OpenWGA 7.7 - TMLScript reference

WGA
Object:

WGA.Server

Description

This subobject provides information and services regarding the OpenWGA server runtime and installation


Retrieval Global object WGA.Server
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Properties and methods
Name Purpose
databaseKeys Returns a List of database keys of all OpenWGA databases, including apps and data sources
appKeys Returns a List of database keys of all OpenWGA applications, excluding data sources
baseURL Returns the base URL to reach this OpenWGA runtime
configFolder Returns the folder in which is used for WGA configuration
dataSourceKeys Returns a List of database keys of all OpenWGA data sources, excluding full applications
domainNames Returns the names of all OpenWGA domains
getServerOption(name) Retrieves the value of a server option
isDevelopmentMode() Check OpenWGA developer Mode
isMasterNode() Checks if the current runtime is configured as master node in a cluster
resolveSystemFile(filePath) Resolves an openwga system file on the servers file system
servletContext Returns the JavaEE servlet context of OpenWGA
version Returns the OpenWGA server version