Skip to main content Skip to complementary content
Close announcements banner

Adding simple type elements to entities

Availability-noteDeprecated

About this task

You need to add elements to the business entities you have just created in Creating entities in a data model using a graphical designer.

The following example introduces how to add simple type elements to the entity Agency.

Procedure

  1. From the Palette, click Element and then click in the upper part of the entity.
    A dialog box pops up.
  2. Keep the default option Simple Type and click Next.
    The Create Element dialog box pops up.
  3. In the Business Element Name field, enter a name for the new element.
  4. In the Type area, select an appropriate type for the new element. In this example, select string from the Built-in Type list.
    You can also select a custom type from the Custom Type list. By default, several custom types are available, for example, UUID, PICTURE, and URL. If needed, you can define custom types according to your needs. For more information, see Adding custom type elements to entities.
  5. Set the number of maximum and minimum occurrences according to your needs. In this example, to make the Name element mandatory, set 1 to both occurrences.
    You can also define multi-occurrence attributes by setting a specific number in the Maximum Occurrence field, or select the Unbounded check box so that the maximum number of occurrences is not bounded.
  6. Click Finish to close the dialog box.
    The new element Name of string type is added to the Agency entity.
  7. Repeat the procedure to add as many elements as needed to the entity Agency.
    In this example, add the following:
    Business Element Name Type Minimum Occurrence Maximum Occurrence
    City string 0 1
    State string 0 1
    Zip string 0 1
    Region string 0 1
    MoreInfo MoreInfo (custom type) 0 1
  8. Repeat the procedure to add as many elements as needed to the entity Agent.
    In this example, add the following elements:
    Business Element Name Type Minimum Occurrence Maximum Occurrence
    Firstname string 1 1
    Lastname string 1 1
    CommissionCode string 1 1
    StartDate date 1 1
    TermDate date 0 1
    Status string 0 1

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!