Write the definitions for your entities and events in the
editor by using the completion menu.
Before you begin
Create a business model file (
.bmd).
About this task
In the
.bmd file, you write the definitions
of your entity and event types. The editor provides auto-completion
and quick fixes capabilities. As you write the definitions for your
entities, events, concepts, and enumerations, the terms become available
in the content assist box of the editor. The completion menu proposes
terms and constructs that are already defined in the business object
model (BOM).
Procedure
- In the Definitions editor in the .bmd file, type
the name of your concept, entity, or event, which is preceded with the article a or an. For example, to define a ticket, you can type a
ticket in the editor.
- Press Space or Ctrl+Space to view the available constructs.
- Double-click a construct to insert it in the definition. For example, to specify that a ticket is an entity, double-click is a business entity.
- Continue building the definition statement by selecting
the appropriate constructs, and then typing a name for the attribute.
- Complete the statement with a period (.).
- To populate the content assist box with the new term, save
the file.
When you define a new term, you must save
the file to make it visible in the completion menu.
- Continue to write the statements that define your concepts,
entities, and events.
Results
When you save the
.bmd file, the business
object model is generated. A
model BOM entry
is created in the
bom folder. The BOM contains
the entity types or event types that are defined in the
.bmd file.
When you modify the
.bmd files, the BOM is synchronized.
The
folder structure under the bom folder defines
the package name of the BOM classes that are created from the definitions.
For example, the folder structure /bom/com/example/model/ creates
a package com.example.model in the business object
model.
Attention: You can navigate and view the generated
event and entity types in the BOM editor. However, to update or edit
your entities and events, use the .bmd file.
Example
The following statement defines a ticket entity with a ticket
id.
a ticket is a business entity identified by a ticket id.