Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Style] Allow multiple style stereotypes for backward element on Activity diagram #1538

Closed
The-Lum opened this issue Sep 13, 2023 · 5 comments
Labels

Comments

@The-Lum
Copy link
Collaborator

The-Lum commented Sep 13, 2023

Hi PlantUML team,

Context

To continue (style on (beta-)Activity diagram):

Ref. or other similar issue:

Related issue/wanted feature:

Wanted feature

  • Could you also allow multiple style stereotypes for backward element on Activity diagram?

Source

@startuml
<style>
.color {
  LineColor blue
  BackgroundColor lightCyan
  LineThickness 2
  ArrowThickness 0.5
  FontName Arial Narrow
  FontColor red
  FontSize 11
  FontStyle regular
}
</style>

split
:Only <<save>>;
repeat
  :Generate diagrams; <<save>>
backward:Log context; <<save>>
repeat while (more data?) is (yes)

repeat
  :Generate diagrams; <<save>>
backward:Log
context; <<save>>
repeat while (more data?) is (yes)

split again
:<<save>> + <<color>>; <<color>>
repeat
  :Generate diagrams; <<save>> <<color>>
backward:Log context; <<save>> <<color>>
repeat while (more data?) is (yes)

repeat
  :Generate diagrams; <<save>> <<color>>
backward:Log
context; <<save>> <<color>>
repeat while (more data?) is (yes)

end split
@enduml

Output (tested on 1.2023.11beta3)

Thanks for your works
Regards,
Th.

@The-Lum
Copy link
Collaborator Author

The-Lum commented Dec 20, 2023

Hello @arnaudroques, and all,

As declared corrected on V1.2023.13 on the Change Log;
It seems that SDL stereotype (<<save>>) is not taken in account?

  • Could you have a look?
  • Is it necessary to open a new issue?

Regards,
Th.

@arnaudroques
Copy link
Contributor

It seems that SDL stereotype (<<save>>) is not taken in account?

Sorry about that!
We can still use this open ticket/issue. Could you post a short example that shows only this bug?
Thanks!

@The-Lum
Copy link
Collaborator Author

The-Lum commented Dec 20, 2023

Could you post a short example that shows only this bug?

Here are minimal examples:

Repeat Loop

@startuml
<style>
.color {
  LineColor blue
  BackgroundColor lightCyan
  LineThickness 2
  ArrowThickness 0.5
  FontName Arial Narrow
  FontColor red
  FontSize 11
  FontStyle regular
}
</style>


title <<save>> SDL + <<color>>
repeat
  :Generate diagrams; <<save>> <<color>>
backward:Log context; <<save>> <<color>>
repeat while (more data?) is (yes)

repeat
  :Generate diagrams; <<save>> <<color>>
backward:Log
context; <<save>> <<color>>
repeat while (more data?) is (yes)

@enduml

While Loop

@startuml
<style>
.color {
  LineColor blue
  BackgroundColor lightCyan
  LineThickness 2
  ArrowThickness 0.5
  FontName Arial Narrow
  FontColor red
  FontSize 11
  FontStyle regular
}
</style>


title <<save>> SDL + <<color>>
while (check filesize ?) is (not empty)
  :read file; <<save>> <<color>>
  backward:log context; <<save>> <<color>>
endwhile (empty)
:close file;


while (check filesize ?) is (not empty)
  :read file; <<save>> <<color>>
  backward:log
context; <<save>> <<color>>
endwhile (empty)
:close file;
@enduml

Related issue:

And mixed with a part (Activity Diag.) of:

Regards,
Th.

@arnaudroques
Copy link
Contributor

Thanks for the examples!
Last snapshot should fix the backward issue about stereotype.
Tell us if you find others! :-)

@arnaudroques
Copy link
Contributor

This should be fixed now. Please reopen the issue if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants