Package org.jbpm.pvm.internal.script

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


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

    superExecution.setVariable(variableName, value);
  }
}
View Full Code Here


    Object value = null;
    if (variableName!=null) {
      value = superExecution.getVariable(variableName);
    } else {
      ScriptManager scriptManager = ScriptManager.getScriptManager();
      value = scriptManager.evaluateExpression(expression, language);
    }
   
    subProcessInstance.setVariable(subVariableName, value);
  }
}
View Full Code Here

      Activity activity = execution.getActivity();
      String subProcessActivityName = subProcessInstance.getActivityName();
     
      if (outcomeExpression!=null) {
        ScriptManager scriptManager = EnvironmentImpl.getFromCurrent(ScriptManager.class);
        Object value = scriptManager.evaluateExpression(outcomeExpression, null);
        // if the value is a String and matches the name of an outgoing transition
        if ( (value instanceof String)
             && (activity.hasOutgoingTransition(((String) value)))
           ) {
          // then take that one
View Full Code Here

  void perform(OpenExecution execution) throws Exception {
    Object value = null;
   
    if (expression!=null) {
      ScriptManager scriptManager = ScriptManager.getScriptManager();
      value = scriptManager.evaluateExpression(expression, language);
     
    } else if (valueDescriptor!=null) {
      value = WireContext.create(valueDescriptor);
    }
   
View Full Code Here

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

    ScriptManager scriptManager = ScriptManager.getScriptManager();
    Object result = scriptManager.evaluateExpression(expression, language);
    if ( (result!=null)
         && (! (result instanceof String))
       ) {
      throw new JbpmException("expression '"+expression+"' in decision '"+activity.getName()+"' returned "+result.getClass().getName()+" instead of a transitionName (String): "+result);
    }
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.