Inserting a plantuml code as an argument of a function

0 votes
asked May 12, 2017 in Bug by boshka (3,940 points)
Hi Plantuml team!
 
why this works:
 
@startuml
 
!define a(code) code
 
!definelong myXtraCode
a->b:hello
activate b
b->a:hello too
deactivate b
note right
test
end note
!enddefinelong
 
a(myXtraCode)
 
@enduml
 

but this - does not:

@startuml
 
!definelong a(extraCode)
a->b: some extra message
extraCode
b->a: some extra reply
!enddefinelong
 
!definelong myXtraCode
a->b:hello
activate b
b->a:hello too
deactivate b
note right
test
end note
!enddefinelong
 
a(myXtraCode)
 
@enduml

1 Answer

0 votes
answered May 13, 2017 by plantuml (295,000 points)
Thanks for the feedback!

We are currently working on the preprocessor, so some slight changes may occur...

This has been fixed in last beta

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

Regards,
...