diff --git a/mocha-common/compilers/yaml2mcl/mocha/library/parser/YAMLLibraryParser.py b/mocha-common/compilers/yaml2mcl/mocha/library/parser/YAMLLibraryParser.py index c30d9d9..572d770 100644 --- a/mocha-common/compilers/yaml2mcl/mocha/library/parser/YAMLLibraryParser.py +++ b/mocha-common/compilers/yaml2mcl/mocha/library/parser/YAMLLibraryParser.py @@ -109,9 +109,11 @@ class YAMLLibraryParser (LibraryParser): self.manager.assign_relationship(instanceId, rel_iid, relinst_iid) else: if "globalIdentifier" in relationshipValue: - globalIdentifier = Guid.parse(relationshipValue["globalIdentifier"]) + globalIdentifier = Guid.parse(self.manager.expand_entity_references(relationshipValue["globalIdentifier"])) + print("** using Guid from globalIdentifier '" + relationshipValue["globalIdentifier"] + "' **") else: globalIdentifier = Guid.create() + print("** created new Guid **") print("creating new instance for relationship '%s' with globalid '%s'" % (rel_iid, globalIdentifier))