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;
}
Aggregations