Examples of ExpressionDefinition


Examples of org.apache.camel.model.language.ExpressionDefinition

     * @param expression  the expression
     * @return the builder
     */
    public ValidateDefinition validate(Expression expression) {
        ValidateDefinition answer = new ValidateDefinition();
        answer.setExpression(new ExpressionDefinition(expression));
        addOutput(answer);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

     * @param predicate  the predicate
     * @return the builder
     */
    public ValidateDefinition validate(Predicate predicate) {
        ValidateDefinition answer = new ValidateDefinition();
        answer.setExpression(new ExpressionDefinition(predicate));
        addOutput(answer);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

     * @param expression the expression on which to compare messages in order
     * @return the builder
     */
    public ResequenceDefinition resequence(Expression expression) {
        ResequenceDefinition answer = new ResequenceDefinition();
        answer.setExpression(new ExpressionDefinition(expression));
        addOutput(answer);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

    public AggregateDefinition() {
    }

    public AggregateDefinition(Predicate predicate) {
        if (predicate != null) {
            setExpression(new ExpressionDefinition(predicate));
        }
    }   
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

        }
    }   
   
    public AggregateDefinition(Expression correlationExpression) {
        if (correlationExpression != null) {
            setExpression(new ExpressionDefinition(correlationExpression));
        }
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

     * @param expression  the expression
     * @return the builder
     */
    public ValidateDefinition validate(Expression expression) {
        ValidateDefinition answer = new ValidateDefinition();
        answer.setExpression(new ExpressionDefinition(expression));
        addOutput(answer);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

     * @param predicate  the predicate
     * @return the builder
     */
    public ValidateDefinition validate(Predicate predicate) {
        ValidateDefinition answer = new ValidateDefinition();
        answer.setExpression(new ExpressionDefinition(predicate));
        addOutput(answer);
        return answer;
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

        }
        return answer;
    }

    private Expression createAbsoluteTimeDelayExpression(RouteContext routeContext) {
        ExpressionDefinition expr = getExpression();
        if (expr != null) {
            if (ObjectHelper.isNotEmpty(expr.getExpression()) || expr.getExpressionValue() != null) {
                return expr.createExpression(routeContext);
            }
        }
        return null;
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

     *
     * @param delay delay time in millis
     * @return the builder
     */
    public DelayDefinition delayTime(Long delay) {
        setExpression(new ExpressionDefinition(ExpressionBuilder.constantExpression(delay)));
        return this;
    }
View Full Code Here

Examples of org.apache.camel.model.language.ExpressionDefinition

        } else if (expNode instanceof IdempotentConsumerDefinition) {
            renderIdempotentConsumer(buffer, expNode);
        } else if (expNode instanceof LoopDefinition) {
            renderLoop(buffer, expNode);
        } else if (expNode instanceof RecipientListDefinition) {
            ExpressionDefinition expression = expNode.getExpression();
            buffer.append("(");
            ExpressionRenderer.render(buffer, expression);
            buffer.append(")");
        } else if (expNode instanceof RoutingSlipDefinition) {           
            ExpressionDefinition expression = expNode.getExpression();
            buffer.append("(");
            ExpressionRenderer.render(buffer, expression);
            if (((RoutingSlipDefinition)expNode).getUriDelimiter() != null) {
                buffer.append(", \"");
                buffer.append(((RoutingSlipDefinition)expNode).getUriDelimiter());
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.