Examples of evaluateExpression()


Examples of org.eclipse.jst.pagedesigner.preview.PageExpressionContext.evaluateExpression()

                if (current != null)
                {
                  //Bug 319317 - Third-party plug-in providing javax.servlet.jsp.el version 2.1 or greater breaks WPE preview
                  Map options = new HashMap();
                  options.put("ELEMENT", originalElement); //$NON-NLS-1$
                    return (String) current
                            .evaluateExpression(oldAttributeValue, String.class, options);
                }
            } catch (ELException e)
            {
                // ignore. we will just return null since couldn't resolve
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

    }
  }

  private String evaluateExpression(String expression, Execution execution) {
    ScriptManager scriptManager = Environment.getFromCurrent(ScriptManager.class);
    Object value = scriptManager.evaluateExpression(expression, template.getLanguage());
    if (!(value instanceof String)) {
      throw new JbpmException("expected expression '"
          + expression
          + "' to return string, but was: "
          + value);
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

         
          // TODO update evaluateExpression so that scopeInstance can be passed in directly
          String expression = variableOutDefinition.getExpression();
          String language = variableOutDefinition.getLanguage();

          Object value = scriptManager.evaluateExpression(expression, language);
          outerExecution.setVariable(variableName, value);
        }
      }
    }
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

      if (object==null) {
        throw new WireException("created factory object is null, can't invoke method '"+methodName+"' on it");
      }
    } else if (expr!=null) {
      ScriptManager scriptManager = EnvironmentDefaults.getScriptManager();
      object = scriptManager.evaluateExpression(expr, lang);
    }

    if (methodName!=null) {
      // method invocation on object or static method invocation in case object is null
      if (object!=null) {
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

    if (initDescriptor!=null) {
      return WireContext.create(initDescriptor);
    }
    if (initExpression!=null) {
      ScriptManager scriptManager = Environment.getFromCurrent(ScriptManager.class);
      return scriptManager.evaluateExpression(initExpression, initLanguage);
    }
    return null;
  }

  public String getName() {
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

  }

  public void setDueDateDescription(String dueDateDescription) {

    ScriptManager scriptManager = EnvironmentDefaults.getScriptManager();
    dueDateDescription = (String) scriptManager.evaluateExpression(dueDateDescription, null);
   
    Duration duration = new Duration(dueDateDescription);
    Date now = Clock.getCurrentTime();
   
    if ( duration.isBusinessTime()
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

    return (Boolean) evaluateExpression(execution);
  }

  public Object evaluateExpression(OpenExecution execution) {
    ScriptManager scriptManager = EnvironmentDefaults.getScriptManager();
    return scriptManager.evaluateExpression(expr, lang);
  }

  public String getName() {
    return name;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

    }
  }

  protected String resolveAssignmentExpression(String expression, String expressionLanguage) {
    ScriptManager scriptManager = Environment.getFromCurrent(ScriptManager.class);
    Object result = scriptManager.evaluateExpression(expression, expressionLanguage);
    if ( (result ==null)
         || (result instanceof String)
       ) {
      return (String) result;
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

  public void execute(ExecutionImpl execution) {
    Activity activity = execution.getActivity();
    String transitionName = null;

    ScriptManager scriptManager = EnvironmentDefaults.getScriptManager();
    Object result = scriptManager.evaluateExpression(expr, lang);
    if ( (result!=null)
         && (! (result instanceof String))
       ) {
      throw new JbpmException("expression '"+expr+"' in decision '"+activity.getName()+"' returned "+result.getClass().getName()+" instead of a transitionName (String): "+result);
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression()

   
    if (variableName!=null) {
      value = subProcessInstance.getVariable(subVariableName);
    } else {
      ScriptManager scriptManager = EnvironmentDefaults.getScriptManager();
      value = scriptManager.evaluateExpression(expression, language);
    }

    superExecution.setVariable(variableName, value);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.