Hello!
I am having a problem with the below UML sequence diagram.
In Eclipse, the diagram is generated if the code on lines 38 to 102, inclusive, is designated a !function.
When processed by PlantUML (locally or via online server), it results in the error "This function does not have any !return directive. Declare it as a procedure?" Please see here.
When I switch it to a !procedure, it works as seen here.
Then, when I try that !procedure version in Eclipse, I receive an "Unknown variable $sbrName" error for line 45. However, I do define $sbrName on line 107 right before invoking $sbrStart() on line 116.
I neither understand why the same code is being handled differently by Eclipse and PlantUML, nor which syntax is correct. Any thoughts would be much appreciated.
Many thanks in advance!
Jan