question-circle PropertyTable default values are not enforced

1 week 4 days ago #5433 by craae
Default values defined for properties in PropertyTables (assigned to Archimate MetaclassReferenced) are not enforced when new ArchiMate element instances are created.

I have just realized that through a query there properties with default values were assigned. (All the default values are not preset as expected). How do I enforce such a preset of those default values?

BR
Claus
# Test

print "Model"
Model = Modelio.getInstance().getModelingSession().getModel()
print Model
print "Roots (LibraryRoots): "
print Model.getLibraryRoots()
print "Roots (ModelRoots):"
print Model.getModelRoots()
print

modelingSession = Modelio.getInstance().getModelingSession()
print "Metamodel Extensions:"
print modelingSession.getMetamodelExtensions()
print

print modelingSession.getRequirementModel()
BPCollection  = Modelio.getInstance().getModelingSession().findByClass(BusinessProcess)
print BPCollection

for element in BPCollection:
	print element
	print element.getName()
	for prop in element.getProperties():
		print prop.getName()
		print prop
		print prop.getContent()

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.030 seconds
^ Back to Top