Was this page helpful?

UML Sequence Diagrams

    Table of contents
    1. 1. Functions
    2. 2. Script Source
    3. 3. Samples
    Vendor
    MindTouch
    Type Script
    Categories Graphs
    Requires MindTouch Core 1.8.3 or later
    Status Beta
    License Free/Open Source
    Manifest http://scripts.mindtouch.com/umlsequence.xml

     

    Install Script
    To add  this script to your site, enter the address of your MindTouch installation (ex: http://www.mindtouch.com) and click the Add Script button.  This will open your control panel and prepopulate the necessary values.  You will still need to manually add configuration settings if required.  Note that no changes are made to your site until you confirm the action in your control panel.
    Your site address:     


    Table of Contents

    See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.


    Functions

    Script Source

    
            


    Samples

      Output

    To embed the UML sequence diagram:

    1. Create a Formatted block of text.
    2. Enter the UML sequence diagram description (see manual for notation).
    3. Select umlsequence.diagram from Transformations menu in editor.
    Alice->Bob: Authentication Request
    alt successful case
        Bob->Alice: Authentication Accepted
    else some kind of failure
        Bob->Alice: Authentication Failure
        opt
            loop 1000 times
                Alice->Bob: DNS Attack
            end
        end
    else Another type of failure
        Bob->Alice: Please repeat
    end 
    Alice->Bob: Authentication Request
    alt successful case
        Bob->Alice: Authentication Accepted
    else some kind of failure
        Bob->Alice: Authentication Failure
        opt
            loop 1000 times
                Alice->Bob: DNS Attack
            end
        end
    else Another type of failure
        Bob->Alice: Please repeat
    end

    To embed the UML sequence diagram using the 'napkin' style:

    1. Create a Formatted block of text.
    2. Enter the UML sequence diagram description (see manual for notation).
    3. Select umlsequence.diagram from Transformations menu in editor.
    4. Switch to source mode and change the <pre> element to:
      <pre function="umlsequence.diagram($, 'napkin')">
    User->A: DoWork
    activate A
    A->B: <<createRequest>>
    activate B
    B->C: DoWork
    activate C
    C-->B: WorkDone
    destroy C
    B-->A: RequestCreated
    deactivate B
    A->User: Done
    
    User->A: DoWork
    activate A
    A->B: <<createRequest>>
    activate B
    B->C: DoWork
    activate C
    C-->B: WorkDone
    destroy C
    B-->A: RequestCreated
    deactivate B
    A->User: Done

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by