Search in sources :

Example 6 with WSRoutingRuleExpression

use of com.amalto.workbench.webservices.WSRoutingRuleExpression in project tmdm-studio-se by Talend.

the class RoutingRuleTest method initWSObject.

private WSRoutingRule initWSObject() {
    WSRoutingRule rule = new WSRoutingRule();
    // $NON-NLS-1$
    rule.setName("ruleNameA");
    // $NON-NLS-1$
    rule.setConcept("concept");
    // $NON-NLS-1$
    rule.setCondition("condition");
    rule.setDeactive(true);
    // $NON-NLS-1$
    rule.setDescription("description");
    // $NON-NLS-1$
    rule.setParameters("parameters");
    // $NON-NLS-1$
    rule.setServiceJNDI("serviceJNDI");
    rule.setSynchronous(false);
    for (int i = 0; i < operators.size(); i++) {
        WSRoutingRuleExpression exp = new WSRoutingRuleExpression();
        // $NON-NLS-1$
        exp.setName("expression" + i);
        // $NON-NLS-1$
        exp.setValue("value" + i);
        // $NON-NLS-1$
        exp.setXpath("xpath" + i);
        WSRoutingRuleOperator o1 = WSRoutingRuleOperator.valueOf(operators.get(i));
        exp.setWsOperator(o1);
        rule.getWsRoutingRuleExpressions().add(exp);
    }
    return rule;
}
Also used : WSRoutingRule(com.amalto.workbench.webservices.WSRoutingRule) WSRoutingRuleOperator(com.amalto.workbench.webservices.WSRoutingRuleOperator) WSRoutingRuleExpression(com.amalto.workbench.webservices.WSRoutingRuleExpression)

Aggregations

WSRoutingRuleExpression (com.amalto.workbench.webservices.WSRoutingRuleExpression)6 WSRoutingRule (com.amalto.workbench.webservices.WSRoutingRule)3 Line (com.amalto.workbench.models.Line)2 XtentisException (com.amalto.workbench.utils.XtentisException)2 WSRoutingRuleOperator (com.amalto.workbench.webservices.WSRoutingRuleOperator)2 ArrayList (java.util.ArrayList)2 Test (org.junit.Test)2 WSGetServicesList (com.amalto.workbench.webservices.WSGetServicesList)1 WSServicesList (com.amalto.workbench.webservices.WSServicesList)1 WSString (com.amalto.workbench.webservices.WSString)1 List (java.util.List)1 Point (org.eclipse.swt.graphics.Point)1