// get your component classconst Person = runtime.require('Person');
// create a componentconst anakin = new Person({
'firstName': 'Anakin',
'lastName': 'Skywalker'
});
// update nickname
anakin.nickname('Darth Vader');
Try to update a component with a wrong type
// this update is non compliant with the model
anakin.nickname(42);
System Runtime will log this message
runtime: invalid type for property 'nickname': expected 'string' instead of 'number' on component '11d4012f0c18734'
Navigate through your components
// add a referenceconst luke = new Person({
'firstName': 'Luke',
'lastName': 'Skywalker',
'father': anakin
});
// get the first name of luke father
luke.father().firstName();