IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Defining and transforming data > Create relationships > Create relationships using the New Relationship wizard

Adding roles

You can add a role to a relationship in several ways within the relationship editor.

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.

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.

Create relationships using the New Relationship wizard