Is it possible to define the name and an alias for a swimlane in one place and use the alias everywhere else?

0 votes
asked Nov 11, 2014 in Wanted features by moishe (260 points)

In order to be able to change the name of a swimlane without having to change every reference to it, it would be helpful to be able to assing an alias to in some way like aliases can be assigned to actors or use cases

actor :Last actor: as Men4
usecase UC1 as "This is my use case"

 

1 Answer

0 votes
answered Nov 11, 2014 by moishe (260 points)
edited Nov 12, 2014 by moishe
After a bunch of trying back and forth I found out that the syntax I was looking for is simply

|[#<color>|]<swimlane_alias>| <swimlane_title>

as in

|#green|f| fisherman
|c| cook
|#yellow|e| eater
|f|
start
:go fish;
|c|
:fry fish;
|e|
:eat fish;
stop

Could you please add this to the docs? Thanks!
commented Oct 30, 2025 by Thomas S. (100 points)
And here my issue on this: I'd like to use '|' character as name of the swimlane ... it's a product name part.
commented Oct 30, 2025 by The-Lu (88,340 points)

Hello T.,

For that you can use unicode, like:

|a|A
|b|name with a pipe "<U+007C>": "a<U+007C>b"

|a|
:action 1;
|b|
:action 2;

See doc. here:

...