com.ibm.tivoli.maximo.script

Interface ScriptDriver

    • Method Detail

      • runScript

        void runScript(java.lang.String name,
                       java.util.Map context)
                throws MXException,
                       java.rmi.RemoteException
        Executes the script identified by name
        Parameters:
        name - - the name of the script to execute
        context - - the execution context for the script runtime
        Throws:
        MXException
        java.rmi.RemoteException
      • canRun

        boolean canRun(java.lang.String scriptLang)
        Verify if the driver can support script language scriptLang
        Parameters:
        scriptLang - the script language
        Returns:
        true if it can run and false otherwise
      • releaseResources

        void releaseResources()
        Call back method to release driver resources before the driver gets gced. This should be used by implementations to clean up driver level cache.
      • releaseResources

        void releaseResources(java.lang.String scriptName)
        Call back method to release driver resources before the driver gets gced. This should be used by implementations to clean up driver level cache.
      • preCompileScript

        boolean preCompileScript(ScriptInfo scriptInfo)
                          throws MXException
        Precompiles the script
        Parameters:
        scriptInfo - - the ScriptInfo object for the script
        Throws:
        MXException
        java.rmi.RemoteException
      • compileScript

        void compileScript(java.lang.String scriptName,
                           java.lang.String scriptSource,
                           java.lang.String scriptLanguage)
                    throws MXException
        Throws:
        MXException
      • getSupportedEngines

        java.util.Map getSupportedEngines()
        Returns:
        list of supported engines
      • isBinaryScript

        boolean isBinaryScript()
      • parseScriptForParams

        java.util.List parseScriptForParams(byte[] scriptBytes)
                                     throws MXException
        Returns:
        parse script to return the published script params
        Throws:
        MXException
      • isVarNameMatchesKeyWord

        boolean isVarNameMatchesKeyWord(java.lang.String varName)
      • supportsPublishedParams

        boolean supportsPublishedParams()
      • allowImplicitParams

        boolean allowImplicitParams()