Create Object Relationships within the Same AWM model

In order to create relationships via drag and drop, dragged objects must be dropped on a target that supports relationships which refer to the source object(s) by a "Target ID" attribute. The relationship can be manually created using the context menu's New Child command.

Example:

Creating property relationships for a structured file descriptor:

Manual/Conventional Methods Using Drag and Drop or Copy and Paste
  1. Right-click on a File Descriptors File Descriptor, and then right-click New Child > Property.
  2. Click the new property, then the empty cell next to Target ID in the Properties view.
  3. Select the target property to be referenced in the Target ID list.
  4. Repeat these steps for all required properties.
  1. Select all of the required properties.
  2. Drag and drop or copy and paste the selection on the File Descriptor. See Figure 1.

    This opens the Create Relationships dialog box which displays a preview of the relationship to be created.

  3. Click OK.

    This adds the property to the File Descriptor.

Figure 1. Creating relationships via drag and drop
Creating relationships via drag & drop.

You can drag and drop relationships (containing a Target ID attribute), in which case the model editor uses the referenced objects of the selected relationships in the command. See Figure 2.

Figure 2. Creating relationships from other relationships
Creating relationships from other relationships

Dropping the selected relationships opens a Create Relationships dialog box. This displays the relationships to be created. If more than one relationship type is possible for the selected objects, the user is prompted to choose the type of relationships to be created. See Figure 3. The type can be chosen by clicking the corresponding option and then clicking OK.

Figure 3. Choosing relationship type
Choosing relationship type

For example:

  • Copying a tool descriptor and pasting it on an action descriptor creates a "has tool" relationship.
  • Dragging several "File Descriptor Has Property" relationships onto an element list structure creates "Element List Has Column" relationships.
  • Copying properties and pasting them on an "Execute OS Command" tool descriptor creates either a "Tool Has Input Parameter" or "Tool Has Output Parameter" relationships, depending on your choice.
  • Nothing happens if a tool descriptor is dragged onto an element type, since element types do not have direct relationships to tool descriptors.
Restriction: It is currently only possible to create parameter relationships on tool types which do not already have predefined parameters.