Book a Demo

Author Topic: Element creation using template  (Read 4738 times)

Henrique Narciso

  • EA User
  • **
  • Posts: 86
  • Karma: +0/-0
    • View Profile
Element creation using template
« on: January 26, 2009, 08:39:14 pm »
Hello,

I have established a template for a Change type element in a template folder. Executed all the steps in the manual.

If I am in a diagram and do a right click > New element or conector> change, it works fine, the element comes with all the tagged values that are specified in the template.

However, If I do the same in the Project Browser, in a package element ou do an import from a CSV file, the elements are created as change, but without the tagged items specified in the template.

Does anyone know a solution for this?

I have to import 40 or so Change elements from a CSV file and just don't like the manual aproach.

Thank you in advance.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Element creation using template
« Reply #1 on: January 27, 2009, 11:51:33 am »
If you have set up a Profile for the Elements - and set the CSV import of the Stereotype to the Profile name - then you can try the Tagged Value synchronize function:
http://www.sparxsystems.com/uml_tool_guide/what_is_uml_modeling/synchronizetagsandconstrain.html

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Element creation using template
« Reply #2 on: January 27, 2009, 07:12:30 pm »
Quote
If you have set up a Profile for the Elements - and set the CSV import of the Stereotype to the Profile name - then you can try the Tagged Value synchronize function:
http://www.sparxsystems.com/uml_tool_guide/what_is_uml_modeling/synchronizetagsandconstrain.html

And here again comes the Resource window into play- which Sparxians have stated not to use when working with UML profiles because the recommended way is to work with MDG technologies.
In that case the Resource window does not hold the profiles and synchronising does not work.

Dermot or whoever at Sparx is able to make that statement- can somebody please definitely clarify this issue? Is the Resource window still a valid and recommended option for working with profiles?

Oliver

Henrique Narciso

  • EA User
  • **
  • Posts: 86
  • Karma: +0/-0
    • View Profile
Re: Element creation using template
« Reply #3 on: January 27, 2009, 10:12:01 pm »
Only a work around?
So it seems I have no option than to use the profile instead of the template.

It's quite odd that the EA doesn't use the same function to execute the same functionality. why does it have diferent behaviour from a diagram to the explorer folder?

I will try to use the synchronize, even dough it's not the path I was searching for.

Oliver, since I'm new to this issue, should I will be carefull while doing this? your post seems like a big warning sign post.
« Last Edit: January 27, 2009, 10:14:32 pm by hnarciso »

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Element creation using template
« Reply #4 on: January 27, 2009, 10:59:19 pm »
Quote
Oliver, since I'm new to this issue, should I will be carefull while doing this? your post seems like a big warning sign post.

My post is not directly related to your issue. However some Sparx staff members have stated last year that using the resource window to import a UML profile is not any more recommended. On the other hand lately several posts from Sparx are pointing to the resource window when talking about UML profiles. This is somehow confusing and I would like to know which directions they are officially heading to because it has a high impact on the way people are working.

Oliver

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Element creation using template
« Reply #5 on: January 28, 2009, 03:28:28 pm »
I have verified that the synchronisation of imported elements with the stereotype set -  does create the correct set of Tagged Values.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Element creation using template
« Reply #6 on: January 28, 2009, 04:13:49 pm »
Oliver:

Quote
However some Sparx staff members have stated last year that using the resource window to import a UML profile is not any more recommended. On the other hand lately several posts from Sparx are pointing to the resource window when talking about UML profiles. This is somehow confusing and I would like to know which directions they are officially heading to because it has a high impact on the way people are working.

Importing a profile through the resources menu isn't recommended as the profile on its own doesn't contain the full set of information required to make it complete in complex cases (eg where a profile makes use of a custom tagged value type definition).

Consequently we recommend people to export their profile as per usual, but package it within an encompassing MDG technology that includes all the relevant additional information.

That does not make using the resource window an invalid method, just an incomplete one (in some cases). It's prudent, in our case, to consider both possibilities when trying to trouble shoot.

Henrique:
This behaviour isn't currently implemented as CSV actually came before Profiles/Technologies (AFAIK), and the templated tagged values weren't a consideration at that point.

Please consider submitting a feature request if you would like to see this behaviour added.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Element creation using template
« Reply #7 on: January 28, 2009, 09:39:06 pm »
Quote
Consequently we recommend people to export their profile as per usual, but package it within an encompassing MDG technology that includes all the relevant additional information.

Michael, thanks for the clarification.
However this still leaves some questions open- we now have two ways of dealing with UML profiles of which both are incomplete.
According to your statement there is the (old) way of using the resource window which lacks dealing with certain information types but which is told to be used for workarounds and there is the actual way of using MDG technology files which however lack the (important) capability of synchronising the tagged values (which exists in the resource window).

Talking about consistency I would have expected that the new method holds all features of the old one plus improvements, now there is a new methods with improvements (tons of) but lacks the legacy features.
Can we expect the tagged value synchronisation for MDG encapsulated profiles somewhere in the next releases?

Thanks,

Oliver


Henrique Narciso

  • EA User
  • **
  • Posts: 86
  • Karma: +0/-0
    • View Profile
Re: Element creation using template
« Reply #8 on: January 29, 2009, 07:31:15 am »
MRF,

so you recomend at this point I implement a profile fo the change elements or whatever I use.

how do I import from a CSV then? just like I would using a template?