Hi
New user to PlantUML. I have a few IF/ELSE scattered about where the main chunk I have defaulted the 'happy path' with no action but it merges to a final action below. The else part of all of these I have had to duplicate an action + stop. I am sure there must be a way to merge them as well but not able to figure it out.
Below is the text, the entries in red are the ones I feel I shouldn't have to duplicate and also I am not sure I want to 'stop' either as I have not done the analysis but feel if they can be merged to another action will continue to another path with further actions.
thanks
Bini
|Venue|
start
:Request Price;
|#AntiqueWhite|Neutrino|
:Check If\nIn Scope;
if (Client Entity\nin Scope ?) then (no)
(yes) elseif (Prod=NDF,\nFWD,STRIP ?) then (no)
(yes) elseif (Any Legs\n> 1Y ?) then (no)
else (yes)
:Check Request\nAgainst XVA Data;
if (Client\nFound ?) then (yes)
If (Pair\nFound ?) then (yes)
If (XVA Data\nComplete ?) then (yes)
else (no)
#red:Block Pricing;
stop
endif
else (no)
If (Default\nPair Found ?) then (yes)
If (XVA Data\nComplete ?) then (yes)
else (no)
#red:Block Pricing;
stop
endif
else (no)
#red:Block Pricing;
stop
endif
endif
:Calc XVA;
stop
else (no)
if (Default\nClient\nFound ?) then (yes)
if (Pair\nfound ?)
if (XVA Data\nComplete ?) then (yes)
else (no)
#red:Block Pricing;
stop
endif
else (no)
if (Default\nPair\nFound ?)
if (XVA Data\nComplete ?) then (yes)
else (no)
#red:Block Pricing;
stop
endif
else (no)
endif
endif
else (no)
endif
:Calc XVA;
stop
endif
endif
:Price without XVA;
stop |