Interface CustomScriptServiceLocal

    • Method Detail

      • getReverseDependencyIds

        Set<Long> getReverseDependencyIds​(Long id)
        Returns the identifiers of all scripts which depend, directly or indirectly on the script with the given id. The purpose of exposing this method in the interface is to test it
      • resolveCodeAndParameters

        Pair<String,​String> resolveCodeAndParameters​(CustomScript script,
                                                           ScriptFunction function)
        Returns the final code for the given script function, together with the final parameters, concatenated from all dependencies. The purpose of exposing this method in the interface is to test it
      • runInlineScriptAsBackgroundTask

        void runInlineScriptAsBackgroundTask​(String code)
        Creates a InlineScriptBackgroundTask with the given code, and schedules its execution. If the code returns a number, it is interpreted as the number of affected records (for logging).
      • runScript

        <T> T runScript​(String code)
        Runs the given script code directly. Will run as system, with all default bindings available