<!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>GenCPN: Automatic CPN Model Generation of Processes (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Mahsa Pouarbafrani</institution>
          ,
          <addr-line>Shubham Balyan</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <abstract>
        <p>-To model business processes, a variety of modeling tools and techniques are used. Colored Petri Nets (CPN) are one of the modeling notations capable of presenting different patterns in activity flows, e.g., concurrency of activities in the process. CPN Tools enables the creation and execution of business process simulation models based on CPN notation and Standard Machine Language (SML) w.r.t. different aspects of processes. For instance, assigning different resources to different tasks, generating attributes for cases, and modeling stochastic Petri nets for choices are possible. We can replay and capture process behavior in the form of event logs for what-if analyses using simulation models of business processes. However, modeling the processes and implementing SML functions for generating event logs are complicated. We designed and implemented a tool that extracts process parameters directly from an event log and converts the event log using process mining techniques to CPN models along with generated SML functions. The tool allows for the straightforward modeling of business processes without user interaction, as well as the ability to change via a user interface.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>
        Other techniques propose the generation of process simulation
models without the use of CPN Tools and in the form of
independent platforms, such as [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. However, they miss the
flexibility of the CPN Tools for considering different aspects of
a process. Our goal is to design a tool that addresses two main
purposes: (1) generating CPN models from event logs based
on real-world parameters for what-if analysis, and (2) more
importantly, capturing execution results in the form of event
logs for various purposes, e.g., research or process mining,
without designing and programming efforts.
      </p>
      <p>In this paper, we introduce a new tool that is able to
generate a ready to simulate CPN models directly from an
event log. Our tool (GenCPN) is a web application based
on Python, which reduces all the user interaction and efforts
for designing the models from scratch. Moreover, the process
mining insights are put into action to extract all the required
process simulation parameters. The strong contribution of this
tool is providing the implemented SML functions that directly
include all the interactions of the simulation engine (daemon)
for the CPN models. It also provides the ready-to-run CPN
models in CPN Tools.
with the extracted arrival rate from the event log. For logging
generated events in the form of an event log, the function
create log file in the Openfile transition is designed (Figure 3
(a)). Figure 3 (b) represents the generated function for
executing each activity based on their extracted duration from the
event log, as well as a sample scenario of sharing resources
(resource pool) between two activities.</p>
    </sec>
    <sec id="sec-2">
      <title>III. TOOL MATURITY</title>
      <p>
        CPN Tools is being used for both academic and industrial
purposes. GenCPN which generates CPN models
automatically based on the event logs of processes is used for
generating event logs of different projects such as IOP project1
to regenerate event logs of production lines in a different
setting. Moreover, different simulation models are designed
in the previous and current researches, e.g., [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>GenCPN is publicly available in the form of web
application2 along with all the codes and the screencast as open
source3 for further uses. Figure 4 is part of the tool’s user
interface, where the enriched discovered CPN model from
the event log is shown (left). The discovered parameters are
also shown (right) and possible to be changed by the user
if required, e.g., arrival rate or an activity service time. The
output of the tool is a zip file including the CPN file and the
corresponding SML file, which is ready to be stimulated via
the graphical interface of the CPN Tools.</p>
    </sec>
    <sec id="sec-3">
      <title>IV. CONCLUSION</title>
      <p>Designing executable and close-to-reality prescription
models is a challenging task. Process mining is used to generate
and design these prescribing models as close to reality as
possible. We presented a tool in this paper that automatically
converts event logs into executable simulation models. The
simulation model parameters are filled in with real values
from previous process executions. The model is created as an
enriched CPN model, which can be run using CPN Tools, a
sophisticated tool for simulating Petri nets. The required SML
functions are also generated together with the model in order
to capture simulation results in the form of event logs and to
allow the user to make additional changes while running the
simulation, e.g., adjusting the working hours or the density of
arrival rate for different months.</p>
    </sec>
    <sec id="sec-4">
      <title>ACKNOWLEDGMENT</title>
      <p>Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research
Foundation) under Germany’s Excellence Strategy – EXC 2023 Internet of
ProductionProject ID: 390621612. We also thank the Alexander von Humboldt (AvH) Stiftung
for supporting our research.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Rozinat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Mans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Song</surname>
          </string-name>
          , and
          <string-name>
            <surname>W. M. P. van der Aalst</surname>
          </string-name>
          , “
          <article-title>Discovering colored Petri nets from event logs,”</article-title>
          <string-name>
            <given-names>Int. J. Softw. Tools</given-names>
            <surname>Technol</surname>
          </string-name>
          . Transf., vol.
          <volume>10</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>57</fpage>
          -
          <lpage>74</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M.</given-names>
            <surname>Pourbafrani</surname>
          </string-name>
          and
          <string-name>
            <surname>W. M. P. van der Aalst</surname>
          </string-name>
          , “
          <article-title>Extracting process features from event logs to learn coarse-grained simulation models,” in CAiSE 2021</article-title>
          , Proceedings, vol.
          <volume>12751</volume>
          . Springer,
          <year>2021</year>
          , pp.
          <fpage>125</fpage>
          -
          <lpage>140</lpage>
          . [Online]. Available: https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -79382-1 8
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Pourbafrani</surname>
          </string-name>
          and
          <string-name>
            <surname>W. M. P. van der Aalst</surname>
          </string-name>
          , “
          <article-title>PMSD: data-driven simulation using system dynamics and process mining</article-title>
          ,”
          <source>in Proceedings of the Demonstration(BPM)</source>
          , vol.
          <volume>2673</volume>
          ,
          <year>2020</year>
          , pp.
          <fpage>77</fpage>
          -
          <lpage>81</lpage>
          . [Online]. Available: http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2673</volume>
          /paperDR03.pdf
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Ratzer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wells</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. M.</given-names>
            <surname>Lassen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Laursen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Qvortrup</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Stissing</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Westergaard</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Christensen</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Jensen</surname>
          </string-name>
          , “
          <article-title>CPN Tools for editing, simulating, and analysing coloured Petri nets</article-title>
          ,” in 24th International Conference,
          <string-name>
            <surname>ICATPN</surname>
          </string-name>
          <year>2003</year>
          ,
          <year>2003</year>
          , pp.
          <fpage>450</fpage>
          -
          <lpage>462</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Jansen-Vullers</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Netjes</surname>
          </string-name>
          , “
          <article-title>Business process simulation-a tool survey</article-title>
          ,
          <source>” in Workshop and Tutorial on Practical Use of Coloured Petri Nets and the CPN Tools</source>
          , vol.
          <volume>38</volume>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Westergaard</surname>
          </string-name>
          and
          <string-name>
            <given-names>L. M.</given-names>
            <surname>Kristensen</surname>
          </string-name>
          , “
          <article-title>The Access/CPN framework: a tool for interacting with the CPN Tools simulator,” in Applications</article-title>
          and Theory of Petri Nets,
          <year>2009</year>
          , pp.
          <fpage>313</fpage>
          -
          <lpage>322</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Pourbafrani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jiao</surname>
          </string-name>
          , and
          <string-name>
            <surname>W. M. P. van der Aalst</surname>
          </string-name>
          , “
          <article-title>SIMPT: process improvement using interactive simulation of time-aware process trees</article-title>
          ,
          <source>” in , RCIS</source>
          <year>2021</year>
          ,
          <article-title>Proceedings</article-title>
          , vol.
          <volume>415</volume>
          ,
          <year>2021</year>
          , pp.
          <fpage>588</fpage>
          -
          <lpage>594</lpage>
          . [Online]. Available: https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -75018-3 40
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Pourbafrani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Vasudevan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Zafar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Xingran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <surname>and W. M. P. van der Aalst</surname>
          </string-name>
          , “
          <article-title>A python extension to simulate Petri nets in process mining,” CoRR</article-title>
          , vol.
          <source>abs/2102.08774</source>
          ,
          <year>2021</year>
          . [Online]. Available: https://arxiv.org/abs/2102.08774
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>A.</given-names>
            <surname>Berti</surname>
          </string-name>
          ,
          <string-name>
            <surname>S. J. van Zelst</surname>
          </string-name>
          , and
          <string-name>
            <surname>W. M. P. van der Aalst</surname>
          </string-name>
          , “
          <article-title>Process mining for python (pm4py): bridging the gap between process- and data science</article-title>
          ,
          <source>” CoRR</source>
          , vol. abs/
          <year>1905</year>
          .06169,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>