<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Visualization Libraries for Process Analytics (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nour Assy</string-name>
          <email>nour.assy@bonitasoft.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Céline Souchet</string-name>
          <email>celine.souchet@bonitasoft.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thomas Boufard</string-name>
          <email>thomas.bouffard@bonitasoft.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Olan Anesini</string-name>
          <email>olan.anesini@bonitasoft.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Bonitasoft</institution>
          ,
          <addr-line>32, rue Gustave Eifel 38000 Grenoble</addr-line>
          <country country="FR">France</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Process Analytics</institution>
          ,
          <addr-line>Visualization, BPMN, TypeScript, R</addr-line>
        </aff>
      </contrib-group>
      <fpage>80</fpage>
      <lpage>84</lpage>
      <abstract>
        <p>Visualization plays a crucial role in communicating process analytics results. However, the visualization component is often coupled with the analysis technique and thus is treated as a second class-citizen. Therefore, without dedicated and well-defined visualization APIs, customizing the visualization to meet specific needs often requires ad-hoc changes to the source code, which is a time-consuming and cumbersome task. In this paper, we introduce bpmn-visualization, a library for visualizing modelbased process analytics results using BPMN. The library is being developed as part of the open source (Apache v2) project Process Analytics, initiated by Bonitasoft and aiming at developing an ecosystem of visualization libraries for process analytics. These libraries ofer significant value to those who are involved in process mining, BPM and RPA development projects. By supporting better visualization control and customization flexibility, these visualization libraries can greatly benefit the community working on combining process and visual analytics.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The development of process mining techniques [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] has experienced tremendous growth leading
to increasing adoption by organizations [2]. The majority of current implementations couple
the visualization with the mining technique resulting in ad-hoc, technique-or-tool specific
visualization components. On the other hand, there is a growing interest to combine process
and visual analytics [3, 4, 5]. This requires developing visualization artifacts for process analytics.
However, with the absence of appropriate visualization libraries and tools, creating synergy
between visualization and process analytics requires additional development eforts that might
otherwise be dedicated to the visualization components.
      </p>
      <p>To fill this gap, the open source</p>
      <p>Process Analytics project 1 initiated by Bonitasoft aims
to develop an ecosystem of visualization techniques that can be used in end-to-end process
analytics projects. Two main libraries are currently being developed: i) bpmn-visualization
for visualizing model-based process analytics results using the BPMN standard (developed in
Typescript and R) and ii) bpmn-layout-generators for generating the graphical layout of BPMN
CEUR
Workshop
Proceedings
diagrams (developed in Java). The project repository on GitHub 2 is developed in a collaborative
environment where the community can contribute by testing, giving feedback, reporting bugs,
adding or requesting desired features and enhancing the documentation.</p>
      <p>In this extended abstract, we present the overall project scope. Then, we focus on the
bpmnvisualization library and show examples of the TypeScript implementation. A video presenting
the library has also been made available. 3</p>
      <p>Control flow</p>
      <p>Summarization</p>
      <p>Enhancement
(run-time/execution data,
prediction/recommendation data)</p>
      <sec id="sec-1-1">
        <title>Process Model</title>
      </sec>
      <sec id="sec-1-2">
        <title>Visualization</title>
        <p>Model comparison
Data flow
Social networks
Conformance/</p>
        <p>Violations</p>
      </sec>
      <sec id="sec-1-3">
        <title>Linked</title>
      </sec>
      <sec id="sec-1-4">
        <title>Visualization</title>
        <p>Process-log
animation
Prediction
Anomaly detection
Concept drift</p>
      </sec>
      <sec id="sec-1-5">
        <title>Event Data</title>
      </sec>
      <sec id="sec-1-6">
        <title>Visualization</title>
        <p>Trace comparison
Root cause analysis
2. Project Overview and Current Scope
To clearly define the project scope, we identified three main categories of visualization libraries
that need to be developed according to the input data and the information to be visualized 4.
The input data can be process models and/or event data. The information to be visualized
can be determined based on the analysis technique. Fig. 1 shows a Venn diagram of the three
categories: i) process model visualization, ii) event data visualization and iii) linked visualization
between process models and event data. For each category, the information to be visualized is
defined in terms of the process analysis task. For instance, for process models, we need to be
able to visualize the model and to enrich it with additional data derived from event data. For
event data, visualization artifacts that allow summarizing data, detecting anomalies, concept
drifts, and the like, need to be developed. Finally, linked visualization artifacts are required for
process analytics tasks (e.g. process-log animation) that require a linked visualization between
process models and event data.</p>
        <p>The current scope of the project is focused on developing the bpmn-visualization library that
covers use cases of the process model visualization category.</p>
        <sec id="sec-1-6-1">
          <title>2https://github.com/process-analytics 3https://www.youtube.com/watch?v=9_vWeOwxsW0 4For a more fine grained classification of visualization techniques for event data, the reader is referred to [6]</title>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>3. Architecture and Features</title>
      <p>The general architecture of the bpmn-visualization library consists of three key components:
BPMN parser, BPMN renderer and interactions. The BPMN parser loads XML BPMN files, and
converts them into an internal model. The internal BPMN model is then passed to the BPMN
renderer component, which is in charge of rendering the BPMN elements. The API ofers the
following features: i) BPMN graph rendering and fitting (horizontal/vertical/center); ii) Styling
and customizing BPMN shapes including colors, sizes, fonts and icons; and iii) Enriching the
diagram with customized overlays. These features cover a wide range of model-based process
analytics results. For instance, overlays can be added to visualize process data statistics (e.g.
performance and frequency data); the colors and width of activities and edges can be customized
to visualize conformance checking data; and animations can be added to BPMN elements to
highlight specific paths (e.g. to show happy/exceptional flows).</p>
      <p>The interactions component empowers developers and end users with flexibility in interacting
with the BPMN elements. The following features are currently supported: i) Explore and
navigate through BPMN diagrams and subprocesses by zooming, fitting and panning; and ii)
Add custom listeners to dynamically enrich and/or modify the model style. For instance, tooltips
can be added on mouseover; BPMN element style can be modified at runtime allowing to mark
a task as in error or warn that an activity seems blocked.</p>
      <p>Figure 2 shows an example of a BPMN process enriched using overlays and customized edge
styles. More details can be found on the documentation page. 5</p>
      <sec id="sec-2-1">
        <title>5https://process-analytics.github.io/bpmn-visualization-js/</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4. Maturity and Usage</title>
      <p>The bpmn-visualization library has been recently integrated into the Bonita 2022.2 process
automation platform Enterprise edition. In addition, the library has been used in the development
of a BPMN-based process discovery tool. 6</p>
      <p>Listing 1 shows an example of using the library API. The user of bpmn-visualization is
responsible for retrieving the BPMN diagram (local file, fetch via an API, etc.). In the example,
we assume that the variable b p m n C o n t e n t contains the BPMN xml content. A new instance of the
B p m n V i s u a l i z a t i o n class is created and activates the support of the BPMN diagram navigation.
The diagram is loaded and centered in the viewport by calling the function l o a d . In this
example, we show how an overlay can be added to the start event of the process in Fig. 2. The
interaction with the diagram is achieved via b p m n E l e m e n t s R e g i s t r y which ofers, among others,
the a d d O v e r l a y s method. This method takes as input the id of a BPMN element and one or
several overlays to be added. An overlay is defined in terms of its position, label and the style.
import {BpmnVisualization} from ’bpmn-visualization’;
let bpmnContent; // your BPMN 2.0 XML content
const bpmnVisualization = new BpmnVisualization({
container: ”bpmn-container”,
navigation: { enabled: true }
});
bpmnVisualization.load(bpmnContent, fit: {type: ’center’});
bpmnVisualization.bpmnElementsRegistry.addOverlays(
’startEventId’, {
position: ’top-right’,
label: ’993’,
style: {
font: { color: ’white’, size: 8 },
fill: { color: ’cyan’, opacity: 50 },
stroke: { color: ’DarkSeaGreen’, width: 2 }} });</p>
      <p>Listing 1: A JavaScript example of the bpmn-visualization API usage</p>
    </sec>
    <sec id="sec-4">
      <title>5. Conclusion</title>
      <p>The Process Analytics project aims is to make visualization comes into reach of all organizations
involved in process analytics development projects with a minimal efort. This Apache v2
project allows developers to implement many use cases, such as projecting process execution
data on top of process models, highlighting predicted activities and paths at run-time and
enriching the process with recommendation data.</p>
      <sec id="sec-4-1">
        <title>6https://process-analytics.dev/model-generation-application/</title>
        <p>[2] M. Kerremans, T. Srivastava, F. Choudhary, 2021 Gartner Market Guide for Process Mining,</p>
        <p>Technical Report, Gartner, 2021.
[3] T. Gschwandtner, Visual analytics meets process mining: Challenges and opportunities,
in: SIMPDA (Revised Selected Papers), volume 244 of Lecture Notes in Business Information
Processing, Springer, 2015, pp. 142–154.
[4] J. Mendling, Past, present, and future of visual process analytics, in: FEMIB, SCITEPRESS,
2022, p. 5.
[5] S. Kriglstein, M. Pohl, S. Rinderle-Ma, M. Stallinger, Visual analytics in process mining:
Classification of process mining techniques, in: EuroVA@EuroVis, Eurographics Association,
2016, pp. 43–47.
[6] A. Yeshchenko, J. Mendling, A survey of approaches for event sequence analysis and
visualization using the esevis framework, CoRR abs/2202.07941 (2022).</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>W. M. P. van der Aalst</surname>
          </string-name>
          ,
          <source>Process Mining - Data Science in Action, Second Edition</source>
          , Springer,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>