* BC4 e3
* </OR>
* </AND>
*/
Rule rule = RuleModelFactory.eINSTANCE.createRule();
LogicCondition lc1 = RuleModelFactory.eINSTANCE.createLogicCondition();
LogicCondition lc2 = RuleModelFactory.eINSTANCE.createLogicCondition();
BaseCondition bc1 = RuleModelFactory.eINSTANCE.createBaseCondition();
BaseCondition bc2 = RuleModelFactory.eINSTANCE.createBaseCondition();
BaseCondition bc3 = RuleModelFactory.eINSTANCE.createBaseCondition();
BaseCondition bc4 = RuleModelFactory.eINSTANCE.createBaseCondition();
List<BaseCondition> conditions = new ArrayList<BaseCondition>();
conditions.add(bc1);
conditions.add(bc2);
conditions.add(bc3);
conditions.add(bc4);
ElementDefinition e1 = RuleModelFactory.eINSTANCE.createElementDefinition();
ElementDefinition e2 = RuleModelFactory.eINSTANCE.createElementDefinition();
ElementDefinition e3 = RuleModelFactory.eINSTANCE.createElementDefinition();
ActionDefinition a = RuleModelFactory.eINSTANCE.createActionDefinition();
a.setActionType(ActionType.CREATE_LINK);
rule.getElements().add(e1);
rule.getElements().add(e2);
rule.getElements().add(e3);
rule.getActions().add(a);
e1.setAlias("e1");
e2.setAlias("e2");
e3.setAlias("e3");
rule.setConditions(lc1);
lc1.setType(LogicConditionType.AND);
lc2.setType(LogicConditionType.OR);
lc1.getBaseConditions().add(bc1);