Class ScriptServices

All Implemented Interfaces:
IConfigurableObject, INotScriptFriendly, ISupportsDeprecation, IDiffableObject, IAvatar, IEntityLifeCycleEvent, IPersistable, IServiceProvider, ITaggableObject, IDependencyScannableObject, IEntityDefinition, IPersistableObject<String>, IDesignTimeSecurable, IDesignTimeSecurableEntity, IRunTimeSecurable, IRunTimeSecurableEntity, ISecurable, IVisibilitySecurable, IVisibilitySecurableEntity, IAspectContainer, INamedObject, Serializable

@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class ScriptServices extends Resource
See Also:
  • Field Details

    • _errorLogger

      public static org.slf4j.Logger _errorLogger
  • Constructor Details

    • ScriptServices

      public ScriptServices()
  • Method Details

    • CheckScript

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

      @ThingworxExtensionApiMethod(since={7,3}) public InfoTable CheckScriptWithLinesAndColumns(String script) throws 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:
      Exception - If an error occurs