Skip to content

DeleteRelationInstance

This event is triggered after a relation was deleted.

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 deleting the relation instance!

leo-grammar
	ON_EVENT "DeleteRelationInstance" {
	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 are deleting the relation instance..."
  }
	ON_EVENT "DeleteRelationInstance" {
	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 are deleting the relation instance..."
  }