public final <T>T evaluate(final Map<Long,Object> pInputParams,Class<T> resultType) throws RuleEvaluationException {
  try {
    return TypeConverter.castToType(evaluate(pInputParams),resultType);
  }
 catch (  ClassCastException ce) {
    throw new RuleEvaluationException("Rule result cannot be converted to " + resultType.getName());
  }
}

public final < T > T evaluate ( final Map < Long , Object > pInputParams , Class < T > resultType ) throws RuleEvaluationException { try { return TypeConverter . castToType ( evaluate ( pInputParams ) , resultType ) ; } catch ( ClassCastException ce ) { throw new RuleEvaluationException ( "Rule result cannot be converted to " + resultType . getName ( ) ) ; } }
the method evaluates the rule for the given input values of the tags . the result is then casted into the given result type class
