Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jun 30, 2017
2 parents d34a9f4 + 1d569dd commit bdd2cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -22,6 +22,7 @@
import com.evolveum.midpoint.prism.xnode.PrimitiveXNode;
import com.evolveum.midpoint.prism.xnode.XNode;
import com.evolveum.midpoint.schema.constants.SchemaConstants;
import com.evolveum.midpoint.util.PrettyPrinter;
import com.evolveum.midpoint.util.QNameUtil;
import com.evolveum.midpoint.util.exception.SchemaException;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ApprovalSchemaType;
Expand All @@ -41,6 +42,8 @@
import java.util.Date;

/**
* TODO unify with PrettyPrinter somehow
*
* @author mederly
*/
public class ValueDisplayUtil {
Expand Down Expand Up @@ -137,6 +140,8 @@ public static String toStringValue(PrismPropertyValue propertyValue) {
return String.valueOf(value);
} else if (value instanceof byte[]) {
return "(binary data)";
} else if (value instanceof RawType) {
return PrettyPrinter.prettyPrint(value);
} else {
return "(a value of type " + value.getClass().getName() + ")"; // todo i18n
}
Expand Down
Expand Up @@ -844,7 +844,7 @@ public static <F extends ObjectType> boolean evaluateIterationCondition(LensCont
variables.addVariableDefinition(ExpressionConstants.VAR_ITERATION_TOKEN, iterationToken);

ExpressionEvaluationContext expressionContext = new ExpressionEvaluationContext(null , variables, desc, task, result);
PrismValueDeltaSetTriple<PrismPropertyValue<Boolean>> outputTriple = ModelExpressionThreadLocalHolder.evaluateExpressionInContext(expression, expressionContext, task, result);
PrismValueDeltaSetTriple<PrismPropertyValue<Boolean>> outputTriple = ModelExpressionThreadLocalHolder.evaluateExpressionInContext(expression, expressionContext, context, null, task, result);
Collection<PrismPropertyValue<Boolean>> outputValues = outputTriple.getNonNegativeValues();
if (outputValues.isEmpty()) {
return false;
Expand Down

0 comments on commit bdd2cf4

Please sign in to comment.