Browse Source

Commit the intermediate merged metamodel to the Mv sooner

Yentl Van Tendeloo 7 years ago
parent
commit
bf64fed61a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bootstrap/core_algorithm.alc

+ 2 - 1
bootstrap/core_algorithm.alc

@@ -1595,7 +1595,9 @@ String function transformation_add(source_models : Element, target_models : Elem
 		// New location is available, so write
 		if (bool_not(bool_and(dict_len(source_models) == 0, dict_len(target_models) == 0))):
 			merged_formalism = model_fuse(formalism_map)
+			model_create(merged_formalism, "merged/" + operation_name, get_entry_id("formalisms/SimpleClassDiagrams"), "Model")
 			modify(merged_formalism, True)
+			model_overwrite(merged_formalism, get_entry_id("merged/" + operation_name), get_entry_id("formalisms/SimpleClassDiagrams"))
 
 		if (operation_type == "manual"):
 			// Finished with all information, now create the model itself!
@@ -1620,7 +1622,6 @@ String function transformation_add(source_models : Element, target_models : Elem
 			model_id = get_entry_id(operation_name)
 
 		if (bool_not(bool_and(dict_len(source_models) == 0, dict_len(target_models) == 0))):
-			model_create(merged_formalism, "merged/" + operation_name, get_entry_id("formalisms/SimpleClassDiagrams"), "Model")
 			merged_formalism_id = get_entry_id("merged/" + operation_name)
 
 			// Add tracability links at this level