I'm having an issue, how do I use the getOwnedProfile() method correctly?
I'm fetching the ModuleComponent in my script by using this code snippet:
mc = Modelio.getInstance().getModelingSession().findByAtt(ModuleComponent, "Name", "BaseLines' GDPR udvidelse")
but I cannot get the OwnedProfile afterwards by using the getOwnedProfile() method - error message:
AttributeError: 'java.util.ArrayList' object has no attribute 'getOwnedProfile' in <script> at line number 33
Traceback (most recent call last):
File "<script>", line 33, in <module>
AttributeError: 'java.util.ArrayList' object has no attribute 'getOwnedProfile'
This is apparently not the correct way to get to the PropertyTableDefinition, even though it should be according to the Semantic model viewer?