I am new to EA and still learning this tool to generate the sequence diagram using reverse engineering but could not find enough information on this topic. Please help me if anybody knows to create this.
I found out the way to create the class diagram using reverse engineering and that we can do by creating the new model and importing the source project into EA. steps are as mentioned below.
This will import all the java file into EA and will generate the class diagram using reverse engineering.
Next i am looking to create sequence diagram using EA for android application but could not get any information. Please guide me if anyone has done this already or any one want to share information on this.
Thanks in Advance.
Generating Sequence Diagrams Enterprise Architect 11 and 12
This took me days and hours to get right, but now I use this program all the time.
SET UP ENVIRONMENT
Go to 'Analyzer' -> 'Manage Debug Scripts'.
Go to 'Analyzer' -> 'Debug' -> 'Debugger'.
Go to 'Analyzer' -> 'Debug' -> 'Recorder'.
Go to 'Analyzer' -> 'Breakpoints and Markers'
SET UP DEBUG SCRIPT (Java)
In the 'Execution Analyzer' window, Add a new script.
Right-click on the new script that was created in the last step, and choose 'edit'.
In the left pane, Select 'debug' -> 'Platform'.
From the 'Debugger' drop-down menu, select 'Java'.
For 'Default Directory', without the square brackets, put your [project root path]
For 'Application Class', without the square brackets, put [name of package with main class].[main class name]
For 'Java Virtual Machine Options' customize the following script.
jre=C:\Program Files\Java\jdk1.8.0_66\jre\bin\server,-Djava.class.path=.;src;bin;lib\some_3rd_party_library01.jar;lib\some_3rd_party_library02.jar
script components that may be different for you:
The 3rd party library jar files.
Select the various radio buttons that suit your intentions, i.e. 'x64' and 'Run'.
Click OK.
You may want to check this script at this point by running the debug. Right-click on the script icon and choose debug.
MARK-UP CLASS FOR ANALYSIS
In the project browser, right-click on a class from which you want sequence diagrams to begin from.
Choose 'Execution Analyzer' -> 'Markup Class for Recording'.
Give this setup a name.
Select the methods from which you want sequence diagrams to begin.
From the 'Marker Type' drop down box, select 'Record Function'.
Choose the class depth of the sequence diagram.
Click OK.
BEGIN RUN-TIME ANALYSIS
On the 'Record & Analyze' window, click on the play symbol.
From the 'Recording Set' drop down menu, choose the name of the configuration saved in step 9.
press OK.
During debug execution, at least one method/class trace should have appeard in the 'Record & Analyze' window.
DONE. (feel free to ask further questions.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With