expand entity references during relationship compilation

This commit is contained in:
Michael Becker 2024-11-01 23:02:55 -04:00
parent 53d7ac9569
commit c973bb852d

View File

@ -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))