Have been digging into the styles wiki http://wiki.plantuml.net/site/style-evolution and looking to apply a style in a function. There doesn't seem to be a way to activate the style. Any suggestions?
@startuml
skinparam useBetaStyle true
!function formatConnection($sequenceArrowThickness, $from, $to, $protocol)
style message {
SequenceArrowThickness $sequenceArrowThickness
}
'$from<<-[thickness=$sequenceArrowThickness]->>$to <style : SequenceArrowThickness= $sequenceArrowThickness> : $protocol
$from<<->>$to : $protocol
!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("5", "ap", "extapi","<< MA-TLS >>")
@enduml