Book a Demo

Author Topic: Transform all objects in diagram (including links)  (Read 3831 times)

siva02

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Transform all objects in diagram (including links)
« on: August 31, 2010, 01:20:36 am »
Hi,

I am trying to transform package, basically generating DDLs.  Only the objects created within the package are generated, while the linked objects in diagram within the package, belonging to other packages, are not generaed.

Is there any setting or transform scripts that would generate the linked objects?

Thanks,

Siva

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Transform all objects in diagram (including li
« Reply #1 on: August 31, 2010, 03:48:36 pm »
Siva,

If you have the need to transform everything on a diagram you are doing something wrong.
You should not use diagrams to make some kind of grouping of elements, that is what packages are for.
So the behavior of EA (transformation based upon package structure) is correct IMHO.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Transform all objects in diagram (including li
« Reply #2 on: August 31, 2010, 05:49:33 pm »
Quote
[size=18]...[/size]
You should not use diagrams to make some kind of grouping of elements, that is what packages are for.
[size=18]...[/size]
Well, one of the basic problems with UML is that it believes there is ONLY one grouping of elements - package.  That's actually not true.

It further compounds that by saying that the grouping and tree of elements shall be the namespace of the element.  Now, it may well be that that may be the UML namespace of the element (so as to provide identity within a repository - by access name), but it needn't be the implementation language namespace of the element.

So it would be good if UML allowed us to group elements in multiple ways.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

siva02

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Transform all objects in diagram (including li
« Reply #3 on: September 01, 2010, 01:03:41 am »
Hi,

I guess my "subject" misleads...

We cannot use diagram to transform I agree.  Also, Please bear with me I am a data modeler and trying see if Sparx could generate DDLs for me efficiently.  I see SPARX has long way to go.  I had to use workarounds to get to it.

Let me clarify my question :
1. When we add objects(class) in a diagram, it appears in the package that diagram belongs.
2. When we are referencing objects (that are in different package -- Pasting elements "as simple link") in a diagram, those objects do not appear in the current package.
-- My goal is to transform all objects whether they are created within a package or pasted as simple link within a package.

I tried to set the "Options -->Diagram-->Behaviour-->"Show linked items in Package" -- Assuming this will help in Transforming all objects within a package whether they are "linked" or created under the same package.  So far no luck.

Now I am re-considering using Data modeling tool and leaving Sparx for Java developers only.  
(First I have issues in defining pk at class model level --> too many changes after generating DDLs... does not look good).

Any one facing similar issue and found some kind of work around, please help.  let me keep my hopes alive for some more time before moving back to ERWin.

Thanks,

Siva

siva02

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Transform all objects in diagram (including li
« Reply #4 on: September 04, 2010, 03:02:44 am »
I tried multiple options and could not get all objects whether created or referred in the package to be transformed.  Can any one confirm that this is a restriction in Sparx?  and
Any one have any idea that if this is a known problem and any luck seeing this in newer versions of Sparx?  

Thanks,

Siva