Class AbstractScriptEvaluator

java.lang.Object
org.flowable.common.engine.impl.scripting.AbstractScriptEvaluator
Direct Known Subclasses:
ScriptExecutionListener, ScriptHttpHandler, ScriptTaskListener, ScriptTypeExecutionListener, ScriptTypeTaskListener

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

    • 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 Details

    • AbstractScriptEvaluator

      public AbstractScriptEvaluator()
    • AbstractScriptEvaluator

      public AbstractScriptEvaluator(Expression language, String script)
  • Method Details