use of net.sourceforge.processdash.data.compiler.ExpressionContext in project processdash by dtuma.
the class DataRepository method evaluate.
public SimpleData evaluate(CompiledScript script, String prefix) throws ExecutionException {
ListStack stack = new ListStack();
ExpressionContext context = new SimpleExpressionContext(prefix);
script.run(stack, context);
SimpleData value = (SimpleData) stack.pop();
if (value != null)
value = (SimpleData) value.getEditable(false);
return value;
}
Aggregations