@Test public void resolveExpressionsMap_should_keepExpressionContent_when_notAbleToResolveExpressionInString() { Expression expression = buildExpression("${nonResolvableExpression}"); given(expressionEvaluator.evaluate(expression, expressionManager, delegateInterceptor)).willThrow(new ActivitiException("Invalid property")); Map<String, Object> result = expressionResolver.resolveExpressionsMap(expressionEvaluator, singletonMap("result", "Welcome to ${nonResolvableExpression}!")); assertThat(result).containsEntry("result", "Welcome to ${nonResolvableExpression}!"); }
public Map<String, Object> resolveExpressionsMap(final ExpressionEvaluator expressionEvaluator, final Map<String, ?> sourceMap) { final Map<String, Object> result = new LinkedHashMap<>(); sourceMap.forEach((key, value) -> result.put(key, resolveExpressions(expressionEvaluator, value))); return result; }
ExpressionResolver { public Map<String, Object> resolveExpressionsMap(final ExpressionEvaluator expressionEvaluator, final Map<String, ?> sourceMap) { final Map<String, Object> result = new LinkedHashMap<>(); sourceMap.forEach((key, value) -> result.put(key, resolveExpressions(expressionEvaluator, value))); return result; } }
ExpressionResolver { public Map<String, Object> resolveExpressionsMap(final ExpressionEvaluator expressionEvaluator, final Map<String, ?> sourceMap) { final Map<String, Object> result = new LinkedHashMap<>(); sourceMap.forEach((key, value) -> result.put(key, resolveExpressions(expressionEvaluator, value))); return result; } ExpressionResolver(ExpressionManager expressionManager,
        ObjectMapper mapper,
        DelegateInterceptor delegateInterceptor); }
ExpressionResolver { public Map<String, Object> resolveExpressionsMap(final ExpressionEvaluator expressionEvaluator, final Map<String, ?> sourceMap) { final Map<String, Object> result = new LinkedHashMap<>(); sourceMap.forEach((key, value) -> result.put(key, resolveExpressions(expressionEvaluator, value))); return result; } ExpressionResolver(ExpressionManager expressionManager,
        ObjectMapper mapper,
        DelegateInterceptor delegateInterceptor); Map<String, Object> resolveExpressionsMap(final ExpressionEvaluator expressionEvaluator,
                                                     final Map<String, ?> sourceMap); boolean containsExpression(final Object source); }
ExpressionResolver { public Map<String, Object> resolveExpressionsMap(final ExpressionEvaluator expressionEvaluator, final Map<String, ?> sourceMap) { final Map<String, Object> result = new LinkedHashMap<>(); sourceMap.forEach((key, value) -> result.put(key, resolveExpressions(expressionEvaluator, value))); return result; } ExpressionResolver(ExpressionManager expressionManager,
        ObjectMapper mapper,
        DelegateInterceptor delegateInterceptor); Map<String, Object> resolveExpressionsMap(final ExpressionEvaluator expressionEvaluator,
                                                     final Map<String, ?> sourceMap); boolean containsExpression(final Object source);  }