Add Relationship Syntax

A relationship between two business objects is defined with the Add Relationship command.

add relationship NAME [ADD_ITEM {ADD_ITEM}];
  • ADD_ITEM provides more information about the relationship you are creating. The Add Relationship clauses are:
attribute ATTRIBUTE_NAME {, ATTRIBUTE_NAME} 
trigger EVENT_TYPE TRIGGER_TYPE PROG_NAME [input ARG_STRING]
description VALUE
from ADD_SUB_ITEM {, ADD_SUB_ITEM }
to ADD_SUB_ITEM {, ADD_SUB_ITEM }
[!|not]preventduplicates
derived RELATIONSHIP_NAME
abstract [true|false]
[!|not] hidden
property NAME [to ADMINTYPE NAME] [value STRING]
history STRING
dynamic[true|false]
compositional [composeeaccess MASK]  
icon FILENAME

The ADD_SUB_ITEM clauses are:

type TYPE_NAME {,TYPE_NAME}
type all
relationship RELATIONSHIP_NAME {,RELATIONSHIP_NAME}
relationship all
meaning VALUE
cardinality 1|one|many|n
revision none|float|replicate
clone none|float|replicate
propagatemodify
notpropagatemodify
propagateconnection
notpropagateconnection

The possible values for trigger EVENT_TYPE are:

Either the Derived clause or both the From and To clauses are required to make a relationship usable. However, each clause is beneficial when defining relationships.

The value for composeeaccess [MASK] is a comma-separated list of any valid access masks, such as show,read,.... For a list of all the access masks, see Access Privilege Definitions.