|
@@ -1067,13 +1067,15 @@ String function cmd_transformation_execute(user_id : String, transformation_name
|
|
output("Success: ready for AL execution")
|
|
output("Success: ready for AL execution")
|
|
elif (read_type(core, transformation_id) == "ManualOperation"):
|
|
elif (read_type(core, transformation_id) == "ManualOperation"):
|
|
output("Success: ready for MANUAL execution")
|
|
output("Success: ready for MANUAL execution")
|
|
|
|
+ else:
|
|
|
|
+ output("Success: ready for MT execution")
|
|
|
|
|
|
result = execute_operation(transformation_id, inputs, dict_keys(outputs), read_root())
|
|
result = execute_operation(transformation_id, inputs, dict_keys(outputs), read_root())
|
|
|
|
|
|
// Now write out the models again
|
|
// Now write out the models again
|
|
if (element_eq(result, read_root())):
|
|
if (element_eq(result, read_root())):
|
|
// Something went wrong!
|
|
// Something went wrong!
|
|
- return "Transformation failed: " + transformation_name!
|
|
|
|
|
|
+ return "Failure"!
|
|
else:
|
|
else:
|
|
keys = dict_keys(result)
|
|
keys = dict_keys(result)
|
|
while (read_nr_out(keys) > 0):
|
|
while (read_nr_out(keys) > 0):
|
|
@@ -1202,7 +1204,6 @@ String function cmd_transformation_add_MT_language(user_id : String, model_names
|
|
Element all_formalisms
|
|
Element all_formalisms
|
|
Element merged_formalism
|
|
Element merged_formalism
|
|
Element ramified_formalism
|
|
Element ramified_formalism
|
|
- String old_type_id
|
|
|
|
String type_id
|
|
String type_id
|
|
String location
|
|
String location
|
|
String new_model_id
|
|
String new_model_id
|
|
@@ -1216,6 +1217,7 @@ String function cmd_transformation_add_MT_language(user_id : String, model_names
|
|
if (model_id != ""):
|
|
if (model_id != ""):
|
|
if (allow_read(user_id, model_id)):
|
|
if (allow_read(user_id, model_id)):
|
|
type_name = read_attribute(core, set_pop(allAssociationDestinations(core, model_id, "instanceOf")), "name")
|
|
type_name = read_attribute(core, set_pop(allAssociationDestinations(core, model_id, "instanceOf")), "name")
|
|
|
|
+ type_id = get_model_id(type_name)
|
|
if (type_name != "SimpleClassDiagrams"):
|
|
if (type_name != "SimpleClassDiagrams"):
|
|
return "Can only RAMify models of type SimpleClassDiagrams"!
|
|
return "Can only RAMify models of type SimpleClassDiagrams"!
|
|
else:
|
|
else:
|
|
@@ -1833,7 +1835,7 @@ Void function user_function_skip_init(user_id : String):
|
|
elif (cmd == "model_list_full"):
|
|
elif (cmd == "model_list_full"):
|
|
output(cmd_model_list_full())
|
|
output(cmd_model_list_full())
|
|
elif (cmd == "transformation_add_MT_language"):
|
|
elif (cmd == "transformation_add_MT_language"):
|
|
- output(cmd_transformation_add_MT_language(user_id, set_input("Model names?"), single_input("RAMified metamodel name?")))
|
|
|
|
|
|
+ output(cmd_transformation_add_MT_language(user_id, set_input("Metamodel names?"), single_input("RAMified metamodel name?")))
|
|
elif (cmd == "transformation_RAMify"):
|
|
elif (cmd == "transformation_RAMify"):
|
|
output(cmd_transformation_RAMify(user_id, single_input("Metamodel name?"), single_input("Target metamodel name?")))
|
|
output(cmd_transformation_RAMify(user_id, single_input("Metamodel name?"), single_input("Target metamodel name?")))
|
|
elif (cmd == "transformation_add_MANUAL"):
|
|
elif (cmd == "transformation_add_MANUAL"):
|