Package org.uengine.util

Examples of org.uengine.util.ExpressionFormatter


  public Object getFieldValue(final ProcessInstanceDAO instanceDAO, Map genericContext) throws Exception{
    TextContext formatString = getFormatString();
    String fStr = formatString.getText();
   
    if(fStr!=null){
      ExpressionFormatter ef = new ExpressionFormatter(){
        public Object formatExpression(String expression) {
          try {
            return instanceDAO.get(expression);
          } catch (Exception e) {
            return e.getMessage();
          }
        }
      };
     
      return ef.format(fStr);
    }else
      return getListFieldType().getFieldValue(instanceDAO, genericContext);
  }
View Full Code Here

TOP

Related Classes of org.uengine.util.ExpressionFormatter

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.