OpenWGA 7.11 - TMLScript reference

WGA
Method :

service(serviceInterface)

On object WGA
Usage Fetches a WGA Service API object
Description

WGA Service APIs are APIs which provide specific services of the platform or installed plugins to custom TMLScript and Java code.

Service APIs are identified by a service interface which is given as argument to this method. The interface is mostly a Java interface, sometimes a Java base class. The method returns a Java service object matching the given interface (i.e implementing the Java interface or extending the base class). It also takes optionally available configuration about the service implementation to use on this server into account.

See Service APIs bundled with OpenWGA itself for possible interfaces.

Parameters

serviceInterface (Java object):

Java interface or base class which is the interface for the service to retrieve

Return value Service object, matching the given service interface (Java object)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events