Derived settable associations
No edit summary
No edit summary
Line 2: Line 2:
[[File:Derived settable class example.png|none|thumb|531x531px]]
[[File:Derived settable class example.png|none|thumb|531x531px]]


EAL for the Class2Selection end of the derived settable association.
OCL for reading Class2selection
self.Class2
EAL for the writing Class2Selection
  self.Class2 := vInputParameter;
  self.Class2 := vInputParameter;
  self.SelectionLog := self.SelectionLog + DateTime.Now.asString + ': '+ vInputParameter.Name + '\r\n'
  self.SelectionLog := self.SelectionLog + DateTime.Now.asString + ': '+ vInputParameter.Name + '\r\n'
Here is the sample model to be loaded into the designer: [[:File:DerivedSettableExample.modlr]]
Here is the sample model to be loaded into the designer: [[:File:DerivedSettableExample.modlr]]

Revision as of 09:44, 18 February 2021

Derived attributes & associations are read-only, but you can also have writable associations that update other attributes or links when they are themselves set. Read here Derived settable attributes about how that works on attributes.

Derived settable class example.png

OCL for reading Class2selection

self.Class2

EAL for the writing Class2Selection

self.Class2 := vInputParameter;
self.SelectionLog := self.SelectionLog + DateTime.Now.asString + ': '+ vInputParameter.Name + '\r\n'

Here is the sample model to be loaded into the designer: File:DerivedSettableExample.modlr

This page was edited 84 days ago on 02/10/2024. What links here