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

[POC] Investigate how to let integration navigate to Call Activity #857

Closed tbouffard closed 3 years ago

tbouffard commented 3 years ago

Our first use case is described in #422: we should let integration have a way to retrieve information about a selected Call Activity (or on mouse hover). This will allow to navigate to the targeted Call Activity in a new browser tab, light box, on the same page (replace the existing diagram). Notice that the Call Activity can be defined in the current BPMN Diagram or elsewhere (need to load new BPMN diagram resource).

With the issue, we should investigate the extension point the lib has to provide to cover the described use case.

Implementation notes We already have a way to identify BPMN elements in the DOM: the svg elements hold the BPMN element id in a dedicated attribute.

tbouffard commented 3 years ago

We already introduce a way to add custom behaviour/interaction to a BPMN element whose we know the id with #908, so we can also do it for Call Activity. Some examples have been created to navigate from a process to a call activity and go back

927 will allow to select several elements by their BPMN Semantic type (Call Activity, User Task) whithout having to know ids: this will let apply the same behaviour to all types.

929 will provide additional BPMN Semantic information as the id of the process referenced by the call activity which could be used to find it in the diagram or elsewhere.

tbouffard commented 3 years ago

Examples and links to improvements have been provided in comments, so closing.