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] Provide a way to display flow node information on mouse click #427

Closed NathalieC closed 3 years ago

NathalieC commented 4 years ago

Describe the solution you'd like On flow node, click, get a pop over widget that can display information made available externally. For example, be able to display the task journal: "pending on", "failed on", replayed on", "by", "assigned on", "by", "executed on", "by"...

tbouffard commented 3 years ago

First API available, see https://github.com/process-analytics/bpmn-visualization-js/issues/857#issuecomment-737992557 Examples showing the use case described in this issue will be created soon.

tbouffard commented 3 years ago

1st example showing how to implement this use case is available with https://github.com/process-analytics/bpmn-visualization-examples/pull/105 We won't provide any direct support for this but we will provide API like #927 and #929 to achieve it.

tbouffard commented 3 years ago

https://github.com/process-analytics/bpmn-visualization-examples/pull/117 provides an example that show how to get bpmn information from the API and display them in a tooltip or popover. The BPMN info can be used to retrieved extra data from any sources, for instance runtime or execution data.