How to generate Sequence Diagrams for existing code

Hi,
I have a web application written in Java/Jsp's. I am looking to generate sequence diagrams automatically for the existing source code using this tool. I am not sure if this is possible using this tool. Can some one please explain me if that is possible using this IDE tool? If so can you please let me know how this can be done?
Any response is greatly appreciated.
Thanks in advance.
Vijay

Hi,
Yes, you can reverse engineer operations and create sequence diagrams using Java Studio Enterprise.
Just right-click on the operation in the UML model that has the source file associated with it, and select "Create Diagram from Selected elements" or "Reverse Engineer Operation".
Thanks!

Similar Messages

  • Creating a UML Diagrams for existing code?

    Is there a way for netbeans to generate UML Diagrams for existing files? Does it generate them automatically?

    Right click on the class, package or project you want to model and select "Reverse Engineer" from the popup menu. This assumes that you're using version 6.
    PS.

  • Please can someone do a Sequence Diagram for this code

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Bgame extends JFrame implements ActionListener
         Map map;
         Location location = new Location();
         Player[] player = new Player[2];
         int playeri = 0;
         Player playerx;
         Image boardi = null;
         Image bcar = null;
         Image gcar = null;
         JButton spinButton = new JButton("Spin");
         JLabel spun = new JLabel("");
         JButton houseButton = new JButton();
         JButton carButton = new JButton();
         JButton playersButton = new JButton();
         JButton bankButton = new JButton();
    public Bgame()
         addWindowListener(new WindowAdapter()
         public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         setBounds(1,1,800,600);
         getContentPane().setLayout(null);
         loadImages();
         map = new Map(boardi);
         map.setLocation(111,0);
         getContentPane().add(map);
         createCpan();
         player[0] = new Player(bcar,Color.black);
         player[1] = new Player(gcar,Color.green);
         map.add(player[0]);
         map.add(player[1]);
         setVisible(true);
         playerx = player[playeri];
         playerx.spin();
         monitor();
    private void monitor()
         Timer timer = new Timer(1000, new ActionListener()
              public void actionPerformed(ActionEvent e)
                   if (playerx.hasToGo)
                        //getToolkit().beep();
                        if (spun.getForeground() == playerx.color)
                             spun.setForeground(Color.gray);
                        else spun.setForeground(playerx.color);
                        return;
                   if (playerx.hasToSpin)
                        if (spinButton.getBackground() == playerx.color)
                             spinButton.setBackground(Color.lightGray);
                        else spinButton.setBackground(playerx.color);
                        return;
              playeri++;
              if (playeri == 2) playeri = 0;
              playerx = player[playeri];
              playerx.spin();
              spun.setText("");
              spinButton.setEnabled(true);
              spinButton.setBackground(playerx.color);
         timer.start();
    private void loadImages()
         boardi = getToolkit().getImage("Game.gif");
         bcar = getToolkit().getImage("blackCar.gif");
         gcar = getToolkit().getImage("blueCar.gif");
         MediaTracker tracker = new MediaTracker(this);
         tracker.addImage(boardi,0);
         tracker.addImage(bcar,0);
         tracker.addImage(gcar,0);
         try {tracker.waitForID(0);}
         catch (InterruptedException e){}
    private void createCpan()
         JPanel pan = new JPanel();
         pan.setLayout(null);
         pan.setBounds(0,0,110,500);
         pan.setBackground(Color.pink);
         spinButton.setBounds(10,34,90,30);
         spinButton.addActionListener(this);
    pan.add(spinButton);
         spun.setBounds(10,64,90,30);
    pan.add(spun);
         getContentPane().add(pan);
    public void actionPerformed(ActionEvent e)
         if(e.getSource() == spinButton)
              int spin = (int)(Math.random()*3+1);
              spun.setText("Total spun = "+spin);
              spun.setForeground(playerx.color);
              spinButton.setBackground(Color.lightGray);
              int togo = playerx.location+spin;
              playerx.go(togo,location.getX(togo),location.getY(togo));
              spinButton.setEnabled(false);
    public static void main (String[] args)
         new Bgame();
    import java.util.*;
    public class Location
         Space[] spaces = new Space[29];
    public Location()
         spaces[0] = new Space(1,238,135,"Start Career");
         spaces[1] = new Space(2,346,135,"Pay Day");
         spaces[2] = new Space(3,417,135,"Rent a Flat Pay 5,000");
         spaces[3] = new Space(4,492,167,"Raffle Prize Collect 10,000");
         spaces[4] = new Space(5,500,218,"PAY DAY");
         spaces[5] = new Space(6,570,269,"STOP Get Married LIFE");
         spaces[6] = new Space(7,570,344,"Wedding Reception Pay 10,000");
         spaces[7] = new Space(8,517,344,"Extra Tuition Pay 5,000 to Teacter");
         spaces[8] = new Space(9,465,344,"Win Quiz Show Collect 95,000");
         spaces[9] = new Space(10,407,344,"PAY DAY");
         spaces[10] = new Space(11,352,344,"Sponsor Golf Pay 35,000 to Athlete");
         spaces[11] = new Space(12,300,344,"Play a family game LIFE");
         spaces[12] = new Space(13,246,344,"Buy Furniture PAY 10,000");
         spaces[13] = new Space(14,183,344,"Visit in laws LIFE");
         spaces[14] = new Space(15,118,344,"STOP Buy a house");
         spaces[15] = new Space(16,68,344,"PAY DAY");
         spaces[16] = new Space(17,10,356,"Swap Salary Cards with any other player");
         spaces[17] = new Space(18,10,412,"Sponsor an athletee Pay 35,000 to Athlete");
         spaces[18] = new Space(19,61,412,"Taxes Due PAY Accountant");
         spaces[19] = new Space(20,115,412,"Baby Girl LIFE");
         spaces[20] = new Space(21,175,412,"Move to a new city PAY 10,000 to Pilot");
         spaces[21] = new Space(22,235,412,"Help the homeless LIFE");
         spaces[22] = new Space(23,304,412,"Win the Lottery Collect 50,000");
         spaces[23] = new Space(24,369,412,"Art auction Pay 20,000 to Artist");
         spaces[24] = new Space(25,434,412,"Invest in a theatre PAY 5,000 To Actor");
         spaces[25] = new Space(26,489,433,"Taxes Due Pay Accountant");
         spaces[26] = new Space(27,518,470,"PAY DAY");
         spaces[27] = new Space(28,519,529,"Night School PAY 10,000 To Teacher");
         spaces[28] = new Space(29,385,529,"RETIRE");
    public int getX(int i)
         return(spaces.x);
    public int getY(int i)
         return(spaces[i].y);
    public String getText(int i)
         return(spaces[i].txt);
    public class Space
         int n,y,x;
         String txt;
    public Space(int n, int x, int y, String txt)
         this.n = n;
         this.y = y-82;
         this.x = x+14;
         this.txt = txt;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Map extends JPanel
         Image board;
         JLabel txt = new JLabel("");
    public Map(Image i)
         board = i;
         setLayout(null);
         setSize(board.getWidth(null),board.getHeight(null));
         addMouseListener(new MouseAdapter()
              public void mouseReleased(MouseEvent m)
                   System.out.println(""+m);
         txt.setBounds(456,04,200,24);
         txt.setBackground(Color.lightGray);
         txt.setOpaque(true);
         add(txt);
    public void setText(String s, Color c)
         txt.setText(s);
         txt.setForeground(c);
    public void paint(Graphics g)
         super.paint(g);
         g.drawImage(board,0,0,null);
         paintComponents(g);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.image.BufferedImage;
    public class Player extends JLabel
         int location = -1;
         Color color;
         boolean hasToGo = false;
         boolean hasToSpin = false;
         Point sloc;
         int tox,toy;
         int mx,my;
         boolean inPlace = false;
    public Player(Image car, Color c)
         super();
         setIcon(new ImageIcon(trans(car)));
         color = c;
         setBounds(10,10,car.getWidth(null),car.getHeight(null));
         if (getWidth() < 1) setSize(40,40);
         addMouseListener(new MouseAdapter()
         {     public void mousePressed(MouseEvent m)
                   sloc = getLocation();
                   mx = m.getX();
                   my = m.getY();
              public void mouseReleased(MouseEvent m)
                   if (getBounds().contains(tox,toy)) hasToGo = false;
                        else setLocation(sloc);
                   inPlace = false;
                   repaint();
         addMouseMotionListener(new MouseMotionAdapter()
         {     public void mouseDragged(MouseEvent m)
                   if (! hasToGo) return;
                   int x = getX() + m.getX() - mx;
                   int y = getY() + m.getY() - my;
                   if (x < 0) x = 0;
                   if (y < 0) y = 0;
                   setLocation(x,y);
                   if (getBounds().contains(tox,toy)) inPlace = true;
                   else inPlace = false;
                   repaint();
    public void go(int l ,int x, int y)
         hasToGo = true;
         hasToSpin = false;
         tox = x;
         toy = y;
         location = l;
    public void spin()
         hasToSpin = true;
    public void paint(Graphics g)
         super.paint(g);
         g.setColor(color);
         if (inPlace)
              g.setColor(Color.red);
              g.fillRect(8,8,16,16);
         else
              g.setColor(color);
              g.drawRect(0,0,36,38);
              g.drawRect(1,1,34,36);
    public BufferedImage trans(Image img)
         int w = img.getWidth(null);
         int h = img.getHeight(null);
         if (w < 1) w = 40;
         if (h < 1) h = 40;
         BufferedImage to = new BufferedImage(w,h,BufferedImage.TYPE_4BYTE_ABGR);
         to.getGraphics().drawImage(img,0,0,null);
         int r1 = to.getRGB(0,0);
         for (int x=0; x < w; x++)
              for (int y=0; y < h; y++)
                   if (to.getRGB(x,y) == r1) to.setRGB(x,y,0);
         return(to);

    To be fair to Phil, the person wasn't asking how to do a sequence diagram, they just wanted one given to them. I'm sure they would have got a more friendly/informative reply if they had actually asked how to do one.

  • Generate UML diagrams for existing JSPDynpage projects

    Hi all,
    Are there any free tools which can generate UML diagrams from exising complex JSPDynpage projects. We have many JSPDynpage interlinked projects and want to have UML diagrams for those.
    Any information on this will be of great help.
    Thanks,
    Hari

    Can anyone help me in this? We don't have any UML tools for SAP JSPDynpages?

  • How to generat sequence number for db in XSLT

    Hello SOA Gurus,
    I have a requirement, Please see below
    I am using SOA 11.1.1.6
    From a webservice call to db insert XSLT,  i have 10 elements at source side and 11 elements at target side.
    From source to target first 10 mappings are done.
    Now requirement is, for the 11th element in target- we need pass a sequence number to the targeted database, means---(sequence number has to be generated for every execution of XSLT execution)
    How to do the last point???
    Can anyone help me plzz

    Hi,
    You can pass the sequence number in the 11th element using "oraext:sequence-next-val("Sequence name as a string", "Datasource as a string") function.
    Regards,
    Anshul

  • Generate E-R diagram for existing Oracle SQL Script

    Hi,
    We have some existed Packages,Procedures,Functions,Views and Materialized Views. We are planning to generate E-R diagrams for existed codes. Could you please suggest me how can we do the same.
    we are using Oracle SQL Developer and Oracle Version is : 11g.
    Thanks.
    Jai V

    Hi,
    I have already posted a thread regarding Data Flow diagram for existing source code. But I couldn't find find where exactly I have posted. So here I am posting my observations. I would like to prepare a Data Flow diagram for existing Source code. Using Visustin V7 I got the Data Flow Diagram. But am not able to export or Save or Print the diagram. As some one suggested it is possible to get the DFD using Visio. But am not able to get the DFD. Here am getting the problem like , Gave user name and Server name by connecting to ODBC. But still am not getting the required DFD.
    Can you please suggest me is there any way to get the DFD using Visio or any tool is there to get the DFD.
    Please advice.
    Thanks.

  • Generating a sequence diagram for an ADF/BC project

    hi folks,
    is there an automatic way to produce a sequence diagram? Read something about debug mode but its not working that way.
    Any help apreciated

    Hi John,
    thanks for the info but the documentation says somewhat about break points, but where to set them isnt mentioned - so nothing gets drawn in the diagram. Any info on that would be appreciated. Do i need several break points and especially where do i set them?
    I was allready wondering how a sequence diagram for an adf/bc project would look like - especially if no beans are involved.

  • How to generate an Interupt for DMA transfer from Counter on NI-PCI-6602

    dear guys:
          how to generate an Interupt for DMA transfer from Counter on NI-PCI-6602,and I have set the DMA and DMA_INT, and also the global interrupt register.
    but there is no Interupt generated in the Interupt callback function.And when I have set the DMA_INT and global interrupt register ,and then read the relevant register,the relevant bit is also 0.
         I suspect there is an Interupt register contral, like the MITE, you must write the value to 0xc4 for opening .
         there is some codes In my enclosure .What can I do?
    Attachments:
    TEST.C ‏21 KB

    dear Steven_T:
            the registers are In my enclosure ,if you have some ideas,please reply me  first time.thank you !
    Attachments:
    PCI6602.pdf ‏818 KB

  • How to generate xml-file for SAP Fiori (UI add-on) with Solution Manager 7.0.1?

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

  • How to activate split valuation for existing material having stock open PO,

    Hello,          
    How to activate split valuation for existing material in plant having stock and open PR,PO and Production order.
    Regards

    Hi
    It is not possible to activate in such case, u should not have any stock.
    With regards
    Pavan

  • How can i reset the for digit code?

    how can i reset the for digit code?

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    Forgotten Restrictions Passcode Help
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    Also, see iTunes- Restoring iOS software.

  • How to generate sequence lile -1, 1, -1, 1, ...

    How to generate sequence lile -1, 1, -1, 1, ...

    Hi,
    If you can generate a sequence like 1, 2, 3, 4, ... then you can get the results you want by saying
    CASE
        WHEN  MOD (x, 2) = 0
        THEN  1
        ELSE  -1
    ENDTo generate the sequence 1, 2, 3, 4, ... you can use CREATE SEQUENCE and NEXTVAL, or ROW_NUMBER, or ROWNUM, or CONNECT BY and LEVEL, depending on what you want.
    Edited by: Frank Kulash on Jan 27, 2012 6:31 AM

  • How to generate BP number for the employee (ECC to CRM) ...

    Hi all,
    can any one give solution for ,how to generate BP number for the employee from ECC to CRM other than active status,as i downloaded employee data from ECC to CRM through ALE/IDOC,as only active employment status employees are got BP number generated,remaining also transfered to CRM but BP number is not generated for those employees,these employee records i can able to see in the HRP5580- HRP5587 tables.
    thanks in advance.
    vamshi.
    Message was edited by:
            vamshidher rao

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • How To Generate Spool request for a SAP-Script form

    How To Generate Spool request for a SAP-Script form

    Hai   Rahaman,
    After getting the print preview of the SCRIPT.
    Click On  PRINT.
    Buttom of the page one spool request will be generated by system.
    Go to  SP01.
    You Can Find  SPOOL Reqest Number.
    Regards.
    Eshwar.

  • How to create Sequence Diagrams in Jdev 10.1.3?

    Hi there,
    I´m migrating (trying) from Eclipse to JDeveloper and I´m having several dificulties....
    I´m creating a new project in JDeveloper:
    0) create an application workspace [ok]
    1) create a web application project [ok]
    2) create some packages and Java classes [ok]
    3) create a class diagram related to the
    above classes [ok]
    4) create a sequence diagram [ok]
    5) use the classes into the sequence
    diagram [more and less]
    6) use the methods of the classes into
    the message lines of the sequence
    diagram [no]
    Some observations that are messing me:
    1) Do I need to create an "Object Lifetime" for
    every class and after that select "Attach Classifier" ?? Why I can´t just drag the classes into the diagram (like Jude) ?
    2) Can I use the methods already defined in the classes to create messages in the sequence diagram?
    3) The sequence diagram od JDeveloper is disconnected from the project classes? i.e., is it just a draw ?
    best regards,
    Felipe Gaúcho

    Hi,
    I am glad to find that you are working on the sequence diagram. I take your point about selecting the methods and assigning them to the messages. Unfortunately this feature is gated by some architecture changes and it something I will be actively pursuing as soon as it is possible.
    In reply to your other points:
    1) Do I need to create an "Object Lifetime" for
    every class and after that select "Attach Classifier" ?? > Why I can´t just drag the classes into the diagram (like > Jude) ?The reason for this is that the sequence modeler is simply a view onto a single diagram type that can contain any object. This allows the mingling of different UML type on the same diagram. It can be usefull to mix usecase and seqeunce for example.
    For that reason the default action for java class is to model a java class, and you do indeed need to create a lifeline first. Did you know you could drag and drop the classifier, in your case a java class, from the navigator onto the lifeline. This might be quicker in your case.
    2) Can I use the methods already defined in the classes > to create messages in the sequence diagram?As noted before in the preview you can't select existing messages. This is something we would like to add as soon as it is possible.
    3) The sequence diagram od JDeveloper is disconnected
    from the project classes? i.e., is it just a draw ?The sequence modeler isn't totally disconnected from the project classes; but it wont update as you edit the code if this is what you mean.
    Could you perhaps expand on this point a little bit?
    Thanks,
    Gerard Davison
    UML Modelers

Maybe you are looking for

  • Production Variances of semifinished goods in COPA

    Hi, We are using Costing based COPA, which is updated at the time of billing. The production variances are posted to COPA when the settlement of the production orders are done. The production variances if brought within the purview of COPA report (ba

  • 30 pin connector to vga connectivity

    my 4 th generation ipod can be used with 30 pin connector to vga for display

  • Help on iWeb or Slide Show

    Hi All, Hoping I can get some guidance on a project. My cat died recently and we're creating a history of his life to announce to his family & friends. At first, I created a PowerPoint Presentation using Office Mac 2008. It came out great; 28 slides.

  • Timing of slides in slideshow. Change?

    In slideshow how can I change the timing of each slide. In the mac version I can fit to music or play any slide at pretty much any seconds intervals I want. I cannot figure this out on the IOS version for my iPad.

  • FCPX Effect? Need help

    So I'm putting together a highlight tape of an athlete. There are times when it is unclear which player the person is, and in most highlight videos you see an arrow (or something similar) appear to show the viewer which player is the one featured. Ho