|
@@ -108,7 +108,7 @@ Element function get_full_model(model_id : String, metamodel_id : String):
|
|
|
if (element_neq(choice, read_root())):
|
|
|
if (set_len(allAssociationDestinations(core, choice, "typing")) == 1):
|
|
|
// Add the preferred original type mapping
|
|
|
- dict_add(m, "type_mapping", import_node(read_attribute(core, set_pop(allAssociationDestinations(core, choice, "typing")), "location")))
|
|
|
+ set_type_mapping(m, import_node(read_attribute(core, set_pop(allAssociationDestinations(core, choice, "typing")), "location")))
|
|
|
else:
|
|
|
// Start from scratch
|
|
|
new_type_mapping(m)
|
|
@@ -377,8 +377,8 @@ String function export_typing(model : Element, name : String, user_id : String):
|
|
|
|
|
|
// Create type mapping model
|
|
|
String location
|
|
|
- location = "type mappings/" + cast_id2s(model["type_mapping"])
|
|
|
- export_node(location, model["type_mapping"])
|
|
|
+ location = "type mappings/" + cast_id2s(get_type_mapping(model))
|
|
|
+ export_node(location, get_type_mapping(model))
|
|
|
|
|
|
String instance_of
|
|
|
name = store_entry(result, name, get_user_id("admin"))
|
|
@@ -627,7 +627,7 @@ Element function execute_operation(operation_id : String, input_models : Element
|
|
|
Element new_tracability_model
|
|
|
new_tracability_model = result["__tracability"]
|
|
|
dict_overwrite(tracability_model, "model", new_tracability_model["model"])
|
|
|
- dict_overwrite(tracability_model, "type_mapping", new_tracability_model["type_mapping"])
|
|
|
+ set_type_mapping(tracability_model, get_type_mapping(new_tracability_model))
|
|
|
dict_overwrite(tracability_model, "metamodel", new_tracability_model["metamodel"])
|
|
|
dict_delete(result, "__tracability")
|
|
|
|