Using conditionals with swimlanes? Connecting to conditional objects?

0 votes
asked Nov 5 in Question / help by boldandbusted (180 points)
Howdy. I don't yet have an example that I can share, but I'm trying to make swimlanes play well with conditionals. However, I'm having trouble with the 'endif' object (the 'diamond') jumping back into the first swimlane where the 'if' begins before the path travels to the next swimlane. How can I make either a) the 'endif' object not be used, and the path of the decision just travel to the same destination after the 'if' *and*' the 'else' stanzas or b) put the 'endif' object in a different swimlane from the 'if' and 'else' objects? I tried to just not use 'endif' at all, and I get connectors that actually end at the diagram edge...

Also, how do I 'reference' objects I've made that have '#' colors applied? I can't seem to direct connectors to objects named like "#green:if (Decision Here?) then" properly. How should I direct other paths to connect with, in this example, "Decision Here?".

I hope that makes sense. I hope to put up a code example demonstrating my problem, too.  Thanks in advance! :D

Jesse
commented Nov 17 by Greg

I am experiencing the same issue.  My "if" node is in Lane A, but within the "then" and "else" sections I switch to "Lane B".  But the "endif" diamond moves back to "Lane A" instead of staying in "Lane B".


@startuml
|User|
|#AntiqueWhite|Workspace|
|Oracle SOA|
|#AntiqueWhite|Oracle EBS|
start
:Request is made;
:Provide records;
|Oracle SOA|
:Pull information via API;
|Workspace|
:Pull records/generate notifications;
|User|
:Notification;
:Review PR Details;
|Workspace|
:PR Details Form;
|User|
if (Approve?) then (No)
  |User|
  :Add comment;
  |Workspace|
  :Call Reject API;
else (Yes)
  |Workspace|
  :Call Approval API;
endif
|Oracle SOA|
:Write back to Oracle via API;  
|Oracle EBS|
:Update Records;
stop
@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...