Book a Demo

Author Topic: Depth of Sequence Diagrams reverse engineered  (Read 6775 times)

eppinkf

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Depth of Sequence Diagrams reverse engineered
« on: February 07, 2007, 12:41:11 am »
I'm currently using the very useful feature of automatically creating sequence diagrams via reverse engineering.

Configuration to do so is not completely intuitive but once it has been accomplished it works fine.

My question now is, if there is a possibility to configure the depth of the generated sequence diagrams?
My assumption was that if I import only a certain set of C# classes only these are considered for the generated sequence diagrams. This however is not true, as I checked with a simple C# solution. C# classes from other assemblies are also shown on the generated sequence diagram, even if they were not imported into EA.

Therefore the question if there is a way to configure or influence the depth of a sequence diagram.
In some complex cases this is a useful feature.

Thanks
Frank

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #1 on: February 07, 2007, 01:07:44 am »
Quote
Configuration to do so is not completely intuitive but once it has been accomplished it works fine.
Can you explain any additional measures (not intuitive) you had to take?

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

eppinkf

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #2 on: February 07, 2007, 10:42:15 pm »
For me the following actions were non-intuitive:

- Together offers to generate Sequence-Diagrams for a certain method without any necessary preparations. The difference however is that Together generates a sequence diagram from a static point of view, i.e. the code is not executed. EA executes the code and generates a sequence diagram while debugging from the actual runtime behavior, which is more accurate and more desirable. Therefore I prefer the approach of EA, but I still had to figure out, that I need to configure the Package and Build Script and especially the Debug script.
- There is no good documentation or tutorial on how to do this. If I search for "Sequence Diagram Reverse Engineering" in the Enterprise Architect Help, there is no direct useful search result.
- When I check the page "Debugging Assemblies" it seems that the displayed information is wrong or does not work like this for me. This especially applies to the question where to put the variables. I got my projects to work, when I put the variables in the field "Enter class name..." and not like shown in the page in the "Enter any run time variables..." Possibly the help page only applies to dlls and not exes?

I would like to stress that the purpose of this issue is not to complain how non-intuitive reverse engineering of sequence diagrams is, but instead to request information how I can configure the depth of these automatic generated sequence diagrams. Help with this is appreciated.

Cheers
Frank


Ralph Mücke

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • I havn't done it.
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #3 on: February 08, 2007, 12:55:52 am »
How do you actually generate thes sequnce diagrams  ??? ?
Quote
For me the following actions were non-intuitive:

- Together offers to generate Sequence-Diagrams for a certain method without any necessary preparations. The difference however is that Together generates a sequence diagram from a static point of view, i.e. the code is not executed. EA executes the code and generates a sequence diagram while debugging from the actual runtime behavior, which is more accurate and more desirable. Therefore I prefer the approach of EA, but I still had to figure out, that I need to configure the Package and Build Script and especially the Debug script.
- There is no good documentation or tutorial on how to do this. If I search for "Sequence Diagram Reverse Engineering" in the Enterprise Architect Help, there is no direct useful search result.
- When I check the page "Debugging Assemblies" it seems that the displayed information is wrong or does not work like this for me. This especially applies to the question where to put the variables. I got my projects to work, when I put the variables in the field "Enter class name..." and not like shown in the page in the "Enter any run time variables..." Possibly the help page only applies to dlls and not exes?

I would like to stress that the purpose of this issue is not to complain how non-intuitive reverse engineering of sequence diagrams is, but instead to request information how I can configure the depth of these automatic generated sequence diagrams. Help with this is appreciated.

Cheers
Frank


Best Regards Ralph

eppinkf

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #4 on: February 08, 2007, 04:09:47 am »
Did you read the help files and tutorials? In order to help you I need your scenario...

Vista

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #5 on: February 20, 2007, 10:40:51 pm »
hi,

I am looking for a reverse engineering of sequence diagrams from the source code . But couldnt find any help on it . Could someone lead me to the document on how to do the settings and generate.

Thanks


eppinkf

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #6 on: February 21, 2007, 08:36:57 am »
I don't have an exact description, but you need to do the following steps:
- Import the Source Code into EA
- Setup of Package Build Scripts, especially the Debug-Part
- Start the generation of sequence diagrams via the context-menue of a class-method

HTH

bmioch

  • EA User
  • **
  • Posts: 81
  • Karma: +0/-0
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #7 on: February 21, 2007, 02:37:27 pm »
Have a look at the Sparx Systems demonstrations page to get you started: http://sparxsystems.com/resources/demos/
See Debugging C# and Debugging Java for information on generating sequence diagrams.

Vista

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #8 on: February 21, 2007, 05:16:41 pm »
Hi,

Thanks for the help..

But I am not able to setup the Debugger script .

I have entered the dll for the debug , with the complete path .

I get the error .Fatal Error CS2008..any help???

Regards.


Vista

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #9 on: February 22, 2007, 04:29:30 pm »
hi,

I am trying to build the Web Project . I give the dll name of the controller class for the RUN path .

But when i try to build .I get the fatalerror CS2008 . Can someone help me with setting up the Package Build Scripts .

thankyou,

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #10 on: February 23, 2007, 05:16:45 am »
This is just a guess. Could the problem relate to user identity? Web projects generally run under an ASP account, which by default is less privileged than user accounts.
No, you can't have it!

Vista

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #11 on: February 27, 2007, 12:19:42 am »
hi,

 This is not anything to do with userid .

 I have somehow removed the error , but when i try to debug the project ,breakpoint placed on the service.asmx file .The bebug doesnt stop at this . I think it is not recognising the starting point .

 Can anyone help me with this please ...


Thanks for any help ..


Vista

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #12 on: March 13, 2007, 10:20:11 pm »
hi Frank,

As you seem to have faced the same problem as me , could you please suggest me a way by which i could generate sequence diagrams.

I am reengineering a webservice c# .NET project

I have imported the whole package into EA . I have set the debugscript as follows:

Enter Class Name for debug

obj\Debug\Int.Real.Log.BusinessController.dll

Enter any RunTime Variable

Int.Real.Log.BusinessController.LogInInfoController.ExecuteBusinessLogic,ExchangeData,SessionInformation,SystemConfiguration


With this setting, I am not able to Debug . Doesnt stop at any breakpoints i have given at the class.

The RecordStack button is disabled .

Any suggestions??

Thanks
« Last Edit: March 13, 2007, 10:30:07 pm by Hemalatha_70 »

Vista

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Depth of Sequence Diagrams reverse engineered
« Reply #13 on: March 13, 2007, 10:23:43 pm »
NOTE: I am trying it with EA 6.5 TRIAL VERSION , as the user guide says its the feature of Version 6.5 . where as i am using licensed version 6.1 for other functions. I need to evaluation for upgradation.

Thanks