use of org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleOperatorE in project tmdm-studio-se by Talend.
the class RoutingRuleTest method initEObjRule.
private WSRoutingRuleE initEObjRule() {
WSRoutingRuleE rule = MdmserverobjectFactory.eINSTANCE.createWSRoutingRuleE();
// $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++) {
WSRoutingRuleExpressionE exp = MdmserverobjectFactory.eINSTANCE.createWSRoutingRuleExpressionE();
// $NON-NLS-1$
exp.setName("expression" + i);
// $NON-NLS-1$
exp.setValue("value" + i);
// $NON-NLS-1$
exp.setXpath("xpath" + i);
//
WSRoutingRuleOperatorE o1 = MdmserverobjectFactory.eINSTANCE.createWSRoutingRuleOperatorE();
o1.setValue(operators.get(i));
exp.setWsOperator(o1);
rule.getWsRoutingRuleExpressions().add(exp);
}
return rule;
}
use of org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleOperatorE in project tmdm-studio-se by Talend.
the class WSRoutingRuleExpressionEImpl method basicSetWsOperator.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetWsOperator(WSRoutingRuleOperatorE newWsOperator, NotificationChain msgs) {
WSRoutingRuleOperatorE oldWsOperator = wsOperator;
wsOperator = newWsOperator;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MdmserverobjectPackage.WS_ROUTING_RULE_EXPRESSION_E__WS_OPERATOR, oldWsOperator, newWsOperator);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleOperatorE in project tmdm-studio-se by Talend.
the class GenerateJobTriggerAction method newContainRoutingRuleOperator.
private WSRoutingRuleOperatorE newContainRoutingRuleOperator() {
WSRoutingRuleOperatorE operator = MdmserverobjectFactory.eINSTANCE.createWSRoutingRuleOperatorE();
// $NON-NLS-1$
operator.setValue("CONTAINS");
return operator;
}
Aggregations