[From string (line 102) ] @startuml actor Tusr as "User" box PRODUCT XXX #E4F1DB participant Tcpu as "XXX CPU\n(A! Chipset)" participant Tbt as "YY TRX\n(A1 Chipset)" ... ... ( skipping 77 lines ) ... prodId = $var("prodId") prodSession = $var("prodSessionId") timeBtOffset = $var("btTimeOffset"), if available; otherwise write $nul timeAdjusted = $bold("timeClock") + $bold("timeBtOffset"), if time offset is available; otherwise write $nul $bold("TPS - XXX Process Summary") processId = $bold($b) processRequester = $var($b + "Requester") processStart = $var($b + "Start") processStartRaw = $var($b + "StartRaw") processElapsed = $bold($nul) processEnd = $bold($nul) processEndRaw = $bold($nul) $bold("TMH - XXX Message Footer") ediStatus = $var($b + "EdiStatus") end note return : OK. note over Tusr, OMSofficer #physical : $bold("The process activity unique to this sub-routine begins below this line.") ... !endfunction ^^^^^ This function does not have any !return directive. Declare it as a procedure instead ?