Writing business model statements in the editor

After you defined your business model elements, you can write statements in the editor by using the completion menu.

Before you begin

Create a business model file (.bmd) and define the entity and event types of your business model in the Definitions tab of the editor. The elements that you need to define depend on the type of statements that you want to write. For example, a shared aggregate statement requires the definition of an event and entity types, and an attribute for this entity with the data type numeric or number.

About this task

In the Statements tab of the business model editor, you write statements to give behaviors to your business model elements. For example, you can initialize entities or retrieve and calculate the value of entity attributes from external data.

Procedure

  1. In the Statements tab of the editor in the business model file, type the name of your concept, entity, event, or attribute, which is preceded by its article, as in the business model definitions. For example, to initialize a bank account, you can type an account in the editor.
  2. Press Space or Ctrl+Space to view the available constructs.
  3. Double-click a construct to insert it in the statement. For example, to initialize a bank account, double-click is initialized from <an event>.
  4. Continue building the statement by selecting the appropriate constructs.
  5. Complete the statement with a period (.).
  6. Continue to write the statements for your concepts, entities, events, and attributes.
  7. Save your business model file.

Results

The behavior of your business model elements is defined.

Example

The following statement initializes a bank account from an event.
an account is initialized from an open account event, 
   where this account comes from the account of this open account event.