C# package - from code to sequence diagram

i am currently developing a package using c#, the main objective of it is to come up with a sequence diagram after the user has finished coding. any suggestion on how am i able to do it? is there any available APIs? i am currently reading up on StarUML to
see if it is useful. Can anyone point me towards the right direction and what should i search for?
Any help will be appreciated, thank you in advance.
 

Hi Tan,
You may need the help of Visualization and Modeling SDK, check if these document are useful:
Extending UML Models and Diagrams
How to: Edit Sequence Diagrams by Using the UML API
About the UML API:
Programming with the UML API
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Navigate to Package from Code Inspection results

    Hi,
    I created a simple Code Inspector check to see whether our packages have the right Transport Layer and Software Component. The check works fine, but I'd like to add navigation (so when I click the link "Display Object" in the result list, the package is displayed).
    But it doesn't. It only says "Program <Package name> not found.
    There is one note 1762948, but it doesn't look very promising, since in method CL_CI_RESULT_PROGRAM->IF_CI_TEST~NAVIGATE, RESULT-SOBJTYPE is not correct (PROG instead of DEVC).
    I also implemented the NAVIGATE-Method in my test class, but to no avail (it is not called when I trigger navigation, or at least no breakpoint is reached there).
    So before I open a ticket for this, I'd like to know whether anybody has managed to navigate to a package from Code Inspector using this way. I know it is possible if I just click on the package name in the result list. That is a workaround, but not a usable solution.
    Thanks in advance
    Ole

    Take a look at
    CL_CI_RESULT_ABAP_COMPLEXITY and
    CL_CI_TEST_ABAP_COMPLEXITY
    In the test class the method GET_RESULT_NODE binds it to the RESULT class. Then the NAVIGATE method is implemented in the RESULT class. Use the parameters to transfer additional information to the result class.

  • 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!

  • Eclipse Plugin: Sequence Diagram from Java Project

    Any Free Plugin available for eclipse to generate sequence diagrams from the java project?
    Like MaintainJ does?
    Edited by: wizsen on Oct 28, 2009 4:32 PM

    sabre150 wrote:
    Melanie_Green wrote:
    If its any consolidation I have used UML a plugin for NetBeans, not Eclipse to generate such diagrams in a previous project. Would I recommend it is the next question =p.
    If it's anything like ''Together' then the resulting sequence diagrams are just about useless since they will contain far far far too much detail. Sequence diagrams, Class diagrams, State diagrams etc should summarise a system and not be just an alternate detailed view of code.This.
    I used to work with the guys that wrote Together and that is exactly what the UML diagrams were: an alternate view of the code. As in, they defined a language that described source code and the diagrams, and either could be used to generate this intermediate code, and either could be generated from this intermediate code. Quite neat, but as you point out, not necessarily all that useful
    OP, if you're thinking of using this to "cheat" on some homework, don't bother, your tutor will spot it a mile off!

  • Open source UML tool for Code ----- Sequence Diagram ?

    Are there any open source / free tools which can generate sequence diagram from java code ?
    Thanks in Advance
    Ratheesh

    check-out www.logsequencer.com - it is a very cool tool and is only $19.
    It generates sequence diagrams from log files.

  • Getting error code 1 when calling SSIS package from a stored procedure (SQL Server 2008 R2)

    Hello,
    I am trying to execute a SSIS package from SQL Server 2008 R2 stored procedure but getting error code 1 (as per my knowledge, error code description is as below:
    0 The package executed successfully.
    1 The package failed.
    3 The package was canceled by the user.
    4 The utility was unable to locate the requested package. The package could not be found.
    5 The utility was unable to load the requested package. The package could not be loaded.
    6 The utility encountered an internal error of syntactic or semantic errors in the command line.
    Details:
    I have a stored procedure named "Execute_SSIS_Package" (see below sp) which executes 'Import_EMS_Response' SSIS package (when I execute this package directly from SQL Server BID it works fine it means package itself is correct) and calling
    it from SQL as:- EXEC Execute_SSIS_Package 'Import_EMS_Response'.
    Here I receives error code 1.
    Can anyone help me to resolve this issue please?
    Thanks in advance!
    CREATE PROCEDURE [dbo].[Execute_SSIS_Package]
     @strPackage nvarchar(100)
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     DECLARE @cmd VARCHAR(8000)
     DECLARE @Result int
     DECLARE @Environment VARCHAR(100)
        SELECT @Environment = Waarde
     FROM  Sys_Settings
     WHERE Optie = 'Omgeving'
     --print @Environment
     SET @strPackage = '"\W2250_NGSQLSERVER\BVT\' + @Environment + '\' + @strPackage + '"'
     SET @cmd = 'dtexec /SQL ' + @strPackage +  ' /SERVER "w2250\NGSQLSERVER"  /Decrypt "BVT_SSIS" /CHECKPOINTING OFF /REPORTING E'
     --print @cmd
     EXECUTE @Result = master..xp_cmdshell @cmd, NO_OUTPUT
     --print @Result
    END

    It has something to do with the security.
    E.g. cmdshell is not enabled or the caller has not rights over the package.
    There could be a syntax error, too.
    I suggest you make the package runnable off a SQL Agent job then trigger the job from the stored proc with
    sp_start_job <job name>
    Arthur
    MyBlog
    Twitter

  • How to use a method in sequence diagram from a class diagram

    Hello, can someone tell me how to use the method from class diagram in sequence diagram? so far i only can add a classifier to the object lifeline but i still cannot add the method from the class...
    thx

    Now that Web Services is around, I'd look at possibly implement a Web Service call in your applet, which can then be given back any object(s) on return. Set up your server side to handle Web Service calls. In this way, you can break the applet out into an application should you want to (with very little work) and it will still function the same

  • I can't find the appx or xap package from windows app studio souce code in visual studio 2015

    I created a project from Windows App Studio then downloaded the source code and modify it. I set all configuration to Release Any CPU. But after rebuilding solutions several times there are no appx or xap package files found. How to create appx package
    from windows app studio source code using visual studio 2015?

    For that right click on the solution folder in Visual Studio, and you would find an option to create App Packages. 
    Hope this might help! 
    Create an app package
    Happy Coding!

  • Remove sccm 2012 client package from task sequence

    Hello, is possible to remove the sccm client package from task sequence ? i am deploying OS to workgroup computers and i dont want install the sccm client . I am using MDT to create the task sequence.
    Erickson Martinez

    No, if you are using a task sequence in ConfigMgr (MDT integrated or not) then a client package is mandatory. The only way to get rid of the client is to deinstall it at the end of the task sequence (for example by using the SMSTSPostAction variable).
    Another option, if you don't want the client, is to use MDT to deploy those machines. But that would cause an extra deployment mechanism to maintain.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Run Package with prerequisite package from Task Sequence

    If a package runs another package first as a prerequisite will that work from a task sequence.

    There is no explanation. This by design and is stated in the official TechNet docs:
    https://technet.microsoft.com/en-us/library/hh846237.aspx?f=255&MSPPError=-2147217396#BKMK_InstallPackage
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Linking code to Use Cases/Sequence Diagrams

    How can one link Use case or sequence diagram components / to code
    do they have to be in the same project or can they be in some other projects?
    Is there a way to do this in JDeveloper (10.1.3) ?

    I think I failed to clarify this.
    Can I keep my requirement docs sequense diagrams in sync wiht the
    design or code or does this need to be done manually.
    JBuilder's together livesource automatically keeps them in sync.
    Does JDev do something similar ?

  • 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.

  • Must load packages from file 2x before compl insght works in code editor

    I am used to editing packages from file instead from database, which is good practice I assume.
    When I first load a package from file, completion insight does not work.
    For example i do not get table names or column names after typing select t.<list expected> from <list expected initially> tab1 t
    When I close the file/tab and reopen the file completion insight suddenly works.
    Could you please fix this so that I only have to open the file once.
    Edited by: user10216416 on Nov 2, 2010 3:33 AM

    What version of SQL Developer are you using?
    Sue

  • 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

  • Saving Sequence Diagrams in Sun Java Studio Enterprise 8

    I'm having trouble saving my sequence diagrams! I create the diagrams press ctrl-s, click the Save-All button, when I close and reopen SJSE8 some of my diagrams are missing! When I look in the directory it appears that they have been saved because I have .eltd and .etlp files with the name of the diagram.
    In SJSE8 I still have the entries under Model, but not under Diagrams.
    It appears that the "link" or the "reference" to the file where the diagram has been saved is broken.
    Anybody have any ideas on how to fix this?

    I tried what you said on both Windows 2000 and Windows XP but could not reproduce the issue that you have. Could you please provide more detail like the following see if I can reproduce in order to help you.
    - what UML project type did you create (Platform-Independent Model, Java-Platform Model, etc.)? If Java-Platform Model, did you associate a Java project for code generation?
    - how many sequence diagrams do you have?
    - are the sequence diagrams created inside the package or just under the Model level scoping?
    - do you have other diagrams in the project too? If so, what type and how many of each type?
    - any other info you can provide will help
    Thanks,
    Peter

Maybe you are looking for

  • Creating .app folders in other operating systems?

    I'm working on a cross-platform game and am hoping to create an OS X port of it. I don't have access to a mac, and so am unable to use the xcode tool for creating .app folders. Are there any tools for creating .app folders on other operating systems?

  • Prompting for User name/Password after I close the KM document

    Hi All, When I open a KM document and close it, I am prompted with the authentication window to enter username/password. It was all fine. But for the past few days, I am  getting the enter network password prompt. This happens only for word document.

  • Ping sidebar data not rendering correctly

    Sometime after updating to iTunes 10.4, I downloaded a patch and since then, my Ping sidebar displays only plain text content listings and buttons, and these are all scattered about the sidebar. Most of the area though is blank... I just updated to i

  • Formula on Date Conversion

    Hi all, from flatfile Source date is mmddyyyy. i want to write a formula for Zdate in transfer rules. Can anyone give me the exact formula  for Dateconversion. Thanks,

  • HT1338 i have a phantom cursor, any ideas how to cure

    My laptop currently and for no apparant reason has a mind of its own.  The trackpad just does what it wants, and can only be described as possessed.  There is no visable reason for this.  Can anyone help?