|
@@ -270,7 +270,7 @@ String function conformance_scd(model : Element):
|
|
|
String complex_instance
|
|
|
String complex_type
|
|
|
String result
|
|
|
- all_complex_types = allInstances(model["metamodel"]["metamodel"], "ActionLanguage")
|
|
|
+ all_complex_types = allInstances(model["metamodel"], "ActionLanguage")
|
|
|
while (set_len(all_complex_types) > 0):
|
|
|
complex_type = set_pop(all_complex_types)
|
|
|
complex_instances = allInstances(model, complex_type)
|
|
@@ -278,8 +278,8 @@ String function conformance_scd(model : Element):
|
|
|
while (set_len(complex_instances) > 0):
|
|
|
complex_instance = set_pop(complex_instances)
|
|
|
|
|
|
- complex_type = read_attribute(model["metamodel"], read_type(model, complex_instance), "type")
|
|
|
- result = check_location_conformance(model["model"][complex_instance], complex_type)
|
|
|
+ // TODO check conformance of remote AL code (possibly recurse?)
|
|
|
+ result = "OK"
|
|
|
|
|
|
if (result != "OK"):
|
|
|
return "ActionLanguage attribute doesn't match for: " + complex_instance + "\n Message: " + result!
|
|
@@ -289,11 +289,10 @@ String function conformance_scd(model : Element):
|
|
|
String constraint
|
|
|
Element func
|
|
|
|
|
|
- global_constraints = allInstances(model, "GlobalConstraint")
|
|
|
+ global_constraints = allInstances(model["metamodel"], "GlobalConstraint")
|
|
|
while (set_len(global_constraints) > 0):
|
|
|
constraint = set_pop(global_constraints)
|
|
|
- log("Fetching global constraint at location " + cast_string(read_attribute(model, constraint, "global_constraint")))
|
|
|
- func = get_func_AL_model(import_node(read_attribute(model, constraint, "global_constraint")))
|
|
|
+ func = get_func_AL_model(import_node(read_attribute(model["metamodel"], constraint, "global_constraint")))
|
|
|
result = func(model)
|
|
|
if (result != "OK"):
|
|
|
return result!
|