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

Examples of org.camunda.bpm.engine.impl.scripting.DynamicSourceExecutableScript


  protected ExecutableScript parseScriptSource(String source, String language, CmmnHandlerContext context) {
    if (StringUtil.isExpression(source) && !JuelScriptEngineFactory.names.contains(language)) {
      ExpressionManager expressionManager = context.getExpressionManager();
      Expression scriptExpression = expressionManager.createExpression(source.trim());
      return new DynamicSourceExecutableScript(scriptExpression, language);
    }
    else {
      return parseScript(source, language);
    }
  }
View Full Code Here


   * @return the corresponding {@link ScriptTaskActivityBehavior}
   */
  protected ExecutableScript parseScriptSource(String scriptSource, String language) {
    if (StringUtil.isExpression(scriptSource) && !JuelScriptEngineFactory.names.contains(language)) {
      Expression scriptExpression = expressionManager.createExpression(scriptSource.trim());
      return new DynamicSourceExecutableScript(scriptExpression, language);
    }
    else {
      return parseScript(scriptSource, language);
    }
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.scripting.DynamicSourceExecutableScript

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.