use of org.activiti.engine.impl.scripting.BeansResolverFactory in project Activiti by Activiti.
the class ProcessEngineFactoryWithELResolver method init.
@Override
public void init() throws Exception {
ProcessEngineConfigurationImpl configImpl = (ProcessEngineConfigurationImpl) getProcessEngineConfiguration();
configImpl.setExpressionManager(new BlueprintExpressionManager());
List<ResolverFactory> resolverFactories = configImpl.getResolverFactories();
if (resolverFactories == null) {
resolverFactories = new ArrayList<ResolverFactory>();
resolverFactories.add(new VariableScopeResolverFactory());
resolverFactories.add(new BeansResolverFactory());
}
configImpl.setScriptingEngines(new OsgiScriptingEngines(new ScriptBindingsFactory(resolverFactories)));
super.init();
}
use of org.activiti.engine.impl.scripting.BeansResolverFactory in project Activiti by Activiti.
the class ProcessEngineConfigurationImpl method initScriptingEngines.
protected void initScriptingEngines() {
if (resolverFactories == null) {
resolverFactories = new ArrayList<ResolverFactory>();
resolverFactories.add(new VariableScopeResolverFactory());
resolverFactories.add(new BeansResolverFactory());
}
if (scriptingEngines == null) {
scriptingEngines = new ScriptingEngines(new ScriptBindingsFactory(resolverFactories));
}
}
Aggregations