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

Similar Messages

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

  • How to create sequence

    How to create sequence(Auto generated no in oralce) with out using Triggers?
    If i create trigger sequence of numbers are getting generated but in case if i want to include explicit sequence no at the end of the table say like '9999'...it is not getting updated
    Pls help very urgent..

    user2134711 wrote:
    How to create sequence(Auto generated no in oralce) with out using Triggers? Sequence is an oracle object used to create unique number sequence. It has no connection with trigger.
    Generally Sequence is used in a Trigger to generate some column value automatically. Something like the IDENTITY column used in SQL Server.
    If i create trigger sequence of numbers are getting generated but in case if i want to include explicit sequence no at the end of the table say like '9999'...it is not getting updated This totally depends on how you have written the trigger. If you can show your trigger code we can help you out.

  • How to create ER diagrams using designer  6

    Hi
    pls suggest me how to create ER diagrams using designer 6.o
    thanks

    Hi,
    You have to capture the tables into Designer Repository using Design Editor utility (Hope you have done this !), then do a 'Table to Entity Retrofit' from Entity Relationship diagrammer utility. Create a ER Diagram and include the entities.
    Steps to do Entity Retrofit
    1. Invoke Entity Relationship Diagrammer from Designer Front Panel.
    2. Create New Diagram.
    3. Invoke Utilities | Table to Entity Retrofit.
    4. Click Candidate Tables button.
    5. Select the tables.
    6. Click Retrofit button.
    7. Entities will be created in diagram.
    8. Double click on the entity to see the details.
    HTH,
    Wilson

  • Automatically creating sequence diagram.

    Hi,
    Is there any way to create UML sequence diagram automatically from the existing java code? I am using jdeveloper 11.1.2.2.0. I know this feature is there in older versions, debug->debug with diagram. How can I achieve that in this version?
    Regards,
    Infy

    HI Shay,
    Thanks for your reply. Is there possibilities to create activity diagram from existing code in 11g?
    Regards,
    Infy

  • How to CREATE SEQUENCE in one table

    dear all
    the one thing i want to know when i use CREATE SEQUENCE in one table like this and then at that table
    CREATE SEQUENCE oproduct_sequence
    START WITH 1  INCREMENT BY 1 
    nocache
    create table oproduct(
    tname varchar2(20) not null,
    tid int default  oproduct_sequence.nextval
    the system indicat that i cannot use this way to create table , so i really want to know how can i achieve this method
    becuase when i want to insert inot table oproduct only use
    insert into oproduct  valuse('aaaa');
    and the result like
    aaaaa 1
    bbbb   2

    Actual name is before insert trigger. Some examples are listed below:
    Example Number 1 ...
    create sequence product_seq start with 1 increment 1
    create or replace trigger product_insert before insert for each row begin
    select productseq.nextval
    into :new.product_id
    from dual;
    end;
    Example Number 2 ...
    How to create an autoincrement field in a table with a sequence ...
    SQLWKS> create table bob(a number , b varchar2(21));
    Statement processed.
    First create a sequence
    SQLWKS> create sequence x ;
    Statement processed.
    Then create the trigger.
    create trigger y before insert on bob
    for each row
    when (new.a is null)
    begin
    select x.nextval into :new.a from dual;
    end;
    Example Number 3 ...
    First create a sequence:
    create sequence emp_no_seq;By default it increments by 1 starting at 0.
    Use its values when inserting data into the table:
    insert into t_emp values (emp_no_seq.nexval, 'Joe Black');~ Madrid.

  • How to create sequence when minvalue is unknown?

    I am currently migrating a lot of tables (that already have data) over to using sequences. I'd like to have a script that creates these sequences without having to hardcode the minimum value that the sequence should start at.
    I am trying to do something like this:
    create sequence mySeq minvalue (select max(id)+1 from table) increment BY 1 cache 20;
    This always gives the error "Invalid number". Can anyone provide some guidance on how to solve this problem?

    Like this..?
    SQL> declare
      2   min_val number;
      3   str varchar2(1000);
      4  begin
      5   select nvl(max(empno),0)+1
      6   into min_val
      7   from emp;
      8   str := 'create sequence seq1 start with '||min_val||' increment by 1 cache  20';
      9   execute immediate str;
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    SQL> select seq1.nextval
      2  from dual;
       NEXTVAL
          7935
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_dynamic_sql.htm#i1006172                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create state diagram (for state machine)

    Hallo  all.
    In my previous visit here, i saw picture of state diagram (bubbles with connection),
    How to create that in labview (if there is such option) ?
    or, which other software create state diagram.
    thanks  

    There is the State Diagram Toolkit (additional tool from NI for LabVIEW) with good interface and unreadable code
    It gives you a State Diagram Editor at Functions palette.
    It is very good tool for state diagram visualization, but readability of the code is controversial.
    When you will get a clear picture of a diagram from State Diagram Editor, I suggest use classic state diagram pattern: case structure driven by typedef enum in while loop.
    Regards
    Mikrobi (Zbigniew St. Sobków)____________________________________________________________
    "You can lead a horse to water, but if you can get him to float on his back you've got something."

  • Way to draw Class and Sequence Diagrams in JDEV

    Hi All,
    I am new to JDeveloper. I am using JDev - 10.1.3.3.
    Can anyone suggest me an example to draw Sequence and Class Diagrams in JDEV
    Thanks

    Maybe the online help can help you then:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.umlmodeling%7Cumlmodeling%7Cmod_umlclassmodeling%7Ehtml/
    Or watch these 10.1.2 demos that also apply to 10.1.3:
    http://www.oracle.com/technology/products/jdev/viewlets/10g/UML_Class_10g_final_viewlet_swf.html

  • How to create a diagram based on the query?

    Hi All,
    I want to create a diagram which will show a structure based on the data in the tables.
    For example:-
    if in a table, we have on two columns,
    one have unique breed of animal and other columns have sub-breeds under that breed. it is one to many mapping.
    in some other table,we have on two columns,
    one have unique sub-breed of animal and other columns have again sub-breeds under that breed. it is one to many mapping.
    i want to display the diagram as shown at the following url:- http://www.signosemio.com/a_analyse-par-classement.asp (diagram:- The naïve ontological classes)
    At the place of Boxes, i will show images.
    but i am not able to generate this diagram.
    please help.

    I am afraid, the Google Visualization plugin (which is used internally by that apex plugin) does not support multiple parents.
    The documentation page says the following
    Each node can have zero or one parent node, and zero or more child nodes.I tried adding an extra row for a child with an additional parent, but it removed the old parent association for that record in the chart
    You might have to some other plugin which supports that or find an JS/jQuery plugin that renders as per your requirement and then write the code yourself to pass the data to JS function from the page.

  • How to create waveform diagram for mp3(or other audio file)

    Hi!
    I googled for several days, but I steel can't solve problem.
    I need create waveform diagram (in jpeg, png or any other graphics formats) for audio files in console.
    Waveform diagram look like editor area in sound editors programs.
    like this 
    Does anybody can help me?
    Thank you!

    if it is impossible to understand... maybe my English is too bad)
    i need console command f.e.
    $ superConverter mysong.mp3  diagram.jpg
    and result file diagram.jpg contains waveform diagram for mysong.mp3.

  • How to create constellation diagram using Labwindows?

    I am using the labwindows CVI 2009 version. Is it possible to create Constellation diagram using this software?

    I believe you may require a Modulation Toolkit (Modulated Signal Processing for LabVIEW and LabWindows/CVI).
    -Ciao

  • How to create mapping diagrams in ODI?

    Is there anything in ODI similar to informatica stencil for visio to create the mapping design diagrams to show the data flow and transformations in a visio schematic diagram?
    Thanks for your feedback.

    thanks for your reply.
    I am not looking to find where to design/create the map in ODI.
    This is for a schematic representation of the mapping for design documentation to show how the map is going to look like with icons of various transformations involved in the map and connecting arrows to show the data flow in the map.
    Something similar to this for informatica:
    https://community.informatica.com/mpresources/screenshots/Replication.png

  • How to create login page in JDev

    Hi,
    First of all I'd like to apologize for posting this, but I just can't find what I'm looking for. I have a project to create an internal application to networked users via JDev/ADF that simply has a login and menu to run some reports and maybe a search screen. I am wondering the best approach since it's not a true web application and also wondering if anyone has a simple example to login to the database where the users are created as database users with assigned roles for table access? Any good advice will be appreciated!
    Thanks,
    Lee

    The link below will walk you through how to implement security in your ADF application.
    http://download-west.oracle.com/docs/html/B25947_01/adding_security.htm#BGBGJEAH

  • How To Create Gallery Wizard in Jdev 10.1.3.1?

    Folks,
    I'm working on an extension that will add a new file extension to JDeveloper. I would my extension to show up in the File/New Gallery. I know that this will involve code in the extension.xml and one or more Java classes.
    I've looked at the PHP extension and the extension.xml adds a PHPFileWizard to the File/New Gallery:
         <gallery>
            <item>
              <name>oracle.jdeveloper.addin.php.gallery.PHPFileWizard</name>
              <category>Web Tier</category>
              <folder>PHP</folder>
              <technologyKey>Web</technologyKey>
              <description>${PHP_FILE_DESC}</description>
            </item>
    ...Presumably PHPFileWizard implements one or more interfaces so that it is a 'legal' Gallery Wizard. Presumably my Java class needs to implement them as well. What are they? :)
    David Rolfe
    Orinda Software
    Dublin, Ireland
    Message was edited by:
    [email protected]
    (edited for clarity)

    The Extension SDK comes with a sample called class wizard that shows you how to implement a new wizard.
    There is a little error in one of the files there though.
    Here is the correct version of that file:
    package oracle.jdeveloper.extsamples.classgeneratorwizard;
    import java.awt.Dimension;
    import java.awt.Image;
    import java.io.File;
    import java.lang.reflect.Modifier;
    import java.net.URL;
    import javax.swing.JOptionPane;
    import oracle.bali.ewt.wizard.ImageWizardPage;
    import oracle.bali.ewt.wizard.Wizard;
    import oracle.bali.ewt.wizard.WizardDialog;
    import oracle.bali.ewt.wizard.WizardEvent;
    import oracle.bali.ewt.wizard.WizardListener;
    import oracle.ide.Context;
    import oracle.ide.editor.EditorManager;
    import oracle.ide.Ide;
    import oracle.ide.model.NodeFactory;
    import oracle.ide.model.Project;
    import oracle.ide.net.URLFactory;
    import oracle.ide.util.GraphicsUtils;
    import oracle.ide.wizard.WizardWelcomePage;
    import oracle.javatools.parser.java.v2.JavaConstants;
    import oracle.javatools.parser.java.v2.model.SourceBlock;
    import oracle.javatools.parser.java.v2.model.SourceClass;
    import oracle.javatools.parser.java.v2.model.SourceFile;
    import oracle.javatools.parser.java.v2.model.SourceMethod;
    import oracle.javatools.parser.java.v2.SourceFactory;
    import oracle.javatools.parser.java.v2.write.SourceTransaction;
    import oracle.jdeveloper.java.JavaManager;
    import oracle.jdeveloper.java.TransactionDescriptor;
    import oracle.jdeveloper.model.JavaProject;
    import oracle.jdeveloper.model.JavaSourceNode;
    import oracle.jdeveloper.model.PathsConfiguration;
    public class RealWizard extends Wizard implements WizardListener {
    // In this example, all images are the same. They could be different.
    private static final String WIZARD_LEFT_IMAGE_01 = "150x300_Generic.gif";
    private static final String WIZARD_LEFT_IMAGE_02 = "150x300_Generic.gif";
    private static final String WIZARD_LEFT_IMAGE_03 = "150x300_Generic.gif";
    private static final String WIZARD_LEFT_IMAGE_04 = "150x300_Generic.gif";
    private Context context;
    ImageWizardPage[] wizardPage;
    WizardWelcomePage wwp;
    ImageWizardPage iwpOne;
    ImageWizardPage iwpTwo;
    SummaryPage wsp;
    /** @snippet_reference {@start WizardContext.2} */
    private Model model;
    /** @snippet_reference {@end WizardContext.2} */
    public
    RealWizard(Context ctx) {
    this.context = ctx;
    this.model = new Model();
    this.setPreferredSize(new Dimension(166, 387));
    wwp = createWelcomePage();
    this.addPage(wwp.getWizardPage());
    /** @snippet_reference {@start WizardContext.3} */
    iwpOne = createWizardPageOne(model);
    this.addPage(iwpOne);
    PanelOne panelOne = (PanelOne)iwpOne.getInteractiveArea();
    iwpOne.addWizardValidateListener(panelOne);
    iwpTwo = createWizardPageTwo(model);
    this.addPage(iwpTwo);
    PanelTwo panelTwo = (PanelTwo)iwpTwo.getInteractiveArea();
    iwpTwo.addWizardValidateListener(panelTwo);
    wsp = createSummaryPage(model);
    /** @snippet_reference {@start WizardContext.3} */
    this.addPage(wsp);
    if (!wwp.isHidden())
    this.setSelectedPage(wwp.getWizardPage());
    else
    this.setSelectedPage(iwpOne);
    this.setMustFinish(true);
    wizardPage =
    new ImageWizardPage[] { wwp.getWizardPage(), iwpOne, iwpTwo,
    wsp };
    // Create wizard Dialog
    WizardDialog wDialog = createWizardDialog();
    wDialog.setTitle("Create a Java Class");
    this.addWizardListener(this);
    wDialog.runDialog();
    public void wizardApplyState(WizardEvent p0) {
    public void wizardCanceled(WizardEvent p0) {
    public void wizardFinished(WizardEvent p0) {
    try {
    // Get Current Project
    Project prj = Ide.getActiveProject();
    JavaSourceNode jsn = null;
    String greeting = this.model.getHelloWord();
    String greetee = this.model.getName2Greet();
    String className = "Hello" + greetee.replace(' ', '_');
    String packageName =
    JavaProject.getInstance(prj).getDefaultPackage();
    String srcPath =
    PathsConfiguration.getInstance(prj).getSourcePath().toString();
    String srcDir = "";
    if (srcPath.indexOf(File.pathSeparatorChar) > -1)
    srcDir =
    srcPath.substring(0,
    srcPath.indexOf(File.pathSeparatorChar));
    else
    srcDir = srcPath;
    URL dirURL =
    new File(srcDir + File.separator + packageName.replace('.',
    File.separatorChar)).toURL();
    URL classURL = URLFactory.newURL(dirURL, className + ".java");
    if (classURL == null) {
    JOptionPane.showMessageDialog(null,
    "Cannot create URL for " +
    className +
    ".java", "Ooops",
    JOptionPane.ERROR_MESSAGE);
    } else { // Let's go on
    jsn =
    (JavaSourceNode)NodeFactory.findOrCreate(JavaSourceNode.class, classURL);
    JavaManager javaMgr = JavaManager.getJavaManager(prj);
    SourceFile javaFile = javaMgr.getSourceFile(jsn.getURL());
    if (javaFile != null) {
    JOptionPane.showMessageDialog(null,
    "Cannot create URL for " +
    className + ".java" + "\n"
    +
    "Source Already Exists",
    "Error",
    JOptionPane.ERROR_MESSAGE);
    return;
    jsn =
    (JavaSourceNode)NodeFactory.findOrCreate(JavaSourceNode.class, classURL);
    prj.add(jsn, true);
    jsn.open();
    jsn.save();
    // Now the Node is created, let's create its content
    boolean success =
    createContent(jsn, prj, packageName, className, greeting,
    greetee);
    if (success) {
    jsn.save();
    EditorManager.getEditorManager().openDefaultEditorInFrame(jsn.getURL());
    } else {
    JOptionPane.showMessageDialog(null,
    "Cannot create node
    content",
    "Ooops",
    JOptionPane.ERROR_MESSAGE);
    } catch (Exception ex) {
    ex.printStackTrace();
    JOptionPane.showMessageDialog(null, ex.toString(), "Ooops",
    JOptionPane.ERROR_MESSAGE);
    public void wizardSelectionChanged(WizardEvent wEvent) {
    int pageNo = 0;
    try {
    pageNo = wEvent.getPage().getIndex();
    } catch (Exception ignore) {
    if (pageNo == 0) // to Welcome
    else if (pageNo == 1) {
    PanelOne p1 = (PanelOne)iwpOne.getInteractiveArea();
    p1.setDefaultValues();
    } else if (pageNo == 2) {
    PanelTwo p2 = (PanelTwo)iwpTwo.getInteractiveArea();
    p2.setDefaultValues();
    } else if (pageNo == 3) // to Summary and generation
    wsp.enterPage();
    private WizardWelcomePage createWelcomePage() {
    // This key is used to remember the "Show next time" check box!
    final String strShowAgainKey = "SAMPLE_EIGHT_REF";
    WizardWelcomePage wp = new WizardWelcomePage(strShowAgainKey);
    // Set the image
    java.awt.Image img =
    GraphicsUtils.loadFromResource(WIZARD_LEFT_IMAGE_01,
    this.getClass());
    // java.awt.Image img =
    GraphicsUtils.createImageIcon(GraphicsUtils.loadFromResource(WIZARD_LEFT_IMAGE
    _01, this.getClass())).getImage();
    if (img != null)
    wp.setImage(img);
    else
    System.out.println(WIZARD_LEFT_IMAGE_01 + " not found");
    // Set the Title
    final String welcomeTitle = "Creating a Java Class";
    wp.setTitle(welcomeTitle);
    // Set the Description Text for first page
    final String welcomeDesc =
    "This wizard will help you to create a Java Class." + "\n" +
    "This is a sample from the JDeveloper Extensions SDK
    demonstrating " +
    "how to integrate a wizard into the product." + "\n" +
    "Press Next to continue\n";
    wp.setDescription(welcomeDesc);
    // Return results
    return wp;
    private ImageWizardPage createWizardPageOne(Model m) {
    PanelOne panel = new PanelOne(m);
    final String title = "A dummy title";
    Image img =
    GraphicsUtils.createImageIcon(GraphicsUtils.loadFromResource(WIZARD_LEFT_IMAGE
    _02,
    this.getClass())).getImage();
    ImageWizardPage iwp = new ImageWizardPage(panel, img, title);
    return iwp;
    private ImageWizardPage createWizardPageTwo(Model m) {
    PanelTwo panel = new PanelTwo(m);
    final String title = "A dummy title";
    Image img =
    GraphicsUtils.createImageIcon(GraphicsUtils.loadFromResource(WIZARD_LEFT_IMAGE
    _03,
    this.getClass())).getImage();
    ImageWizardPage iwp = new ImageWizardPage(panel, img, title);
    return iwp;
    private SummaryPage createSummaryPage(Model m) {
    Image img =
    GraphicsUtils.createImageIcon(GraphicsUtils.loadFromResource(WIZARD_LEFT_IMAGE
    _04,
    this.getClass())).getImage();
    return new SummaryPage(m, img);
    private WizardDialog createWizardDialog() {
    WizardDialog wdlg = new WizardDialog(this, Ide.getMainWindow());
    return wdlg;
    private static final boolean createContent(JavaSourceNode node,
    Project prj, String
    packageName,
    String className,
    String greeting,
    String greetee) {
    boolean ret = true;
    JavaManager javaMgr = JavaManager.getJavaManager(prj);
    SourceFile javaFile = javaMgr.getSourceFile(node.getURL());
    final String QUOTE = "\"";
    String greet =
    QUOTE + greeting + QUOTE + " + \" \" + " + QUOTE + greetee +
    QUOTE + " + \"!\"";
    //logMessage("Step 1 - Initializing...");
    if (javaFile == null)
    return false;
    //logMessage("Step 2 - Getting Source File...");
    SourceTransaction st = javaFile.beginTransaction();
    try {
    SourceFactory factory = javaFile.getFactory();
    javaFile.setPackageName(packageName);
    //logMessage("Step 3 - Setting Package Name...");
    // Class Description
    SourceClass helloClass = factory.createClass(0, className);
    helloClass.addSelf(javaFile);
    helloClass.setModifiers(Modifier.PUBLIC);
    //logMessage("Step 4 - Setting Class Name...");
    // Create main method
    SourceBlock block = factory.createBlock();
    SourceMethod meth =
    factory.createMethod(factory.createType(JavaConstants.PRIMITIVE_VOID),
    "main",
    factory.createFormalParameterList(factory.createLocalVariable(factory.createTy
    pe("String",
    1),
    "args")),
    null,
    (SourceBlock)factory.createBlock("\n\n{\n\n\t" +
    "System.out.println(" +
    greet +
    ");" +
    "\n\t}"));
    meth.setModifiers(Modifier.PUBLIC | Modifier.STATIC);
    meth.addSelf(helloClass);
    //logMessage("Step 5 - Creating Main Method...");
    // Write the file
    javaMgr.commitTransaction(st,
    new TransactionDescriptor("Generate
    file"));
    //logMessage("Step 6 - Commiting Work...");
    } catch (Exception e) {
    st.abort();
    //logMessage(e.getMessage());
    ret = false;
    return ret;
    }

Maybe you are looking for