|
@@ -48,6 +48,7 @@ Void function main():
|
|
al = import_node(al_location)
|
|
al = import_node(al_location)
|
|
pm = import_node(pm_location)
|
|
pm = import_node(pm_location)
|
|
tracability = import_node(tracability_location)
|
|
tracability = import_node(tracability_location)
|
|
|
|
+ log("Imported: " + cast_e2s(tracability))
|
|
|
|
|
|
// Create the Model itself and make public
|
|
// Create the Model itself and make public
|
|
core_formalism = import_node(core_location)
|
|
core_formalism = import_node(core_location)
|
|
@@ -909,13 +910,17 @@ Void function user_function_skip_init(user_id : String):
|
|
log("Start transformation!")
|
|
log("Start transformation!")
|
|
result = execute_operation(mapper_ID, inputs, outputs, tracability_model)
|
|
result = execute_operation(mapper_ID, inputs, outputs, tracability_model)
|
|
log("Transformation done")
|
|
log("Transformation done")
|
|
|
|
+ log("Result: " + dict_to_string(result))
|
|
|
|
+ log("Access " + cast_v2s(read_attribute(core, type_ID, "name")))
|
|
|
|
|
|
// Overwrite the previous rendered model; tracability updated in-place
|
|
// Overwrite the previous rendered model; tracability updated in-place
|
|
model_overwrite(result[read_attribute(core, type_ID, "name")], get_model_id(rendered_name))
|
|
model_overwrite(result[read_attribute(core, type_ID, "name")], get_model_id(rendered_name))
|
|
|
|
+ log("Overwrite")
|
|
|
|
|
|
// Also output the resulting model
|
|
// Also output the resulting model
|
|
output("Mapping success!")
|
|
output("Mapping success!")
|
|
output(pretty_print(rendered_name))
|
|
output(pretty_print(rendered_name))
|
|
|
|
+ log("Pretty printed!")
|
|
|
|
|
|
else:
|
|
else:
|
|
output("Permission denied")
|
|
output("Permission denied")
|