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

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


  protected ExecutableScript parseScriptResource(String resource, String language, CmmnHandlerContext context) {
    if (StringUtil.isExpression(resource)) {
      ExpressionManager expressionManager = context.getExpressionManager();
      Expression scriptResourceExpression = expressionManager.createExpression(resource);
      return new DynamicResourceExecutableScript(scriptResourceExpression, language);
    }
    else {
      DeploymentEntity deployment = (DeploymentEntity) context.getDeployment();
      String scriptSource = ResourceUtil.loadResourceContent(resource, deployment);
      return parseScript(scriptSource, language);
View Full Code Here


   * @return the corresponding {@link ScriptTaskActivityBehavior}
   */
  protected ExecutableScript parseScriptResource(String scriptResource, String scriptLanguage) {
    if (StringUtil.isExpression(scriptResource)) {
      Expression scriptResourceExpression = expressionManager.createExpression(scriptResource);
      return new DynamicResourceExecutableScript(scriptResourceExpression, scriptLanguage);
    }
    else {
      String scriptSource = ResourceUtil.loadResourceContent(scriptResource, deployment);
      return parseScript(scriptSource, scriptLanguage);
    }
View Full Code Here

TOP

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

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.