Author Topic: process TV between relationships and elements  (Read 4971 times)

elr

  • EA User
  • **
  • Posts: 47
  • Karma: +0/-0
    • View Profile
process TV between relationships and elements
« on: April 09, 2025, 04:24:18 am »
Hello everyone,

Is there any possibility to achieve the following goal:

1. Three classes A, B, and C
2. Define an oriented relationship with let's say a "Percentage" tag value) where
A -> C at 40% and B -> C at 20%.
3. These settings would make a C tag value updated or C shape changed, based on an arithmetic computation for instance.

Could this process be possible in EA ?
Thx for your advices.

Eric

MichPaule

  • EA User
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: process TV between relationships and elements
« Reply #1 on: April 09, 2025, 03:58:56 pm »
Hello Eric,

it is possible - with limitations.
Assuming the setup of the stereotypes containing the tags is done you have 2 options for the calculation of the tag values:
1) Run a script on demand to update all tags in the model.
2) Use a scriptlet to update the tag of this class upon opening a diagram containing the class.
Both methods have their specific shortcomings but as long as we don't have the concept of "calculated tags" (like e.g. PTC Windchill Modeler) this is the best we can get.
Best regards

Michael

elr

  • EA User
  • **
  • Posts: 47
  • Karma: +0/-0
    • View Profile
Re: process TV between relationships and elements
« Reply #2 on: April 13, 2025, 02:00:46 am »
Thank you MichPaule.

What do you mean by "scriptlet" compared to VBscript, Jscript or JS scripts ?  ???



MichPaule

  • EA User
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: process TV between relationships and elements
« Reply #3 on: April 14, 2025, 04:04:10 pm »

JoNijsen

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: process TV between relationships and elements
« Reply #4 on: April 24, 2025, 09:39:29 pm »
An other option is to create a Javascript Addin, see https://sparxsystems.com/enterprise_architect_user_guide/17.0/add-ins___scripting/modeladdins-create.html
I run formulas defined in constraints of the element to calculate with tagged values when a tagged value is changed