|
@@ -1209,13 +1209,16 @@ String function cmd_transformation_between(source_dict : String, target_dict : S
|
|
|
mm_id = get_entry_id(mm)
|
|
|
|
|
|
if (mm_id != ""):
|
|
|
- links = allIncomingAssociationInstances(core, mm_id, "transformInput")
|
|
|
-
|
|
|
- while (set_len(links) > 0):
|
|
|
- link = set_pop(links)
|
|
|
- if (value_eq(read_attribute(core, link, "name"), tag)):
|
|
|
- // Correct tag, so make transformation a possibility
|
|
|
- set_add(subresult, readAssociationSource(core, link))
|
|
|
+ if (read_type(core, mm_id) != "Folder"):
|
|
|
+ links = allIncomingAssociationInstances(core, mm_id, "transformInput")
|
|
|
+
|
|
|
+ while (set_len(links) > 0):
|
|
|
+ link = set_pop(links)
|
|
|
+ if (value_eq(read_attribute(core, link, "name"), tag)):
|
|
|
+ // Correct tag, so make transformation a possibility
|
|
|
+ set_add(subresult, readAssociationSource(core, link))
|
|
|
+ else:
|
|
|
+ return "Not a model: " + mm!
|
|
|
else:
|
|
|
return "Model not found: " + mm!
|
|
|
|
|
@@ -1230,13 +1233,16 @@ String function cmd_transformation_between(source_dict : String, target_dict : S
|
|
|
mm_id = get_entry_id(mm)
|
|
|
|
|
|
if (mm_id != ""):
|
|
|
- links = allIncomingAssociationInstances(core, mm_id, "transformOutput")
|
|
|
-
|
|
|
- while (set_len(links) > 0):
|
|
|
- link = set_pop(links)
|
|
|
- if (value_eq(read_attribute(core, link, "name"), tag)):
|
|
|
- // Correct tag, so make transformation a possibility
|
|
|
- set_add(subresult, readAssociationSource(core, link))
|
|
|
+ if (read_type(core, mm_id) != "Folder"):
|
|
|
+ links = allIncomingAssociationInstances(core, mm_id, "transformOutput")
|
|
|
+
|
|
|
+ while (set_len(links) > 0):
|
|
|
+ link = set_pop(links)
|
|
|
+ if (value_eq(read_attribute(core, link, "name"), tag)):
|
|
|
+ // Correct tag, so make transformation a possibility
|
|
|
+ set_add(subresult, readAssociationSource(core, link))
|
|
|
+ else:
|
|
|
+ return "Not a model: " + mm!
|
|
|
else:
|
|
|
return "Model not found: " + mm!
|
|
|
|