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);
}