Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Pawel Jasinski

Pages: [1] 2
1
> I think the key point is the "no deletes".
> When you import a package from xmi (or native xml) it will delete anything that isn't defined in the file.

I can't comment on xmi, no experience.
However native xml package import (not project import) will not touch elements unless the elements are in the imported scope in model (package subtree) or have a guid match within the import file.
The experiments indicate that some of the connectors crossing the import boundary are removed and some are preserved. Somewhere in the documentation there is a rule based on a connector ownership.
For no deletes, agree, there are always sql deletes for things linked with elements (e.g. tagged values are always deleted and reinserted). But the actual elements are updated with sql update statements.
I also recall something about object sequence going one up because of extra placeholder element temporarily inserted into the model.

2
I just tested it using native xml package import, gui and ImportPackageXMI.
In both cases sparx preserves object_id and guid of the updated elements, you have to make sure to deselect Strip GUID.
The exact sparx version is 16.0.1604
Code: [Select]

import win32com.client

try:
    repo = win32com.client.Dispatch("EA.Repository")
    print(repo.OpenFile(r"C:\must-be-absolute-path\for-gregor-target.qeax"))
    print(repo)

    project = repo.GetProjectInterface()
    print(project)
    error = project.ImportPackageXMI(
        PackageGUID="{7D0CD74B-DA8A-44b9-AB02-9D129B3071EC}",  # this is guid of the existing package to be updated
        Filename=r"C:\redacted-full-path\adim1-v1.1.xml", # this is native xml with package file where root Package element has matching guid attribute
        ImportDiagrams=True,
        StripGUID=False,  # translates to "update" existing
    )
    print(error)

finally:
    repo.CloseFile()
    repo.Exit()



Code: [Select]
<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<Package name="adim1" guid="{7D0CD74B-DA8A-44b9-AB02-9D129B3071EC}">
  <Table name="t_package">
    <Row>
      <Column name="Package_ID" value="7"/>
      <Column name="Name" value="adim1"/>
...

3
Did you try anything using gui?
If yes, what didn't work?

4
Thanks Geert,

We have 2 use cases.
1. Models which we can't change with a lot of unprofiled tags. It would be very convenient to see stereotype, object_type and tagged values without additional clik.
2. Models with majority of the tags out of MDG and only some tags added manually. Here the stereotype and object_type are obvious, so we switch to Tags once and are done.

Is there a plugin to overcome this little usability regression?
I mean even a windows which shows us the values without an ability to edit would be an improvement.

5
Hi,

I have just started using sparx 15, and perhaps I am still missing something.
So in 14, I can click on the element on the diagram and see Element Properties window (Name, Type , ... ) and at the same time Tagged Value window with all tags.
Now in version 15, I can't find a way to have a separate window for Element Properties and Tagged Values. All I have is a Property windows with Element and Tags tabs.
So as I click on the elements on the diagram, I am forced to click all the time in Properties and flip between Element and Tags tab.

Am I missing some obvious way to accomplish functionality from v14?
Screenshots available on request.

Cheers
--pawel


6
Bugs and Issues / Re: V14 crashes when AD domain user try to open project
« on: September 08, 2019, 09:41:53 pm »
It is probably due to the fact that your AD user doesn't have a first and/or last name.

That was the case, thanks!
Something I forgot to mention in the original post. This happens only with security enabled.

7
Bugs and Issues / V14 crashes when AD domain user try to open project
« on: September 08, 2019, 09:10:42 am »
We are migrating from V12 to V14.
Our models are stored in oracle db.
With version 12, I can open models using either local user or AD domain user.
With version 14, I can open models using local user, I can't open model using windows domain user - EA crashes.
We are using 14.1.1428

8
I think xml is overkill as a format to indicate success, completed with error or failure. Integer in a range -2..0 is sufficient.
In case of the messages xml adds only extra layer of quoting just in case message itself has sequences mimicking xml or being xml fragments.
I would really prefer not to invoke xml parser when error handling.

My requirements:
- Obligatory: don't fail silently
- Optional: provide enough information so human does not have to run interactive import to see the message. Ideally human does not have to use screen shot or retyping content of msgbox to provide error message information to 3rd parities.

--pawel

9
As documented here: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1399295629/0, there is no way to obtain information about import errors when using ImportPackageXMI.

The possible places to extend current API:
- return value (string) can be adopted to indicate success, success with errors or total failure
- log file can be used to capture detailed messages which are presented as msbox during interactive import

--pawel

10
Suggestions and Requests / selecting multiple elements in project borwser
« on: September 06, 2011, 03:39:42 am »
hi,

I am trying to find out how many elements I have in a package. So I select them all, but still no info on the display.
In a mean time, I have my display real estate polluted by default with information about Caps Lock, Num Lock, Scroll Lock.

Can we have number of selected things instead?


Cheers,
Pawel

11
General Board / Re: Importing model from Jude/Astah
« on: November 18, 2013, 08:42:56 pm »
yes, astah saves project as xmi

I can see the following in the file:
<XMI xmi.version="1.1" ...
 <XMI.header>
    <XMI.documentation>
    
    <XMI.documentation>
    <XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
  </XMI.header>

I dig it a bit more. Diagrams are within jude namespace which is very likely the reason why EA can not do much about it.
I also noticed that connectors from activity diagrams are lost but connectors from class diagrams are fine.
All diagram Notes are also lost.

12
General Board / Importing model from Jude/Astah
« on: November 12, 2013, 01:08:56 am »
hi,

I have astah model which I would like to import into EA. It contains class, activity and interaction diagrams. The packages and elements appears to be imported ok, but no diagrams.
Any help or suggestions are appreciated.

--pawel

13
General Board / Re: edit hyperlink details in notes
« on: March 22, 2012, 08:00:49 pm »
I had enar-spy installed (mainly to look at internal object ids). Thanks for the hint.
We plan to put together a plugin to allow for html edit in notes as well as in memo fields of a tagged value. As far as I can tell it will be open sourced.
--pawel

14
General Board / edit hyperlink details in notes
« on: March 03, 2012, 08:52:03 am »
hi,

When I add a class, than add a hyperlink to the notes, is there a way to change the hyperlink or at least to show where the hyperlink is pointing?

I have tried:
- context menu (nothing relevant there)
- double click (nothing happens)
- ctrl click (follows the link ok)
... some other ctrl/alt/shift click (no luck)
- highlight the link and click link button (it adds new link)


If I copy/paste content of the notes into word, links are preserved and can be edited with Ctrl-K.

Cheers,
Pawel


15
General Board / Re: Magic names in MDG UMLProfile
« on: October 20, 2011, 10:09:02 pm »
Hi,

Thanks for the clarification. For the current release we went with Organi[highlight]s[/highlight]ation.
KP, I have support contract. Should I raise a formal bug report or it will be taken care of anyway?

Cheers,
Pawel

Pages: [1] 2