Book a Demo

Author Topic: Structured Activity  (Read 3305 times)

Samuel Tremblay

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Structured Activity
« on: January 04, 2011, 03:52:46 am »
I have an Activity Diagram in which I add a "Structured Activity" item with the options - Simple Composite.

When I do that, a sub diagram is automatically added.

What I want to do is add a Structured Activity linked with an existing Activity Diagram.

I don't see any option with the Structured Activity item that can help me to relink the item to another diagram.

Thank you very much.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Structured Activity
« Reply #1 on: January 04, 2011, 07:13:57 pm »
Samuel,

The general approach (works for all elements, but do check for the structured activity) is
- Move the target diagram under the element so that it is the only diagram nested there
- Make the element composite (make it non-composite first if it is already composite) with right-click Advanced|Make Composite
- Move the diagram back to where you want it.

Geert

Samuel Tremblay

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Structured Activity
« Reply #2 on: January 05, 2011, 01:48:25 am »
Hi,

Thank you for the fast response.

It works perfectly but I have a sub diagram that I want to use in many many other diagrams. Must I have to make this cumberstone operation each time. I tried to copy and paste but it create a link to the other item that have a link to the subdiagram and when I copy as new, it just create a new structured activity.

Do I'm really the only one using Enterprise Architect to perform this type of operation.

I looked in the Microsoft Access database back and it's just the Id of the object table t_diagram which is stored in the column of the table PData1 t_object which makes the diagram below works.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Structured Activity
« Reply #3 on: January 05, 2011, 02:04:44 pm »
Quote
[size=18]...[/size]
I looked in the Microsoft Access database back and it's just the Id of the object table t_diagram which is stored in the column of the table PData1 t_object which makes the diagram below works.
Hi Samuel,

It is a necessary but not sufficient condition for PDATA1 to hold the ID of the diagram (for Activity diagrams at least - for other diagrams, the link is held elsewhere...).

You'll need to do other things to make it work properly.  If you search for Composite Diagram (especially under the automation category) you'll find discussion on how to do it.

I've build a commercial Add-In, currently in Beta that will automatically draw certain kinds of diagrams based on what it finds in the repository.

I recently used it on assignment and it drew over 6000 diagrams showing the full DML (including creates, inserts, selects, truncates etc)1 and DDL relationships across some 60 production databases.

If you intend to generate diagrams automatically, you're in for an "interesting ride".

Paolo
1 A separate Add-In processes the DML and DDL from the reverse engineered databases and creates the linkages mentioned between the database objects.  The diagrammer Add-In - just draws the diagrams...
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Samuel Tremblay

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Structured Activity
« Reply #4 on: January 06, 2011, 01:13:27 am »
Thank you very much.