use of org.activiti.engine.impl.javax.el.JsonNodeELResolver in project Activiti by Activiti.
the class ExpressionManager method createElResolver.
protected ELResolver createElResolver(VariableScope variableScope) {
CompositeELResolver elResolver = new CompositeELResolver();
elResolver.add(new VariableScopeElResolver(variableScope));
if (beans != null) {
// ACT-1102: Also expose all beans in configuration when using standalone activiti, not
// in spring-context
elResolver.add(new ReadOnlyMapELResolver(beans));
}
elResolver.add(new ArrayELResolver());
elResolver.add(new ListELResolver());
elResolver.add(new MapELResolver());
elResolver.add(new JsonNodeELResolver());
//TODO: needs verification
elResolver.add(new DynamicBeanPropertyELResolver(ItemInstance.class, "getFieldValue", "setFieldValue"));
elResolver.add(new BeanELResolver());
return elResolver;
}
use of org.activiti.engine.impl.javax.el.JsonNodeELResolver in project Activiti by Activiti.
the class SpringExpressionManager method createElResolver.
@Override
protected ELResolver createElResolver(VariableScope variableScope) {
CompositeELResolver compositeElResolver = new CompositeELResolver();
compositeElResolver.add(new VariableScopeElResolver(variableScope));
if (beans != null) {
// Only expose limited set of beans in expressions
compositeElResolver.add(new ReadOnlyMapELResolver(beans));
} else {
// Expose full application-context in expressions
compositeElResolver.add(new ApplicationContextElResolver(applicationContext));
}
compositeElResolver.add(new ArrayELResolver());
compositeElResolver.add(new ListELResolver());
compositeElResolver.add(new MapELResolver());
compositeElResolver.add(new JsonNodeELResolver());
compositeElResolver.add(new BeanELResolver());
return compositeElResolver;
}
use of org.activiti.engine.impl.javax.el.JsonNodeELResolver in project Activiti by Activiti.
the class JuelScriptEngine method createElResolver.
private ELResolver createElResolver() {
CompositeELResolver compositeResolver = new CompositeELResolver();
compositeResolver.add(new ArrayELResolver());
compositeResolver.add(new ListELResolver());
compositeResolver.add(new MapELResolver());
compositeResolver.add(new JsonNodeELResolver());
compositeResolver.add(new ResourceBundleELResolver());
compositeResolver.add(new DynamicBeanPropertyELResolver(ItemInstance.class, "getFieldValue", "setFieldValue"));
compositeResolver.add(new BeanELResolver());
return new SimpleResolver(compositeResolver);
}
Aggregations