Book a Demo

Author Topic: Making a custom UML profile and register it with EA  (Read 5450 times)

Deepu M

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Making a custom UML profile and register it with EA
« on: October 20, 2020, 12:22:46 am »
Hello,

I would like to create a custom profile for my organization where I can define my stereotypes which can be later used in my modeling to classify elements.

As part of that, I have just gone through the following link.
https://sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/workingwithprofiles.html

I was able to create the profile with stereotypes, my actual intention is to deploy my profile in EA in such a way that when I select a block to apply the stereotype using the property window along with the already available profiles, my custom profile should also be visible there.

I tried to publish the profile package I created and I am getting the following error "Error processing XML document Access denied"


Is it possible with EA. Any help to solve this problem will highly be appreciated.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Making a custom UML profile and register it with EA
« Reply #1 on: October 20, 2020, 12:37:29 am »
What did you do exactly, and what error do you get?

Looks like you are trying to write to a read-only location (such as the program files)

Geert

Deepu M

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Making a custom UML profile and register it with EA
« Reply #2 on: October 20, 2020, 05:54:36 pm »
Hi

These are the steps which I did for creating a custom profile.

1. Added a UML package diagram
2. Drag a profile item from the tool box to the package diagram area(As a result of this,a package with profile stereotype created)
3. Added a class diagram to define new stereotypes inside the new profile stereotyped package.
4. Used the Profile Helpers from the tool box to add new stereotypes.
5. Try to publish the profile package using the option after selecting the package (Specialize ->Publich-Tech->Publish Package as UML Profile

I don't know whether this is the right way to make a custom profile.

Any help for solving the issue will highly be appreciated.

Best Regards
Deepu Manoharan

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Making a custom UML profile and register it with EA
« Reply #3 on: October 20, 2020, 06:16:55 pm »
That seems to be a correct sequence of things.

Now where exactly are you trying to save the xml file? I believe the default suggested location is the program files, which is made read-only by windows.
Or do you get that error before you select a file location?

Have you tried publishing the diagram as UML profile?

Geert

Deepu M

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Making a custom UML profile and register it with EA
« Reply #4 on: October 20, 2020, 07:08:22 pm »
Hi,

Now , I was able to publish it to an xml file(The error there was the EA is not creating the XML file automatically, We need to explicitly create the XML file before publishing it).

When I select the ALL UML perspective, my profile is not listing after publishing it.

Any other steps there for make my profile visible there? At the moment, I published to a folder which created in C Drive. Is there any specific location where I can publish this in order to visible this in EA.

Best Regards
Deepu M



Best Regards
Deepu M

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Making a custom UML profile and register it with EA
« Reply #5 on: October 20, 2020, 07:25:22 pm »
Hi,

Now , I was able to publish it to an xml file(The error there was the EA is not creating the XML file automatically, We need to explicitly create the XML file before publishing it).

When I select the ALL UML perspective, my profile is not listing after publishing it.

Any other steps there for make my profile visible there? At the moment, I published to a folder which created in C Drive. Is there any specific location where I can publish this in order to visible this in EA.

There should not be any need to create a file yourself. Simply specifying the filename should be enough.

Publishing the profile is only step 1

Step 2: Generate MDG file, containing your profile xml
Step 3: Load the MDG file into EA. This can be done in different ways, I always import my MDG files into the model, but you can also reference it as file, or load it in your profile.

Geert

PS. you can also import the profile file directly, but that is only a temporary test solution. Creating the MDG file takes only a minute or two.


Deepu M

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Making a custom UML profile and register it with EA
« Reply #6 on: October 21, 2020, 09:04:05 pm »
Hi,

Thanks for your support.

I was able to generate the MDG Technology for my custom made UML profile.
The MDG technology that I can view it in the "Manage MDG Technology" area.
I can apply the stereotypes which I defined to my sysml blocks from my profile.

The issues I faced during the generation of the profile and MDG technology are related to run EA as administrator.

Best Regards
Deepu M