Previous Topic: Defining the Project Entity

Next Topic: Defining Field Properties

Specifying Attributes for the Project Entity

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

  1. Open the Model Editor by choosing Model Editor from the Tools menu, or clicking the New Model Editor toolbar button.

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

    Specifying Attributes for the Project Entity (10)

  2. From the object type list, select Entity.
  3. In the source object box, enter Project. 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 then press the first letter of the verb you are looking for until the verb appears. To select the known by FLD verb, you press the k key once.

  5. In the target object box, enter Project ID.
  6. Press Enter.

    The Model Editor should now look like this:

    Specifying Attributes for the Project Entity (2)

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

  7. If the Object Browser is not open, click the Show/Hide Browsers toolbar button to open it.

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

  8. Click the Fields toolbar button on the Object Browser to display field objects.

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

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

    Other fields are already defined: Employee Email Address, Employee Hire Status, and so on. The Employee entity and its fields are already defined in the model you are working with, to save time.

  9. Project should still appear in the source object box in the Model Editor. Select has FLD from the verb list (you can click the verb list and then press the h key twice).
  10. Enter Project Description in the target object box.
  11. 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 instance, you can have more than one project with the same text in the description field.

  12. Repeat Steps 9-11 to create the following triples:

    Project has Project Start Date
    Project has Project End Date

  13. Click the Refresh toolbar button on the Object Browser. The Object Browser shows the new fields:

    Specifying Attributes for the Project Entity (5)

    Specifying Attributes for the Project Entity (6)