Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkeisuke/8047f952576f44121c31b821f6f86c9d to your computer and use it in GitHub Desktop.
Save kkeisuke/8047f952576f44121c31b821f6f86c9d to your computer and use it in GitHub Desktop.
アクティビティ図を書き始めるためのテンプレート
@startuml
(*) -down-> "step 1"
if "action" then
-down->[true] "step 2"
-down-> "step 3"
-down->[End] (*)
else
-right->[false] "error"
-up-> "step 1"
endif
@enduml
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="433px" preserveAspectRatio="none" style="width:177px;height:433px;" version="1.1" viewBox="0 0 177 433" width="177px" zoomAndPan="magnify"><defs><filter height="300%" id="f115gq384yy8jt" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><ellipse cx="80.8814" cy="18" fill="#000000" filter="url(#f115gq384yy8jt)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#f115gq384yy8jt)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="60" x="51.3814" y="70"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="40" x="61.3814" y="91.1387">step 1</text><polygon fill="#FEFECE" filter="url(#f115gq384yy8jt)" points="52.8814,151,64.8814,163,52.8814,175,40.8814,163,52.8814,151" style="stroke: #A80036; stroke-width: 1.5;"/><rect fill="#FEFECE" filter="url(#f115gq384yy8jt)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="60" x="23.3814" y="236"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="40" x="33.3814" y="257.1387">step 2</text><rect fill="#FEFECE" filter="url(#f115gq384yy8jt)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="60" x="23.3814" y="312"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="40" x="33.3814" y="333.1387">step 3</text><ellipse cx="52.8814" cy="412" fill="none" filter="url(#f115gq384yy8jt)" rx="10" ry="10" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="53.3814" cy="412.5" fill="#000000" rx="6" ry="6" style="stroke: none; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#f115gq384yy8jt)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="51" x="115.6314" y="146"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="31" x="125.6314" y="167.1387">error</text><!--link start to step 1--><path d="M80.8814,28.036 C80.8814,37.412 80.8814,52.41 80.8814,64.801 " fill="none" id="start-step 1" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="80.8814,69.928,84.8814,60.928,80.8814,64.928,76.8814,60.928,80.8814,69.928" style="stroke: #A80036; stroke-width: 1.0;"/><!--link step 1 to #156--><path d="M74.8058,104.057 C69.7393,117.447 62.6083,136.293 57.8708,148.814 " fill="none" id="step 1-#156" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="56,153.758,62.9269,146.7567,57.7699,149.0817,55.4449,143.9248,56,153.758" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="34" x="11.1411" y="140.4747">action</text><!--link #156 to step 2--><path d="M52.8814,175.145 C52.8814,189.06 52.8814,213.161 52.8814,230.671 " fill="none" id="#156-step 2" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="52.8814,235.875,56.8814,226.875,52.8814,230.875,48.8814,226.875,52.8814,235.875" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="23" x="53.8814" y="211.7104">true</text><!--link step 2 to step 3--><path d="M52.8814,270.057 C52.8814,280.821 52.8814,295.11 52.8814,306.806 " fill="none" id="step 2-step 3" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="52.8814,311.974,56.8814,302.974,52.8814,306.974,48.8814,302.974,52.8814,311.974" style="stroke: #A80036; stroke-width: 1.0;"/><!--link step 3 to end--><path d="M52.8814,346.003 C52.8814,360.6558 52.8814,382.1613 52.8814,396.3665 " fill="none" id="step 3-end" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="52.8814,401.6044,56.8814,392.6044,52.8814,396.6044,48.8814,392.6044,52.8814,401.6044" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="21" x="53.8814" y="377.7104">End</text><!--link #156 to error--><path d="M65.1174,163 C76.7432,163 94.7041,163 110.2207,163 " fill="none" id="#156-error" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="115.3764,163,106.3764,159,110.3764,163,106.3764,167,115.3764,163" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="28" x="75.6314" y="156.2104">false</text><!--link step 1 to error--><path d="M97.0765,107.974 C106.7416,119.894 118.8515,134.83 127.888,145.974 " fill="none" id="step 1-error" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="93.9005,104.057,96.4611,113.5672,97.0493,107.941,102.6755,108.5291,93.9005,104.057" style="stroke: #A80036; stroke-width: 1.0;"/></g></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment