You have created a relationship. Now, you will add three roles
and key attributes for them.
The first role is called the GenericCustomer role. All customers
will have the attributes specified for this role. Generic roles like GenericCustomer
role are identified as managed roles. This task shows how to specify
a managed role.
To create the GenericCustomer role:
- Click the Add Role button
. The Data Type Selection window
opens.
- In the Filter by type, namespace, or file (? = any character,
* = any String) field, type CustomerBO.
- Select CustomerBO from the list of matching data types.
- Click http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/CustomerBO.xsd as
the qualifier.

- Click OK. The CustomerRelationship_CustomerBO
role is created.
- Scroll down to the Properties view, where you will rename the role
and define it as a managed role.
- On the left side of the Properties view, click the Description tab.
- To replace the generated name, in the Name field,
type GenericCustomer. For this exercise, do not refactor.
- Click the Details tab. Because Synchronize
with the name field is selected, the display name is updated automatically.
- Select the Managed check box.
- From the menu, click or press Ctrl+S.
You now have a role called GenericCustomer. The role has an error
flag, because it requires a key attribute. You will create that attribute
next.