Mediawiki UML extension

From emboxit
Jump to: navigation, search





PlantUML


<uml> Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response </uml>


<uml> skinparam usecaseBackgroundColor DarkSeaGreen skinparam usecaseArrowColor Olive skinparam actorBorderColor black skinparam usecaseBorderColor DarkSlateGray skinparam usecaseActorFontName Courier

User << Human >>

Main Database: as MySql << Application >>

(Start) << One Shot >> (Use the application) as (Use) << Main >>

User -> (Start) User --> (Use) MySql --> (Use) </uml>


<uml> package "Classic Collections" #DDDDDD Object <|-- ArrayList

package net.sourceforge.plantuml Object <|-- Demo1 Demo1 *- Demo2 </uml>


<uml> (*)-->" Initialisation " if "Test" then

-->[true] "Some Activity "
--> " Another activity "
-->right -> (*)

else

->[false] " Something else"
-->[ Ending process ] (*)

endif </uml>


<uml> 'http :// click. sourceforge .net/images /activity -diagram -small.png title Servlet Container (*) --> " ClickServlet . handleRequest ()" --> "new Page" if "Page. onSecurityCheck " then ->[true] "Page. onInit ()" if " isForward ?" then ->[no] " Process controls " if " continue processing ?" then -->[yes] === RENDERING === else -->[no] === REDIRECT_CHECK === endif else -->[yes] === RENDERING === endif if "is Post ?" then -->[yes] "Page.onPost ()" --> "Page. onRender ()" as render --> === REDIRECT_CHECK === else -->[no] "Page.onGet ()" --> render endif else -->[false] === REDIRECT_CHECK === endif if "Do redirect ?" then ->[yes] " redirect request " --> == BEFORE_DESTROY === else if "Do Forward ?" then -->left ->[yes] " Forward request " --> == BEFORE_DESTROY === else -->right ->[no] "Render page template " --> == BEFORE_DESTROY === endif endif --> "Page. onDestroy ()" -->(*) </uml>



<uml> [*] --> State1 State1 --> [*] State1 : this is a string State1 : this is another string State1 -> State2 State2 --> [*] </uml>


<uml> [*] -> State1 State1 --> State2 : Succeeded State1 --> [*] : Aborted State2 --> State3 : Succeeded State2 --> [*] : Aborted state State3 { state " Accumulate Enough Data\nLong State Name" as long1 long1 : Just a test [*] --> long1 long1 --> long1 : New Data long1 --> ProcessData : Enough Data } State3 --> State3 : Failed State3 --> [*] : Succeeded / Save Result State3 --> [*] : Aborted </uml>


<uml> [*] --> Active state Active {

[*] --> NumLockOff
NumLockOff --> NumLockOn : EvNumLockPressed
NumLockOn --> NumLockOff : EvNumLockPressed
--
[*]--> CapsLockOff
CapsLockOff --> CapsLockOn : EvCapsLockPressed
CapsLockOn --> CapsLockOff : EvCapsLockPressed
--
[*]--> ScrollLockOff
ScrollLockOff --> ScrollLockOn : EvCapsLockPressed
ScrollLockOn --> ScrollLockOff : EvCapsLockPressed

} </uml>



Edited at http://codeuml.com/

<uml> [*] -> State1 State1 --> State2 : Succeeded State1:text State1:more text State1:more and more text State1 --> [*] : Aborted State1 --> State3:test State1 --> State3:test2 State1 --> State3:test3 State2 --> State3 : Succeeded State2 --> [*] : Aborted state State3 { state " Accumulate Enough Data\nLong State Name" as long1 long1 : Just a test long1 : Just a 2nd line

[*] --> long1 long1 --> long1 : New long1 --> long1 : because I like so long1 --> ProcessData : Enough Data } State3 --> State3 : Failed State3 --> [*] : Succeeded / Save Result State3 --> [*] : Aborted </uml>