Class AbstractScriptEvaluator


  • public abstract class AbstractScriptEvaluator
    extends Object
    Base class simplifying binding and evaluation of scriptable elements.
    Author:
    Rich Kroll, Joram Barrez, Arthur Hupka-Merle
    • Field Detail

      • language

        protected Expression language
        The language of the script e.g. an Expression evaluating to javascript, juel, groovy, etc. Mandatory.

        Must not be or evaluate to null to null.

      • script

        protected String script
        The actual payload of the script in the given language. Mandatory.

        Must not be or evaluate to null to null.

      • resultVariable

        protected Expression resultVariable
        The name of the result variable to store the result of the script evaluation in the variableScope.
    • Constructor Detail

      • AbstractScriptEvaluator

        public AbstractScriptEvaluator()
      • AbstractScriptEvaluator

        public AbstractScriptEvaluator​(Expression language,
                                       String script)