Author Topic: How to debug profile import issues?  (Read 2095 times)

saramazer

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to debug profile import issues?
« on: December 19, 2019, 02:39:23 am »
Hello, I'm a solutions engineer for a NoSQL database company learning EA to support a common customer. We have a toolkit that converts UML into database entities. The profile has been created in MagicDraw and also tested in Papyrus, but doesn't seem to be working in EA. I've loaded in the profile using the resources window. It loads without errors and the name appears. However, when trying to add a stereotype to a class attribute, ours do not show.

I'm looking for general tips on how to debug and answers to some newbie questions such as:
1. What formats and versions of profiles are supported in EA?
2. Should I be using MDG wizard instead? If so, what file suffix is it looking for as the profile doesn't even appear in the folder when going through the wizard.
3. Is there logging somewhere to assist with debugging purposes?
4. Is it possible to load 3rd party .xml profiles directly for editing? .uml files?

For the complete repo of the toolkit I am working with see here for more info (d5 branch): https://github.com/mhavey/marklogic/tree/master/uml2es
For the exact profile I am working with, here is the direct link: https://github.com/mhavey/marklogic/blob/d5/uml2es/umlProfile/MLProfile.xml

Thank you for any and all advice you can provide.
Sara

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to debug profile import issues?
« Reply #1 on: December 19, 2019, 05:27:22 am »
Hu, what should I say? Getting a foreign profile into EA seems like a task for masochists. Even those created with EA are only debuggable via try and error. You might want to dig into EA's MDG possibilities. You will have to start from scratch since profile definitions in EA is just Sparxian. Prepare for a long walk.

q.

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: How to debug profile import issues?
« Reply #2 on: December 19, 2019, 10:07:19 am »
Hi Sara,

Like qwerty says it really can be a difficult task. After much trial and error I managed to get mine working but it took a while.

The best place to start is in the EAExample model where there are a few basic packages and elements devoted to this and this page too helped:

https://community.sparxsystems.com/tutorials/1232-using-stereotyped-relationships-to-define-quicklink-rules

Rupert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13416
  • Karma: +569/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to debug profile import issues?
« Reply #3 on: December 19, 2019, 07:43:38 pm »
Quote
1. What formats and versions of profiles are supported in EA?
I think the only format supported by EA is EA's own format.
Quote
2. Should I be using MDG wizard instead? If so, what file suffix is it looking for as the profile doesn't even appear in the folder when going through the wizard.
Yes, you should use the MDG wizard, but before you can do that you have to model your profiles in EA and export them as UML profile xml files.
Quote
3. Is there logging somewhere to assist with debugging purposes?
No, it either works or it doesn't. Trial and error. Start small and simple and add stuff one piece at the time. Test often.
Quote
4. Is it possible to load 3rd party .xml profiles directly for editing? .uml files?
No, I don't think so. You might be able to import a profile model using xmi, but I wouldn't bet on it. Probably easier to start from scratch.

Geert