process-analytics / bpmn-visualization-js

A TypeScript library for visualizing process execution data on BPMN diagrams
https://process-analytics.github.io/bpmn-visualization-js/
Apache License 2.0
216 stars 29 forks source link

[FEAT] Display the file name above the viewport #609

Closed NathalieC closed 3 years ago

NathalieC commented 4 years ago

Above the top left hand corner of the viewport, add the name of the file displayed. I did not see the name of the diagram in the bpmn file, nor the version; only the names of the pools within, so I guess displaying the name/version of the diagram is not an option. By configuration, make this display possibly hidden to let the page where the lib is used manage the file name, probably with a drop down list.

tbouffard commented 4 years ago

@NathalieC we could do that only when a file is loaded: from the lib point of view, it only occurs in the demo page which is not part of the lib itself. This is up to the application integrating bpmn-visualization to manage this as the lib only knows the BPMN input source (for now, the xml string related to the BPMN diagram) and this source has no file name.

For the second element described in this issue, when you refer to name of the diagram in the bpmn file, nor the version;, you refer to Bonita specific information/features which are not stored in the BPMN Diagram generated by Bonita. So there is nothing we can do on that area too.

NathalieC commented 3 years ago

Displaying the file name, process name or diagram name will be a feature of the code that will embed the library, not the library itself. Closing this issue

tbouffard commented 3 years ago

We are currently adding an example that shows how to display the name of the loaded BPMN file. See https://github.com/process-analytics/bpmn-visualization-examples/pull/69