We have some activity diagrams for modeling functions which return a value, each in its own plantuml file.
I'd like to use/include those in bigger activity diagrams, rather than have a "call function()" activity. !include has been really useful to avoid repeating ourselves (just like functions should do)
The important part is showing the activity flow for each of the returned value.
I've tried embedding those into the conditional itself, with no success.
I've tried embedding those into notes before/after the conditional, and it looks weird. I cannot make the note link against the conditional.
Here's a diagram which showcases several of my attempts:
http://www.plantuml.com/plantuml/uml/ZPBlQjim4C2_trDSoc3sAwIbQ-A5CUY7qctiisgVOn7bPAHpHmX-zvt5xCKqXWY3zUTEzxiVUefYWdH71_5WkJN17D6KOj-jdF0Cg6DhoiC--8whmZiV7XxsWOWV7_7PxXlvDYoknmMgngZ21-EW1u1L6tn9LHS8FraM2cnSbiDdV75a8k7tezbR9fJ6HjJFCAuibwwh2ElWbOwzD1Imjex0rfYrpl3GmH1TUk--v9fCZDcmo67YNPyetWCvBPA9vPF6nuvo-0UwPg-dNDaQLlgRC06I8e3rRtEWNo_t0Af9h5ZFU5VR40MD21rRkLDZwwAXye25rcQAMb1n2SCW0Svdq3n7cFRCctyd9UOgtQL-BeNq_G2J8bENhnGx9rDlsak-VFKREV_dfgjHntz3nUvvjttT_DoDdjZda696IJysNqTBFLGafcncFY8DLI-5N1pgL6VYMVVdH4ijti2tX3VIzJC-QMoOuItntVAqiaq-LlduhBBjT3ZwIWbNkudYsvGnQoJjzl2a-Ghn5m00
In the first attempt, I'd be happy if the embedded note was inside the conditional. Having to manually add a "result" step is too artificial.
In the second attempt, I'd like to skip the "result?" step, and create a direct link from "Yes" to "CELEBRATE", and from "no" to "SAD".
In the third attempt, which is my least favorite as it uses connectors, I'd like to have actual arrows between connectors, and maybe for horizonal alignment between (A) and (B). I think implementing this option is the smallest syntax change: "skinparam ConnectedConnectors true"
I've noted that because of the structure of the syntax, its impossible to conditionally exit from a partition: all branches of a conditional that starts within a partition must end before the partition ends. Perhaps a break/return statement could be of use. I'm aware of swimlanes, but it did not fit well.
Thanks for your awesome support.