Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Arrow Color, "While" inside partition and if

0 votes

Hi,

After fixing the nested while bug, there is left the while in partition and while in if that must be fixed.

The exit arrow of a "while" directly inside a "partition" or directly inside an "if" can't be styled.

Here is the pumls that show these bug :

testInitial.png : a diagram that looku like our original diagram

@startuml testInitial.png
start
partition "Partition bug1" {
  while (while bug 1)
    -[#LightGreen]->
    if (if bug 2) then (yes)
      -[#LightGreen]->
      :plop;
      while (while bug 2)
        -[#LightGreen]->
        :plop;
        while (while qui marche)
          -[#LightGreen]->
          if (if qui marche) then (yes)
            -[#LightGreen]->
            :plop;
          else
          -[#Blue]->
            :plop;
          endif
          :plop;
        endwhile
        -[#Blue]->
        :plop;
      endwhile
      -[#Blue]->
    else
      -[#Blue]->
      :plop;
    endif
  endwhile
  -[#Blue]->
}
stop
@enduml
 
 
test_Bug1_WhileInPartition.png : the bug of while nested in a partition
 
@startuml test_Bug1_WhileInPartition.png
start
partition "partition" {
  while (ForEach 1)
    -[#LightGreen]->
    :plop;
  endwhile
  -[#Blue]->
  while (ForEach 2)
    -[#LightGreen]->
    :plop;
  endwhile
  -[#Blue]->
  }
stop
@enduml
 
 
test_Bug2_WhileInIf.ong : the bug of while nested in a if
 
@startuml test_Bug2_WhileInIf.png
start
  if (test) then (yes)
    -[#LightGreen]->
    while (ForEach 2)
      -[#LightGreen]->
        :plop;
    endwhile
    -[#Blue]->
    while (ForEach 2)
      -[#LightGreen]->
        :plop;
    endwhile
    -[#Blue]->
        :plop;
  else (no)
    -[#Blue]->
    :plop;
  endif
stop
@enduml

 

If you have some questions or need more exemple, just mail me. (ask in french or english)

asked Aug 21, 2015 in bug by anonymous

1 Answer

0 votes
 
Best answer
Hi,

Thanks for the detail report, it really helps!

We fix several things in the last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

If you find other issues, you can post another message here.

Thanks again,
answered Aug 22, 2015 by plantuml (122,830 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...