Search in sources :

Example 1 with MapELResolver

use of org.activiti.engine.impl.javax.el.MapELResolver 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 MapELResolver

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

Example 3 with MapELResolver

use of org.activiti.engine.impl.javax.el.MapELResolver in project Activiti by Activiti.

the class CdiExpressionManager method createElResolver.

@Override
protected ELResolver createElResolver(VariableScope variableScope) {
    CompositeELResolver compositeElResolver = new CompositeELResolver();
    compositeElResolver.add(new VariableScopeElResolver(variableScope));
    compositeElResolver.add(new CdiResolver());
    compositeElResolver.add(new ArrayELResolver());
    compositeElResolver.add(new ListELResolver());
    compositeElResolver.add(new MapELResolver());
    compositeElResolver.add(new BeanELResolver());
    return compositeElResolver;
}
Also used : CdiResolver(org.activiti.cdi.impl.el.CdiResolver) CompositeELResolver(org.activiti.engine.impl.javax.el.CompositeELResolver) ListELResolver(org.activiti.engine.impl.javax.el.ListELResolver) MapELResolver(org.activiti.engine.impl.javax.el.MapELResolver) VariableScopeElResolver(org.activiti.engine.impl.el.VariableScopeElResolver) ArrayELResolver(org.activiti.engine.impl.javax.el.ArrayELResolver) BeanELResolver(org.activiti.engine.impl.javax.el.BeanELResolver)

Example 4 with MapELResolver

use of org.activiti.engine.impl.javax.el.MapELResolver in project Activiti by Activiti.

the class MockExpressionManager method createElResolver.

@Override
protected ELResolver createElResolver(VariableScope variableScope) {
    CompositeELResolver compositeElResolver = new CompositeELResolver();
    compositeElResolver.add(new VariableScopeElResolver(variableScope));
    compositeElResolver.add(new MockElResolver());
    compositeElResolver.add(new ArrayELResolver());
    compositeElResolver.add(new ListELResolver());
    compositeElResolver.add(new MapELResolver());
    compositeElResolver.add(new BeanELResolver());
    return compositeElResolver;
}
Also used : CompositeELResolver(org.activiti.engine.impl.javax.el.CompositeELResolver) ListELResolver(org.activiti.engine.impl.javax.el.ListELResolver) MapELResolver(org.activiti.engine.impl.javax.el.MapELResolver) VariableScopeElResolver(org.activiti.engine.impl.el.VariableScopeElResolver) ArrayELResolver(org.activiti.engine.impl.javax.el.ArrayELResolver) BeanELResolver(org.activiti.engine.impl.javax.el.BeanELResolver)

Example 5 with MapELResolver

use of org.activiti.engine.impl.javax.el.MapELResolver 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

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