Adding roles
You can add a role to a relationship in several ways within the
relationship editor.
About this task
- Adding a role using the menu
- Add a role to a relationship by using the menu of the relationship by right-clicking and selecting Add Role.
- Adding a role using the Add Role button
- Add a role to a relationship using the Add Role button on the Role Section toolbar.
Either way of adding a new role to the relationship will launch the Data Type Selection window to choose the data type which forms the base of the role.
You can select a business object,
simple XSD types, or types defined in interfaces as the data type for the
role. The Data Type selection window shows all data types that are in the
scope of the role that will be created. This means that if the relationship
is located in a module, data types from these modules and all referenced libraries,
are shown in the window. If the relationship is located in a library, then
all data types in the workspace are offered.
Note: Exercise caution when editing
the data type as it might result in an incorrect role if attributes,
which are used as key attributes, are changed or deleted. Selecting a new
data type will launch the Select Data Type window, which will offer all available
data types which are in the same scope as the role. If you use drag
to select a different data type, ensure that the data type is within the scope
of the role, as otherwise an error message will occur.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15