🚀 Welcome to
MDriven Learn
– Don’t miss the
latest Release Notes
.
X
Documentation
Training
Q & A
Model Examples
Best Practices
Copyright 2023 © M
Documentation
Training
Q & A
Model Examples
Best Practices
Release Notes
Glossary
Documentation
Discussion
View source
View history
QR code
E-Mail
Navigation Menu
OCL
Start here
OCL overview
What is OCL?
Part 1: Common expressions
Part 2: Operators
OCL by example (videos)
OCL explained through SQL
Basic syntax and types
Precedence rules
Escape codes
Boolean
String
Double
DateTime
Creating numeric types
Collections
oclIsUndefined
oclIsInvalid
asString and default text
ChangeTime
Writing expressions
Writing OCL expressions
Turnkey session 7: Expressions
if then else endif
Collection operator examples
Methods implemented in OCL
OCL Debugger
Evaluate expressions at run time
Operators by kind
All OCL operators
General operators
Collection operators
Collection operators
one
product
Qualify_GenericAt0
Collection of strings
Logic and comparison
Boolean operators
Comparison symbols (<>, =, <, >)
< (less than)
Numbers and arithmetic
Number operators
Number conversions
- (minus)
* (multiplication)
/ (divide)
% (modulus)
Char to int and back
Hex to decimal
Strings and text
String operators
Comparing strings
toLower and ToInteger
Regular expressions
Text encoding
Split a time string to a value
State value as a string
Actions with EAL
EAL overview
Learn EAL
What EAL is and does
:= (assignment)
Assignment in OCL vs EAL
whentrue
whenfalse
foreach
Create, change and delete objects
create
delete
setToNull
Deep cloning objects
deepclone
stateMachineTrigger
Save
Refresh
Change collections
add
addReturnIndexOf0
insertAt
remove
removeAt
clear
ViewModels, navigation and UI
ExecuteAction
ExecuteCurrentActionAgainOnce
Navigate
ShowActionMenuForCurrentInNesting
RunServerSideViewModelNow
GetGridAsTabSepData
ViewModelAsJSon
ExecuteFetchHints
Import, export and transform
ApplyTaJson
transform
XmlToObjects
XmlValidateWithSchemas
XsltTransformXml
REST and remote Turnkey calls
RestGet
RestPut
RestDelete
RemoteTurnkeyConnectGetSessionKey
RemoteTurnkeySetStringValue
RemoteTurnkeySetByteArray
RemoteTurnkeyGetByteArray
RemoteTurnkeyExecuteAction
RemoteTurnkeyCloseSession
SuspectExternalUpdateInvalidate
Querying the database
OCL-PS overview
Running OCL in the database
PSExpression (older DB access)
ExecutePS
Using ExecutePS in selfVM
allInstancesAtTime
Tips, pitfalls and advanced topics
Date vs Time
Set vs Bag
Case sensitive or not
Acting on object changes
OCL and LINQ
Custom types and operations
ClassFromString
XML Persistence
Documentation
/
ChangeTime
ChangeTime
Share
Facebook
X (Twitter)
Copy link
Definition
ChangeTime is ...
The content for this page will be added soon.
Categories
:
Intermediate-Friendly
OCL (Object Constraint Language)
OCL Basics & Syntax
Priority 50