Book a Demo

Author Topic: _instanceType  (Read 10774 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
_instanceType
« on: May 20, 2021, 12:20:30 am »
https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/supportedattributes_2.htmllists _instanceType as deprecated. But the link right above https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/defining_behavior_on_creating_.htmldoes not.

Worse: this actually defines which stereotype is set when creating an instance of a stereotype. How can this be deprecated? And if, what would it be replaced with?

q.
« Last Edit: May 20, 2021, 12:28:09 am by qwerty »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: _instanceType
« Reply #1 on: May 20, 2021, 08:09:03 am »
Your first link is incorrect; _instanceMode and _instanceOwner are deprecated. Your second link is correct.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: _instanceType
« Reply #2 on: May 20, 2021, 08:44:08 am »
You will notice your comrades, right?

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: _instanceType
« Reply #3 on: May 20, 2021, 09:23:00 am »
It's replaced with a metaconstraint with a umlRole of type, classifier, or behavior. It doesn't matter which you use, they are aliases for the same behavior that exist so you can use the "correct" on for the metaclass being extended.

https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/metaconstraint.html

In addition to the drop from the browser behavior and classifier selection dialog, it allows a many to many relationship and adds rules to the model validation.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: _instanceType
« Reply #4 on: May 21, 2021, 09:21:00 pm »
It's replaced with a metaconstraint ...
I visited that page before but now I get a more clear picture.So thanks for the pointer.

Should I say "thanks for the opportunity to write better documentation"? Maybe. But at least you should not publish wrong/contradicting documentation. That would be a good start. Linking from the Deprecation note to the page you pointed out shouldn't be that difficult too. Somehow I have the feeling your documentation department mainly consists of a single person being hopelessly overburdened. At least you have a huge QA department called Users :-/

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: _instanceType
« Reply #5 on: May 21, 2021, 09:57:51 pm »
Just as a follow up: When I define the instance via the property it will create exactly that on a drop as instance. Now I tried it with a meta constraint. And that just created an entry with my stereotype in the Drop As. The default however was "Invocation (Action)". How would I get my profile as the default?

q.

P.S. Seems like only when specifying _instanceMode too I get my stereotype as the default. So again: if that is deprecated, how do I get a substitute for it??
« Last Edit: May 21, 2021, 10:17:37 pm by qwerty »