Package org.camunda.bpm.engine.impl.scripting.env

Examples of org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment


    assertFalse(script.isShouldBeCompiled());
    assertNotNull(script.getCompiledScript());
  }

  protected Object executeScript(final ExecutableScript script) {
    final ScriptingEnvironment scriptingEnvironment = processEngineConfiguration.getScriptingEnvironment();
    return processEngineConfiguration.getCommandExecutorTxRequired()
      .execute(new Command<Object>() {
        public Object execute(CommandContext commandContext) {
          return scriptingEnvironment.execute(script, null);
        }
      });
  }
View Full Code Here


    return executeScript(formTemplateString, task.getExecution());
  }

  protected Object executeScript(String scriptSrc, VariableScope scope) {
    ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
    ScriptingEnvironment scriptingEnvironment = processEngineConfiguration.getScriptingEnvironment();
    ScriptFactory scriptFactory = processEngineConfiguration.getScriptFactory();
    ExecutableScript script = scriptFactory.createScriptFromSource(ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE, scriptSrc);
    return scriptingEnvironment.execute(script, scope);
  }
View Full Code Here

    }
    if(scriptEnvResolvers == null) {
      scriptEnvResolvers = new ArrayList<ScriptEnvResolver>();
    }
    if(scriptingEnvironment == null) {
      scriptingEnvironment = new ScriptingEnvironment(scriptFactory, scriptEnvResolvers, scriptingEngines);
    }
  }
View Full Code Here

    }
    if(scriptEnvResolvers == null) {
      scriptEnvResolvers = new ArrayList<ScriptEnvResolver>();
    }
    if(scriptingEnvironment == null) {
      scriptingEnvironment = new ScriptingEnvironment(scriptFactory, scriptEnvResolvers);
    }
  }
View Full Code Here

    return executeScript(formTemplateString, task.getExecution());
  }

  protected Object executeScript(String scriptSrc, VariableScope<?> scope) {
    ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
    ScriptingEnvironment scriptingEnvironment = processEngineConfiguration.getScriptingEnvironment();
    ScriptFactory scriptFactory = processEngineConfiguration.getScriptFactory();
    ExecutableScript script = scriptFactory.createScript(scriptSrc, ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE);
    return scriptingEnvironment.execute(script, scope);
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.