org.camunda.bpm.engine.impl.scripting.engine
Class JuelScriptEngine
java.lang.Object
javax.script.AbstractScriptEngine
org.camunda.bpm.engine.impl.scripting.engine.JuelScriptEngine
- All Implemented Interfaces:
- ScriptEngine
public class JuelScriptEngine
- extends AbstractScriptEngine
ScriptEngine that used JUEL for script evaluation and compilation (JSR-223).
Uses EL 1.1 if available, to resolve expressions. Otherwise it reverts to EL
1.0, using ExpressionFactoryResolver.
- Author:
- Frederik Heremans
| Methods inherited from class javax.script.AbstractScriptEngine |
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JuelScriptEngine
public JuelScriptEngine(ScriptEngineFactory scriptEngineFactory)
JuelScriptEngine
public JuelScriptEngine()
eval
public Object eval(String script,
ScriptContext scriptContext)
throws ScriptException
- Throws:
ScriptException
eval
public Object eval(Reader reader,
ScriptContext scriptContext)
throws ScriptException
- Throws:
ScriptException
getFactory
public ScriptEngineFactory getFactory()
createBindings
public Bindings createBindings()
print
public static void print(Object object)
importFunctions
public static void importFunctions(ScriptContext ctx,
String namespace,
Object obj)
Copyright © 2017 camunda services GmbH. All rights reserved.