Giter Club home page Giter Club logo

Comments (6)

nikku avatar nikku commented on July 20, 2024 2

Please link to the resources you're quoting and add screenshots that make your case. It is otherwise hard to follow your line of thought.

Even better, create a small screencast that records a broken interaction.

from camunda-modeler-plugins.

nikku avatar nikku commented on July 20, 2024 1

Thanks for providing additional details.

From what I can see this is an issue with the fact that the Camunda Modeler drops the textFormat attribute, while it

a) Should ignore the documentation, unknown to her entirely or
b) keep the textFormat attribute

I've opened camunda/camunda-modeler#1682 to track this as a bug. Please cross read it to see if it captures your issue.

Closing this issue, as it is really a modeler bug that needs to be fixed.

from camunda-modeler-plugins.

FO-e-X avatar FO-e-X commented on July 20, 2024

Sorry, I missed, that the issue isn't placed at the folder I opened it, but it placed at the project root...
I named the plugin already, here is the link
https://github.com/camunda/camunda-modeler-plugins/tree/master/bpmn-js-plugin-embedded-comments

I add some screenshots, because a screencast is a bit difficult here. Also I builded a little dummy process. The scenarios I will divide...

from camunda-modeler-plugins.

FO-e-X avatar FO-e-X commented on July 20, 2024

scenario 1, first comments
adding some comments...
enter_comments_first

element documentation
enter_comments_first_documentation

XML (btw: modeler 3.6.0 and plugin embedded comments master from last week -> saving comments is only possilbe when modifying the model... ah, sorry, I forgot: no btw ;) )
<bpmn:serviceTask id="Task_1laa02j" name="überprüfe Daten"> <bpmn:documentation textFormat="text/x-comments">:Dies ist ein Kommentar; ;:Es gehen auch mehrere Kommentare...; ;:noch eine Zeile; ;:noch eine Zeile mehr</bpmn:documentation> <bpmn:incoming>SequenceFlow_0av8imw</bpmn:incoming> <bpmn:outgoing>SequenceFlow_0p2xcqe</bpmn:outgoing> </bpmn:serviceTask>

OK.
Now adding some description (where to add else?)
enter_comments_first_documentation_add

XML (now the comments are destroyed and used as description):
<bpmn:serviceTask id="Task_1laa02j" name="überprüfe Daten"> <bpmn:documentation>:Dies ist ein Kommentar; ;:Es gehen auch mehrere Kommentare...; ;:noch eine Zeile; ;:noch eine Zeile mehr Meine eigene Dokumentation</bpmn:documentation>

The comments are still cached and shown as comments, until the next reload. Then they are gone...

from camunda-modeler-plugins.

FO-e-X avatar FO-e-X commented on July 20, 2024

scenario 2, first documentation
adding some documentation
enter_documentation_first
enter_documentation_first_no_comment

Now adding some comments
enter_documentation_first_add_comment
enter_documentation_first_add_comment_descr

XML (again, comment changes are only saved after editing something others in the bpmn)
<bpmn:serviceTask id="Task_1laa02j" name="überprüfe Daten"> <bpmn:documentation>Meine eigene Dokumentation</bpmn:documentation> <bpmn:documentation textFormat="text/x-comments">:Ein Kommentar; ;:gern auch mehrzeilig</bpmn:documentation> <bpmn:incoming>SequenceFlow_0av8imw</bpmn:incoming> <bpmn:outgoing>SequenceFlow_0p2xcqe</bpmn:outgoing> </bpmn:serviceTask>

Looks great, comments and documentation properly separated 👍

But now I delete the documentation!
enter_documentation_first_clear_docu

XML
<bpmn:serviceTask id="Task_1laa02j" name="überprüfe Daten"> <bpmn:incoming>SequenceFlow_0av8imw</bpmn:incoming> <bpmn:outgoing>SequenceFlow_0p2xcqe</bpmn:outgoing> </bpmn:serviceTask>

Where are the comments gone? Why are all documentation elements removed from the task?

from camunda-modeler-plugins.

FO-e-X avatar FO-e-X commented on July 20, 2024

I hope it's now more clear what the strange behaviors are.
Both ways run in into other mistakes, both are a combination of unwanted cross-editing from Camunda Modeler an embedded-comments-plugin. I think, the plugin itself can't fix this problem without some changes in the Modeler. The Modeler should respect special documentation elements. Maybe a fix in the Modeler only will fix all these problems. Only show simple documentation entries and ignore special documentation elements as well as leaving them untouched. It's a bit like scenario 2, but without deleting all documentation elements when removing the simple documentation :)

Regards,
Frank

from camunda-modeler-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.