The OCL expression editor
Operating mode
Cloud Suite
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
To make it easier to enter Ocl expressions in Vertec, there is the OCL expression Editor, which allows you to search and compose the desired expression from the Vertec data model.
Base |
The base type is specified. The OCL expression refers to this type, in this example project. |
Model language |
The OCL Expressions are available in both English and German as of version 6.8. The two languages can also be mixed. In order to use the code completion support (see below) in the OCL editor in both languages, the OCL editor can be switched ad hoc here. This does not change the current model language, but only the data model is shown in the OCL editor in the other language for easier input. |
Expression |
In this area, the OCL expression is edited, either by typing it manually or by double-clicking on the desired field on the right. |
Available fields |
Specifies the links, members, and operations available on the current type.
|
In the area below the expression, the Expression Editor displays whether the expression is valid or not.
In a list of projects, the total of the open services of the project leader should be shown for each project. The Expression Editor is opened via the List Settings settings.
Type projektleiter
under Expression (1). The editor reports that the expression is OK (2) and that the current type is now user. In the right part, the fields of the user appear, including open services. Select this in the list by double-clicking (3) or type it manually.
When editing OCL Expressions, a description (in English only) of the field is shown below the available fields (4). This description is also shown as a tooltip (5) when manually typed. The code completion appears in the selected language.
The editor now reports that the current type is a list of open services, and shows the fields of type OpenService on the right.
Now select the value text field from the list or type in .wertext after the existing expression so that the expression reads: projektleiter.offeneleistungen.wertext
. Editor now shows the following:
The current type is now a list of numeric values (currency), and in the right part only yellow entries (operations) are visible. Select ->sum to sum the numbers.
The current type is now a single numeric value, namely the sum of all open services of the project leader. If you click on OK, the created expression will be transferred and shown in the corresponding list cell.