|
@@ -272,17 +272,12 @@ Element function model_split(merged_model : Element, models : Element, tracabili
|
|
|
src = reverse[cast_id2s(read_edge_src(elem))]
|
|
|
dst = reverse[cast_id2s(read_edge_dst(elem))]
|
|
|
|
|
|
- if (bool_and(dict_in(mapping, src), dict_in(mapping, dst))):
|
|
|
- // All present, so create the link between them
|
|
|
- log("Create tracability link!")
|
|
|
- source = reuse_element(tracability_model, "Reference", "", read_edge_src(elem))
|
|
|
- target = reuse_element(tracability_model, "Reference", "", read_edge_dst(elem))
|
|
|
-
|
|
|
- link = instantiate_link(tracability_model, "TracabilityLink", "", source, target)
|
|
|
- instantiate_attribute(tracability_model, link, "type", type)
|
|
|
- else:
|
|
|
- // Still source or destination in the queue, so we wait for that
|
|
|
- set_add(second_keys, key)
|
|
|
+ // All present, so create the link between them
|
|
|
+ source = reuse_element(tracability_model, "Reference", "", read_edge_src(elem))
|
|
|
+ target = reuse_element(tracability_model, "Reference", "", read_edge_dst(elem))
|
|
|
+
|
|
|
+ link = instantiate_link(tracability_model, "TracabilityLink", "", source, target)
|
|
|
+ instantiate_attribute(tracability_model, link, "type", type)
|
|
|
else:
|
|
|
retyping_key = splitted[0]
|
|
|
|