-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Workflow: Allow shapes to be set for places and transitions in dumpers #42620
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
Comments
Hello, I totally missed you comment :/ I'm sorry for the delay! We already use some metadata information for the rendering: https://github.com/symfony/symfony/blob/6.1/src/Symfony/Component/Workflow/Dumper/GraphvizDumper.php#L80 So I guess it's fine to continue this way. So you can open a new PR for this new feature :) Thanks |
Hi @lyrixx, Thanks for your response (better a bit later than never π ). |
It's up to you. This is not an issue to support feature on one dumper only.
I don't really know. What would be the best for you as a user? Note: IIRC, this has already been discussed in a previous PR. I let you search for it :) |
@lyrixx I think I found the specific comment (did not take me 3 days π): #29538 (comment) |
Hello. The feature freeze is coming. Do you still want to contribute to Symfony to add this? If you don't want anymore, or if you don't have time, this is not a problem. You can close this issue :) |
@lyrixx Currently the focus in a project I want to add this for is not on the workflow implementation. |
OK, I'm closing this issue because I don't think it useful to keep it open. But if you have time, don't hesitate to open a new PR. Thanks for the discussion |
Description
I would like to be able to set the shape of a place or transition. In Graphviz this could be done by changing 'shape' in the dumper based on the metadata attributes (e.g. to 'diamond'). I'm not sure about the mermaid and plant uml implementation possibilities, but if possible I'm willing to provide a PR. First I wanted to check if you are interested in such a feature and what sollution path to take. One way to address this issue is to introduce a set of style classes:
(Graphviz|Mermaid|PlantUml|)(Transition|Place)DumperStyle(|Interface)
, which can handle the metadata and transform it into the proper style. Another way is to just add more of the parsing of the attributes in the various dumpers, which could get cluttered.The text was updated successfully, but these errors were encountered: