Search in sources :

Example 1 with OsgiScriptingEngines

use of org.activiti.osgi.OsgiScriptingEngines 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();
}
Also used : BeansResolverFactory(org.activiti.engine.impl.scripting.BeansResolverFactory) ScriptBindingsFactory(org.activiti.engine.impl.scripting.ScriptBindingsFactory) OsgiScriptingEngines(org.activiti.osgi.OsgiScriptingEngines) ProcessEngineConfigurationImpl(org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl) ResolverFactory(org.activiti.engine.impl.scripting.ResolverFactory) BeansResolverFactory(org.activiti.engine.impl.scripting.BeansResolverFactory) VariableScopeResolverFactory(org.activiti.engine.impl.scripting.VariableScopeResolverFactory) VariableScopeResolverFactory(org.activiti.engine.impl.scripting.VariableScopeResolverFactory)

Aggregations

ProcessEngineConfigurationImpl (org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl)1 BeansResolverFactory (org.activiti.engine.impl.scripting.BeansResolverFactory)1 ResolverFactory (org.activiti.engine.impl.scripting.ResolverFactory)1 ScriptBindingsFactory (org.activiti.engine.impl.scripting.ScriptBindingsFactory)1 VariableScopeResolverFactory (org.activiti.engine.impl.scripting.VariableScopeResolverFactory)1 OsgiScriptingEngines (org.activiti.osgi.OsgiScriptingEngines)1