Search in sources :

Example 1 with VariableScopeResolverFactory

use of org.camunda.bpm.engine.impl.scripting.engine.VariableScopeResolverFactory in project camunda-bpm-platform by camunda.

the class ProcessEngineConfigurationImpl method initScripting.

protected void initScripting() {
    if (resolverFactories == null) {
        resolverFactories = new ArrayList<ResolverFactory>();
        resolverFactories.add(new MocksResolverFactory());
        resolverFactories.add(new VariableScopeResolverFactory());
        resolverFactories.add(new BeansResolverFactory());
    }
    if (scriptingEngines == null) {
        scriptingEngines = new ScriptingEngines(new ScriptBindingsFactory(resolverFactories));
        scriptingEngines.setEnableScriptEngineCaching(enableScriptEngineCaching);
    }
    if (scriptFactory == null) {
        scriptFactory = new ScriptFactory();
    }
    if (scriptEnvResolvers == null) {
        scriptEnvResolvers = new ArrayList<ScriptEnvResolver>();
    }
    if (scriptingEnvironment == null) {
        scriptingEnvironment = new ScriptingEnvironment(scriptFactory, scriptEnvResolvers, scriptingEngines);
    }
}
Also used : MocksResolverFactory(org.camunda.bpm.engine.test.mock.MocksResolverFactory) ScriptEnvResolver(org.camunda.bpm.engine.impl.scripting.env.ScriptEnvResolver) ScriptingEngines(org.camunda.bpm.engine.impl.scripting.engine.ScriptingEngines) BeansResolverFactory(org.camunda.bpm.engine.impl.scripting.engine.BeansResolverFactory) ScriptBindingsFactory(org.camunda.bpm.engine.impl.scripting.engine.ScriptBindingsFactory) ScriptingEnvironment(org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment) VariableScopeResolverFactory(org.camunda.bpm.engine.impl.scripting.engine.VariableScopeResolverFactory) BeansResolverFactory(org.camunda.bpm.engine.impl.scripting.engine.BeansResolverFactory) MocksResolverFactory(org.camunda.bpm.engine.test.mock.MocksResolverFactory) ResolverFactory(org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory) ScriptFactory(org.camunda.bpm.engine.impl.scripting.ScriptFactory) VariableScopeResolverFactory(org.camunda.bpm.engine.impl.scripting.engine.VariableScopeResolverFactory)

Aggregations

ScriptFactory (org.camunda.bpm.engine.impl.scripting.ScriptFactory)1 BeansResolverFactory (org.camunda.bpm.engine.impl.scripting.engine.BeansResolverFactory)1 ResolverFactory (org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory)1 ScriptBindingsFactory (org.camunda.bpm.engine.impl.scripting.engine.ScriptBindingsFactory)1 ScriptingEngines (org.camunda.bpm.engine.impl.scripting.engine.ScriptingEngines)1 VariableScopeResolverFactory (org.camunda.bpm.engine.impl.scripting.engine.VariableScopeResolverFactory)1 ScriptEnvResolver (org.camunda.bpm.engine.impl.scripting.env.ScriptEnvResolver)1 ScriptingEnvironment (org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment)1 MocksResolverFactory (org.camunda.bpm.engine.test.mock.MocksResolverFactory)1