use of org.activiti.engine.impl.scripting.ScriptBindingsFactory in project herd by FINRAOS.
the class ServiceSpringModuleConfig method initScriptingEngines.
/**
* Initializes the {@link ScriptingEngines} and optionally the {@link ResolverFactory} of the given {@link ProcessEngineConfigurationImpl}. The
* initialization logic has been copied from the protected initScriptingEngines() method in {@link ProcessEngineConfigurationImpl}. This initialization will
* use the {@link SecuredScriptingEngines} implementation of {@link ScriptingEngines}.
*
* @param configuration the {@link ProcessEngineConfigurationImpl} whom {@link ScriptingEngines} will be initialized.
*/
private void initScriptingEngines(ProcessEngineConfigurationImpl configuration) {
List<ResolverFactory> resolverFactories = configuration.getResolverFactories();
if (resolverFactories == null) {
resolverFactories = new ArrayList<>();
resolverFactories.add(new VariableScopeResolverFactory());
resolverFactories.add(new BeansResolverFactory());
configuration.setResolverFactories(resolverFactories);
}
configuration.setScriptingEngines(new SecuredScriptingEngines(new ScriptBindingsFactory(resolverFactories)));
}
use of org.activiti.engine.impl.scripting.ScriptBindingsFactory 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.ScriptBindingsFactory in project Activiti by Activiti.
the class ProcessEngineConfigurationImpl method initScriptingEngines.
public 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(this, resolverFactories));
}
}
Aggregations