|
@@ -1351,11 +1351,11 @@ String function cmd_transformation_add_MT(user_id : String, source_models : Elem
|
|
|
if (model_id != ""):
|
|
|
if (allow_read(user_id, name)):
|
|
|
// Check whether or not it is SimpleClassDiagrams
|
|
|
- mm = read_attribute(core, readAssociationDestination(core, get_instanceOf_link(name)), "name")
|
|
|
+ mm = read_attribute(core, readAssociationDestination(core, get_instanceOf_link(model_id)), "name")
|
|
|
if (mm == "SimpleClassDiagrams"):
|
|
|
if (bool_not(dict_in(source, key))):
|
|
|
dict_add(source, key, model_id)
|
|
|
- dict_add(to_ramify, key, get_full_model(model_id))
|
|
|
+ set_add(to_ramify, create_tuple(key, get_full_model(model_id)))
|
|
|
else:
|
|
|
return "Name was already assigned a metamodel: " + key!
|
|
|
else:
|
|
@@ -1372,12 +1372,12 @@ String function cmd_transformation_add_MT(user_id : String, source_models : Elem
|
|
|
model_id = get_model_id(name)
|
|
|
if (model_id != ""):
|
|
|
if (allow_read(user_id, name)):
|
|
|
- mm = read_attribute(core, readAssociationDestination(core, get_instanceOf_link(name)), "name")
|
|
|
+ mm = read_attribute(core, readAssociationDestination(core, get_instanceOf_link(model_id)), "name")
|
|
|
if (mm == "SimpleClassDiagrams"):
|
|
|
if (bool_not(dict_in(target, key))):
|
|
|
if (bool_not(dict_in(to_ramify, key))):
|
|
|
dict_add(target, key, model_id)
|
|
|
- dict_add(to_ramify, key, get_full_model(model_id))
|
|
|
+ set_add(to_ramify, create_tuple(key, get_full_model(model_id)))
|
|
|
else:
|
|
|
return "Name in output cannot have different type than input: " + key!
|
|
|
else:
|