EKL Client
EKL Client is the most practiced side of EKL. Most knowledge features are written on
the EKL Client side.
Knowledge Features of EKL Client
The most common knowledge features on the EKL Client side include:
- Rules (in 3D shape and Knowledge Engineering Specifications)
- Expert rules and expert checks
- Functions/methods in know-how libraries
- Actions/reactions
- Knowledge language operation in Know-how Apps Components (KAC)
- Actions in Know-how Apps User Experience
- BI Essentials customization (CATRule files)
- Business Rules (client side)
The EKL Client used in these features is a language built from the C++ language. The
functions and methods (API) used in these features are implemented in C++.
EKL Server
The EKL Server is the one you write to parameterize the behavior during transactions
between the client and the server.
The EKL Server takes place in the following Resource Set IDs:
- Business Logic for validation on a server.
- ER Generic Server Openings (also called Precommit Triggers).
- Business Logic for the 3DEXPERIENCE
dashboard.
The EKL server is not built from C++. It is implemented based on the Java language.
For this reason, there are major differences between the EKL Client and Server sides even
if the general syntax of the language is similar.
Explanative Tables
The tables below provide a better understanding of the differences between the EKL
Client and Server.
| Core Language |
EKL Client |
EKL Server |
| Variables Declaration |
The variables can be declared anywhere in the code. |
All variables must be declared at the beginning of the code. |
| let s1, s2 (String) |
|
|
|
let x = 3
let s = "Foo"
|
|
|
| if () {} else if {} else {} |
|
|
| for i while () {}, for x inside List {} |
|
|
| Loop initialization |
|
|
| set x = y |
|
|
| and, or, <, <=, >, >=, ==, <> |
|
|
| operators +, - , *, /, **, = |
|
|
| Constants "Hello", 3, 3.4, 0.1 E-10, with units |
|
|
| Constants: NULL, false, true, PI, E |
|
|
| accessing attributes and methods: . or -> |
|
|
| break, continue, exit |
|
|
| Include (reusable functions/methods) |
|
(not possible to use know-how libraries) |
| Core Types |
EKL Client |
EKL Server |
| Boolean, String, Integer, Real, Date, Enumere |
|
|
| Magnitudes (LENGTH, MASS, …) |
|
|
| Root types: Feature, ObjectType, Literal, UndefinedType |
|
|
| Type |
|
|
| List |
|
|
| RuleContext |
|
|
| VolatileInstance |
|
|
| Pointer, ValuePointer |
|
|
| Core Attributes, Methods, and Functions |
EKL Client |
EKL Server |
| Introspection: IsASortOf, PrimaryType, FindType |
|
|
| Attribute
access: GetAttribubte(String,Integer,Real,Boolean,Date), SetAttribute(String,Integer,Real,Boolean,Dimentsion,Date); HasAttribute,
ListAttribute, AttributeType |
|
|
| Trace |
|
|
| new |
|
(even though not clear about when to use this on the server side) |
| AddExtension, RemoveExtension |
|
|
| Mathematics: int, trigonometric functions, sqrt, log, In, exp, abs, not,
ceil, floor, round, mod, interpolation |
|
|
| Mathematics: min, max |
min/max( arg1: Real, arg2: Real, … )
Or
min/max( arg1: Real, arg2: List)
|
min/max( arg1: Real, arg2: Real, … ) |
| Work on strings: Search, Extract, Length, ToString, ToReal,
BuildMessageNLS, like, notlike, ReplaceSubText, ToUpper, ToLower,
DateFormat |
|
|
| Navigation: Children, Query, Owner |
|
Partial |
| Accessing the instance of a reference: Reference |
|
Use.Children.GetItem(1) instead |
| Access, IsOwnedBy |
|
|
| Work on lists |
|
All methods are available except the following:Intersect, Junction, Subtract
|
| Interaction: Message, Notify, Question, PopUpMessage,
BuildMessageNLS |
|
|
| BuildDeferredMessageNLS |
|
|
| Sub characteristics of
literals: {Inferior,Superior}Range/Tolerance{Min,Max}/Constant/Hide/Show
|
|
|
| Sub characteristic of attributes: GetAttributeValuePointer |
|
|
| GetEditorRoots |
|
(there is no concept of session on server side, therefore no concept of
root of session) |
| GetEditorRootOccurrences |
|
(no occurrence on server) |
| Library of Types, Methods, and Functions |
EKL Client |
EKL Server |
| SystemPreference, SystemSetting |
|
(no model of settings/preferences on server side) |
| Retrieving: RetrieveSystemPreference, RetrieveSystemSetting |
|
|
| Positioned3DObject |
|
|
| Occurrences |
|
|
|
Data Setup
AccessResource
Accessing resource tables
|
|
|
| Update |
|
|
| Functions/Methods on occurrence |
|
|
| Assembly functions: CreatePublication, CreateConstraint, RemoveInstance,
ManageInstance |
|
|
| DTSheetType, XMLDocument, TextFile |
|
(files cannot be read on server) |
| Reading files: CreateSheet, CreateXMLDocument, OpenTextFile |
|
(files cannot be read on server) |
| All methods related to file types |
|
(files cannot be read on server) |
| Web Services calls |
|
|
Error Management
The tables below provide a better understanding of the differences between the EKL
Client and Server.
| Error Management |
EKL Client |
EKL Server |
| DisableErrors() |
|
|
| EnableErrors() |
|
|
| MatchPattern() |
|
|
| GetUniqueKey() |
|
|
|