|
@@ -1260,6 +1260,11 @@ String function transformation_add(user_id : String, source_models : Element, ta
|
|
|
return "Model not found: " + name!
|
|
|
|
|
|
if (get_model_id(operation_name) == ""):
|
|
|
+ // Write out a merged metamodel containing all these models: this is the MM for the manual operation
|
|
|
+ // New location is available, so write
|
|
|
+ merged_formalism = model_fuse(set_copy(all_formalisms))
|
|
|
+ modify(merged_formalism, True)
|
|
|
+
|
|
|
if (operation_type == "manual"):
|
|
|
// Finished with all information, now create the model itself!
|
|
|
model_create(instantiate_model(get_full_model(get_model_id("ManualOperation"))), operation_name, user_id, get_model_id("ManualOperation"), "ManualOperation")
|
|
@@ -1272,11 +1277,6 @@ String function transformation_add(user_id : String, source_models : Element, ta
|
|
|
model_create(import_node("AL/" + operation_name), operation_name, user_id, get_model_id("ActionLanguage"), "ActionLanguage")
|
|
|
model_id = get_model_id(operation_name)
|
|
|
|
|
|
- // Write out a merged metamodel containing all these models: this is the MM for the manual operation
|
|
|
- // New location is available, so write
|
|
|
- merged_formalism = model_fuse(set_copy(all_formalisms))
|
|
|
- //modify(merged_formalism, True)
|
|
|
-
|
|
|
model_create(merged_formalism, "__merged_" + operation_name, user_id, type_id, "Model")
|
|
|
merged_formalism_id = get_model_id("__merged_" + operation_name)
|
|
|
|