Package org.mule.api.expression

Examples of org.mule.api.expression.ExpressionManager.evaluate()


    public static Serializable evaluate(String expression, MuleEvent event) throws NotSerializableException
    {
        ExpressionManager expressionManager = event.getMuleContext().getExpressionManager();
        if (expressionManager.isExpression(expression) && expressionManager.isValidExpression(expression))
        {
            Object evaluated = expressionManager.evaluate(expression, event);
            if (evaluated != null && !(evaluated instanceof Serializable))
            {
                throw new NotSerializableException(
                    String.format(
                        "Expression %s resolves to an object that is not serializable (%s). It can't be used as watermark.",
View Full Code Here


    private Object evaluate(String expression)
    {
        ExpressionManager expressionManager = muleContext.getExpressionManager();
        MuleEvent event = mock(MuleEvent.class);
        return expressionManager.evaluate(expression, event);
    }

    @Test
    public void muleContext() throws Exception
    {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.