Previous Topic: Project Entity and TriplesNext Topic: Field Inheritance


Specify Attributes for the Project Entity

You must add triples to the model before you start working with it. In the next series of steps you add the following triples to the model:

Project known by Project ID
Project has Project Description
Project has Project Start Date
Project has Project End Date

To specify attributes for the Project entity

  1. Click Model Editor from the Tools menu.

    The Model Editor appears. You can see some triples already entered in the Model Editor.

  2. Select Entity from the Object type list.
  3. Enter Project in the source object box. Even though you have not specified anything about projects yet, you can type its name and CA Plex adds the entity to your model.
  4. From the Verb list, select known by FLD.

Note: Instead of scrolling in the list, you can click the verb list, and press the first letter of the verb you are looking for until the verb appears. To select the known by FLD verb, press the K key once.

  1. Enter Project ID in the target object box, and press Enter.

    The Model Editor should now look like this:

    Specify Attributes for the Project Entity

    You just created the triple Project known by Project ID. This triple defines a primary key for the Project entity.

  2. If the Object Browser is not open, click the Show/Hide Browsers toolbar button to open it.
  3. Click the Fields toolbar button on the Object Browser to display field objects.

    Notice the Project ID field you just added. All of the objects you define in a local model appear at the top of the Object Browser. Pattern library objects appear below the local objects.

    Specify Attributes for the Project Entity (2)

    Notice that the Employee entity and its fields Employee Email Address, Employee Hire Status, and so on have already been defined in the model you are working with.

    Project should still appear in the source object box in the Model Editor.

  4. Select has FLD from the verb list.
  5. Enter Project Description in the target object box.
  6. Press Enter.

    You have created the triple Project has Project Description, which defines the field Project Description for the Project entity. You 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 example, you may have more than one project that has the same text in the description field.

  7. Repeat Steps 8 to 10 to create the following triples:

    Project has Project Start Date
    Project has Project End Date

    Click the Refresh toolbar button on the Object Browser.

    The Object Browser shows the new fields:

    Specify Attributes for the Project Entity (3)