The OCL expression Editor
Product line
Standard
|Expert
Operating mode
CLOUD ABO
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
In order to enter OCL Expressions In Vertec, there is the OCL expression Editor. In it, you can find and assemble the desired expression from the Vertec data model.
Base |
The base type is specified. The OCL expression refers to this type, i.e. project in the example. |
Expression |
In this area, you can edit the OCL expression, either by typing it manually or by double-clicking the desired field on the right. |
Available fields |
Specifies the links, members, and operations that are available on the current type.
|
In the area below the expression, the Expression Editor reports whether the expression is valid or not.
In a list of projects, the total of the open services of the project leader per project should be shown. The list settings open the Expression Editor.
The project leader is selected by double-clicking or manually entering project leader in the Expression field. The Expression Editor now shows the following image:
The editor reports that the expression is OK and that the current type is now user. In the right part, the fields of the user appear, including Openperformance. Select it by double-clicking.
The editor now reports that the current type is a list of open services, and shows the fields of type Openperformance on the right.
Now select the valuetext field from the list (located below the blue fields) or type in .valuetext after the already existing expression, so that the expression reads: projectleiter.offeneleistungen.valuetext
. The 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 now click OK, the created expression will be carried over and shown in the corresponding list cell.