teoz and & within groups is not working

0 votes
asked May 28 in Bug by anonymous

Hi,

Sorry for repeating the same topic but it seems those questions are not answered.

http://forum.plantuml.net/6438/teoz-doesnt-work-in-a-group-or-alt?show=6438

http://forum.plantuml.net/6316/using-parallel-messages-with-teoz-engine-doesnt-inside-group?show=6316

@startuml
!pragma teoz true
Bob -> Alice : Secret
& Alice -> Stacy : Rumors
@enduml

PlantUML diagram

@startuml
!pragma teoz true
group friends
Bob -> Alice : Secret
& Alice -> Stacy : Rumors
end
@enduml

PlantUML diagram

This would be very useful in large diagrams.

-Hannu

1 Answer

0 votes
answered May 28 by plantuml (183,480 points)
Thanks for the feedback... We are very late on this subject.

The implementation is still not finished, but at least your example is now working with last beta

http://beta.plantuml.net/plantuml.jar

We are interested if you find other issues! Thanks
commented May 29 by Martin
I tried this Beta on the following uml, but the second (return) row of arrows didn't fit inside the group box:
@startuml
!pragma teoz true
group groupname
    A -> B : label1
    & B -> C : label2
    C -> B : label3
    & B -> A : label4
end
@enduml
commented May 29 by anonymous
Hi,
Latest beta corrects problem with arrows, but there are still some issues with groups and teoz.

Delay (...) is one issue.

@startuml
!pragma teoz true
a -> b: 1
& b -> c: 2
group test
... above ...
a -> b: 3
& b -> c: 4
... below ...
end
a -> b
& b -> c
a -> b
& b -> c
@enduml

Another issue seems to be generated by different arrow styles (o->)

@startuml
!pragma teoz true

a -> b: 1
& b -> c: 2
group test
note over a: a
/ note over b: b
a o-> b: 3
& b o-> c: 4
end
a -> b
& b -> c

a -> b
& b -> c: last
@enduml

Seems that I cannot add pictures to comments.

br
-Hannu
commented May 30 by plantuml (183,480 points)
Thanks for the feedback
Should be fixed in last beta http://beta.plantuml.net/plantuml.jar

The "o->" issue arrow is more difficult to solve, so we keep it for latter.

Tell us if you find other issues!

Regards,
commented May 31 by anonymous
Hi,
Thanks. To me it seems that also o-> is working.

One new issue. Group is extended over participant which should not be within group.
@startuml
!pragma teoz true

x -> x: start
group test
a o-> b: 1
& b o-> c: 2
c -> c: self
end
d -> d: next

@enduml

Group is extended over participant d. Compared to first (x) which is left outside.
By adding:
skinparam ParticipantPadding 20
Solves that issue, but will make picture wider.

-Hannu
commented May 31 by Martin
the group box is now properly sized (thank you), but I'm having trouble finding acceptable syntax to get label4 on the same line as label3 in the following:
@startuml
!pragma teoz true
group groupname
    [-> B : label1
    & B -> C : label2
    C -> B : label3
    B ->[ : label4
end
@enduml

if I write "& B ->[ : label4" I get a syntax error.
(I also get a syntax error for "& [<- B : label4" which should be an alternative.)

-Martin
commented May 31 by plantuml (183,480 points)
Thanks for your tests! It really help us.
This should be fixed in last beta http://beta.plantuml.net/plantuml.jar
Regards,
commented Jun 4 by Martin
Thank you for your quick response; my scripts now work fine with that Beta.  (But I'm not the original requester for this thread.)
- Martin.
commented Jun 5 by anonymous
Hi,
In latest beta there is still issue with group extending over participant in right side.

@startuml
!pragma teoz true

x -> x: start
group test
a o-> b: 1
& b o-> c: 2
c -> c: self
end
d -> d: next
@enduml

-Hannu
...