Search in sources :

Example 1 with DynamicBeanPropertyELResolver

use of org.activiti.engine.impl.javax.el.DynamicBeanPropertyELResolver 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;
}
Also used : CompositeELResolver(org.activiti.engine.impl.javax.el.CompositeELResolver) JsonNodeELResolver(org.activiti.engine.impl.javax.el.JsonNodeELResolver) DynamicBeanPropertyELResolver(org.activiti.engine.impl.javax.el.DynamicBeanPropertyELResolver) ListELResolver(org.activiti.engine.impl.javax.el.ListELResolver) MapELResolver(org.activiti.engine.impl.javax.el.MapELResolver) ArrayELResolver(org.activiti.engine.impl.javax.el.ArrayELResolver) ItemInstance(org.activiti.engine.impl.bpmn.data.ItemInstance) BeanELResolver(org.activiti.engine.impl.javax.el.BeanELResolver)

Example 2 with DynamicBeanPropertyELResolver

use of org.activiti.engine.impl.javax.el.DynamicBeanPropertyELResolver 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);
}
Also used : CompositeELResolver(org.activiti.engine.impl.javax.el.CompositeELResolver) JsonNodeELResolver(org.activiti.engine.impl.javax.el.JsonNodeELResolver) DynamicBeanPropertyELResolver(org.activiti.engine.impl.javax.el.DynamicBeanPropertyELResolver) ListELResolver(org.activiti.engine.impl.javax.el.ListELResolver) ResourceBundleELResolver(org.activiti.engine.impl.javax.el.ResourceBundleELResolver) MapELResolver(org.activiti.engine.impl.javax.el.MapELResolver) SimpleResolver(org.activiti.engine.impl.juel.SimpleResolver) ArrayELResolver(org.activiti.engine.impl.javax.el.ArrayELResolver) ItemInstance(org.activiti.engine.impl.bpmn.data.ItemInstance) BeanELResolver(org.activiti.engine.impl.javax.el.BeanELResolver)

Aggregations

ItemInstance (org.activiti.engine.impl.bpmn.data.ItemInstance)2 ArrayELResolver (org.activiti.engine.impl.javax.el.ArrayELResolver)2 BeanELResolver (org.activiti.engine.impl.javax.el.BeanELResolver)2 CompositeELResolver (org.activiti.engine.impl.javax.el.CompositeELResolver)2 DynamicBeanPropertyELResolver (org.activiti.engine.impl.javax.el.DynamicBeanPropertyELResolver)2 JsonNodeELResolver (org.activiti.engine.impl.javax.el.JsonNodeELResolver)2 ListELResolver (org.activiti.engine.impl.javax.el.ListELResolver)2 MapELResolver (org.activiti.engine.impl.javax.el.MapELResolver)2 ResourceBundleELResolver (org.activiti.engine.impl.javax.el.ResourceBundleELResolver)1 SimpleResolver (org.activiti.engine.impl.juel.SimpleResolver)1