Loading...
 
Skip to main content

History: Webservice_Sequence_Diagram

Source of version: 41 (current)

Copy to clipboard
            Generates sequence diagrams using [http://www.websequencediagrams.com/|Web Sequence Diagrams]

The profile adds a new plugin and a registered webservice.

{CODE(caption="Wiki Markup" colors="javascript" ishtml="1")}
{SEQUENCEDIAGRAM(style="modern-blue")}
Client -> Server : getSomething
Server --> Client : something
Client -> Server : setFoo( foo )
Server --> Client : true
{SEQUENCEDIAGRAM}
{CODE}

Multiple styles are available:
{img src=http://profiles.tiki.org/tiki-download_wiki_attachment.php?attId=5&page=Webservice_Sequence_Diagram&download=y} {img src=http://profiles.tiki.org/tiki-download_wiki_attachment.php?attId=6&page=Webservice_Sequence_Diagram&download=y}


{CODE(caption=>YAML,wrap=1)}
preferences:
 enable: [ feature_webservices, wikiplugin_webservice, wikiplugin_$profileobject:seqdiag_ws$ ]
objects:
 -
  type: webservice
  ref: seqdiag_ws
  data:
   name: $profilerequest:Webservice Name$sequencediagram$
   url: $profilerequest:Sequence Diagram Webservice URL$http://www.websequencediagrams.com/$
   body: "?style=%style%&message=%message%"
   schema_version: 1.0
   schema_documentation: http://www.websequencediagrams.com/embedding.html
 -
  type: webservice_template
  data:
   webservice: $seqdiag_ws
   name: default
   engine: smarty
   output: tikiwiki
   content: "{img src=http://www.websequencediagrams.com/{{$response.img}} }"
 -
  type: plugin_alias
  ref: plugin
  data:
   name: $seqdiag_ws
   implementation: webservice
   description:
    name: Sequence Diagram
    description: Displays a sequence diagram based on the body of the plugin
    prefs: [ wikiplugin_$profileobject:seqdiag_ws$ ]
    params:
     style:
      name: Style
      filter: striptags
      required: n
      description: Visual style of the diagram (default, earth, modern-blue, mscgen, omegapple, qsd, rose, roundgreen, napkin)
   body:
    input: use
    default: "A -> B : Hello"
   params:
    service: $seqdiag_ws
    template: default
    bodyname: message
    style: napkin
{CODE}

! Known Issues
* WTF the style isn't applied ???
* WTH the wiki plugin helper doesn't display the plugin body ?