Conditional control of "skinparam" effects

0 votes
asked Jul 2 in Question / help by kjw

Three variations on a theme 

I have the following function and participants:

!function formatConnection($sequenceArrowThickness, $from, $to, $protocol)
   skinparam sequenceArrowThickness $sequenceArrowThickness
   $from<<->>$to : $protocol
   skinparam sequenceArrowThickness 1
!endfunction

box "AWS " #LightBlue
    participant "aPlatform" as ap
end box

box "External" #Lightgreen
    participant "EXternal API" as extapi
    participant ""EXternal  Service" as exts
end box

formatConnection("2", "ap", "extapi");

First Ask

Skinparam is applied globally so skinparam sequenceArrowThickness 1 wins

Is there any way to conditionally turn skinparam effects on/off as needed ??


Secoundary Ask : Alternatively

'ap<<->>extapi : #"sequenceArrowThickness 2" << MA-TLS >>

Is this format a useful idea ?

Third Ask : Possible enhancment

Setting up double line calls :

Continuous Line
'ap<<==>>extapi

Dashed Line
'ap<<===>>extapi

LIne with embedded text
'ap<<=["<< MA-TLS >>"]=>>extapi

1 Answer

0 votes
answered Jul 2 by plantuml (198,100 points)

 Skinparam is applied globally so skinparam sequenceArrowThickness 1 wins
 Is there any way to conditionally turn skinparam effects on/off as needed ??

Unfortunately, by construction, skinparams apply globally.
Changing this would be too difficult.

However, the good news is that we have recently started a new discussion to create a new system (based on styles) which will overcome several limitations of the current skinparam system (including the one you are mentionning, which is http://wiki.plantuml.net/site/style-evolution#varying_style I think).

The idea here is to get to a clear specification about styles before implementing it.

So you are welcome to participate on the following page:

http://wiki.plantuml.net/site/style-evolution

This page is really open : you don't need to have any account.

You can put your initial [KJW] in your contribution:
- put remark
- ask question
- write what you are expecting.
- ...


Thanks!

...