use of org.camunda.bpm.engine.impl.javax.el.CompositeELResolver in project camunda-bpm-platform by camunda.
the class CdiExpressionManager method createElResolver.
@Override
protected ELResolver createElResolver() {
CompositeELResolver compositeElResolver = new CompositeELResolver();
compositeElResolver.add(new VariableScopeElResolver());
compositeElResolver.add(new VariableContextElResolver());
compositeElResolver.add(new CdiResolver());
compositeElResolver.add(new ArrayELResolver());
compositeElResolver.add(new ListELResolver());
compositeElResolver.add(new MapELResolver());
compositeElResolver.add(new BeanELResolver());
return compositeElResolver;
}
use of org.camunda.bpm.engine.impl.javax.el.CompositeELResolver in project camunda-bpm-platform by camunda.
the class ExpressionManager method createElResolver.
protected ELResolver createElResolver() {
CompositeELResolver elResolver = new CompositeELResolver();
elResolver.add(new VariableScopeElResolver());
elResolver.add(new VariableContextElResolver());
elResolver.add(new MockElResolver());
if (beans != null) {
// ACT-1102: Also expose all beans in configuration when using standalone engine, not
// in spring-context
elResolver.add(new ReadOnlyMapELResolver(beans));
}
elResolver.add(new ProcessApplicationElResolverDelegate());
elResolver.add(new ArrayELResolver());
elResolver.add(new ListELResolver());
elResolver.add(new MapELResolver());
elResolver.add(new ProcessApplicationBeanElResolverDelegate());
return elResolver;
}
use of org.camunda.bpm.engine.impl.javax.el.CompositeELResolver in project camunda-bpm-platform by camunda.
the class SpringExpressionManager method createElResolver.
@Override
protected ELResolver createElResolver() {
CompositeELResolver compositeElResolver = new CompositeELResolver();
compositeElResolver.add(new VariableScopeElResolver());
compositeElResolver.add(new VariableContextElResolver());
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 BeanELResolver());
return compositeElResolver;
}
use of org.camunda.bpm.engine.impl.javax.el.CompositeELResolver in project camunda-bpm-platform by camunda.
the class DefaultElResolverLookup method lookupResolver.
public static final ELResolver lookupResolver(AbstractProcessApplication processApplication) {
ServiceLoader<ProcessApplicationElResolver> providers = ServiceLoader.load(ProcessApplicationElResolver.class);
List<ProcessApplicationElResolver> sortedProviders = new ArrayList<ProcessApplicationElResolver>();
for (ProcessApplicationElResolver provider : providers) {
sortedProviders.add(provider);
}
if (sortedProviders.isEmpty()) {
return null;
} else {
// sort providers first
Collections.sort(sortedProviders, new ProcessApplicationElResolver.ProcessApplicationElResolverSorter());
// add all providers to a composite resolver
CompositeELResolver compositeResolver = new CompositeELResolver();
StringBuilder summary = new StringBuilder();
summary.append(String.format("ElResolvers found for Process Application %s", processApplication.getName()));
for (ProcessApplicationElResolver processApplicationElResolver : sortedProviders) {
ELResolver elResolver = processApplicationElResolver.getElResolver(processApplication);
if (elResolver != null) {
compositeResolver.add(elResolver);
summary.append(String.format("Class %s", processApplicationElResolver.getClass().getName()));
} else {
LOG.noElResolverProvided(processApplication.getName(), processApplicationElResolver.getClass().getName());
}
}
LOG.paElResolversDiscovered(summary.toString());
return compositeResolver;
}
}
use of org.camunda.bpm.engine.impl.javax.el.CompositeELResolver in project camunda-bpm-platform by camunda.
the class MockExpressionManager method createElResolver.
@Override
protected ELResolver createElResolver() {
CompositeELResolver compositeElResolver = new CompositeELResolver();
compositeElResolver.add(new VariableScopeElResolver());
compositeElResolver.add(new VariableContextElResolver());
compositeElResolver.add(new MockElResolver());
compositeElResolver.add(new ArrayELResolver());
compositeElResolver.add(new ListELResolver());
compositeElResolver.add(new MapELResolver());
compositeElResolver.add(new BeanELResolver());
return compositeElResolver;
}
Aggregations