Skip to content

CreateRelationInstance ​

This event is triggered when a new relation was created.

Parameters ​

ParameterDescription
componentidintValue, contains the ID of the concerned component (model, library, ...)
relationinstanceidintValue, contains the ID of the concerned relation.
relationclassidintValue, contains the ID of the concerned relationclass.
frominstanceidintValue, contains the ID of the from-instance of the concerned relation.
toinstanceidintValue, contains the ID of the to-instance of the concerned relation.

Exit value: ​

Remarks ​

See Also: ​

Example ​

Display the relation information after creating the relation instance.

leo-grammar
	ON_EVENT "CreateRelationInstance" {
	SET id_ComponentId: (componentid)
	SET id_RelationInstanceId: (relationinstanceid)
	SET id_RelationClassId: (relationclassid) 
	SET id_FromInstanceId: (frominstanceid) 
	SET id_ToInstanceId: (toinstanceid) 
	
	CC "AdoScript" INFOBOX ("Componentid:   " + STR(id_ComponentId)  + 
	"  RelationClassId:  " + STR(id_RelationClassId) + 
	"  RelationInstanceId:  " + STR(id_RelationInstanceId) +
	"  FromInstanceId:   " + STR(id_FromInstanceId) + 
	"  FromInstanceId:   " + STR(id_FromInstanceId))  title:"You have created the relation instance..."
  }