Search in sources :

Example 1 with WSRoutingRuleOperatorE

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;
}
Also used : WSRoutingRuleExpressionE(org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleExpressionE) WSRoutingRuleOperatorE(org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleOperatorE) WSRoutingRuleE(org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleE)

Example 2 with WSRoutingRuleOperatorE

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;
}
Also used : WSRoutingRuleOperatorE(org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleOperatorE) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 3 with WSRoutingRuleOperatorE

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;
}
Also used : WSRoutingRuleOperatorE(org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleOperatorE)

Aggregations

WSRoutingRuleOperatorE (org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleOperatorE)3 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 WSRoutingRuleE (org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleE)1 WSRoutingRuleExpressionE (org.talend.mdm.repository.model.mdmserverobject.WSRoutingRuleExpressionE)1