Class ScriptProcessor<K,​V,​R>

    • Constructor Detail

      • ScriptProcessor

        public ScriptProcessor()
        Default constructor for deserialization.
      • ScriptProcessor

        public ScriptProcessor​(String language,
                               String name,
                               Object... args)
        Create a ScriptProcessor that wraps a script written in the specified language and identified by the specified name. The specified args will be passed during execution of the script.
        Parameters:
        language - the language the script is written. Currently, only "js" (for JavaScript) is supported
        name - the name of the InvocableMap.EntryProcessor that needs to be executed
        args - the arguments to be passed to the InvocableMap.EntryProcessor