Is it possible to display a return statement as the description of a transition in an UML statechart?
Is there any defined syntax or convention?
Example: int doSomething()
state 1 --- return doSomething() ---> state 2
I didn't find anything fitting on this topic and I'm not cut out to read the OMG UML specifications if it were to be written there. The only thing that I've found is this
Paper on Modelling Recursive Calls with UML State Diagrams.
The authors use Methode State Machines to track the state of a method. But I'd like to know how to write it as an action, e.g. using functions with return values rather than tracking the specific state that a method is in.