Previous Topic: Defining the Project Entity

Next Topic: Defining Field Properties

Specifying Attributes for the Project Entity

One of the first considerations when defining an entity is what data it will store. In this section, you define fields for the Project entity: an identifier, a description, and start and end dates for a project.

To define the fields of the Project entity:

  1. If the Model Editor is not open, open it.
  2. From the object type list, select Entity.
  3. In the source object field, enter Project.
  4. From the verb list, select known by FLD.
  5. In the target object field, enter Project ID, and then press Enter.

    You just created the triple Project known by Project ID. This triple creates a primary key for the Project entity. For more information on how to change misnamed objects, see the section Misnamed Objects in this chapter.

  6. If the Object Browser is not open, open it.
  7. On the Object Browser, click the Fields toolbar button to display field objects.

    PLEX--Introducing the Object Browser

    PLEX--Specifying Attributes for the Project Entity

  8. Project should still appear in the source object field of the Model Editor. From the verb list, select has FLD.
  9. In the target object field, enter Project Description.
  10. Press Enter.

    You have created the triple Project has Project Description, which defines the field Project Description for the Project entity. You will use this field to store a description of the project. This triple, ENT has FLD, creates a non-key attribute. The values in non-key attributes do not need to be unique to each entity. For instance, you may have more than one project with the same text in the description field.

  11. Repeat Steps 8 and 9 to create the following triples:

    Project has Project Start Date
    Project has Project End Date

  12. On the Object Browser, click the Refresh toolbar button. The Object Browser shows the new fields:

    PLEX--Introducing the Object Browser

    PLEX--Specifying Attributes for the Project Entity (2)