Class ScriptServices

    • Field Detail

      • _errorLogger

        public static org.slf4j.Logger _errorLogger
    • Constructor Detail

      • ScriptServices

        public ScriptServices()
    • Method Detail

      • CheckScript

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable CheckScript​(java.lang.String script)
                              throws java.lang.Exception
        Service Category:
        Scripting
        Service Description:
        Validate script syntax.
        Parameters:
        script - Script content - STRING
        Returns:
        result Result of compilation - INFOTABLE - Aspects {dataShape:GenericResult}
        Throws:
        java.lang.Exception - If an error occurs
      • CheckScriptWithLinesAndColumns

        @ThingworxExtensionApiMethod(since={7,3})
        public InfoTable CheckScriptWithLinesAndColumns​(java.lang.String script)
                                                 throws java.lang.Exception
        Service Category:
        Scripting
        Service Description:
        Validate script syntax, returns with the line and column number.
        Parameters:
        script - Script content - STRING
        Returns:
        result Result of compilation - INFOTABLE - Aspects {dataShape:ScriptServiceResult}
        Throws:
        java.lang.Exception - If an error occurs