<!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>Event-based Process Simulation of Operating Resources in Assembly Work ows</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Philipp Staudt</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sonke Knoch</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Daniel Porta</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>German Research Center for Arti cial Intelligence (DFKI) Stuhlsatzenhausweg 3</institution>
          ,
          <addr-line>66123 Saarbrucken</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Business Process Simulation is a useful and widely adopted technique that provides process designers and data analysts with the necessary information to estimate the performance impact of business decisions before they are actually deployed. Manufacturers can bene t from such simulations especially when a strong changeability of the assembly work ows and systems is required. In order to integrate the simulation into existing manufacturing plants, simulations need to consider not only full simulations but also mixed simulations which include virtual and real operating resources. In this work, we present a new simulation framework which allows the process designer to model mixed simulations by de ning virtual operating resources. These can be coupled with real hardware allowing the simulation to interact with manufacturing components to test the integrated system for robustness at runtime.</p>
      </abstract>
      <kwd-group>
        <kwd>BPMN</kwd>
        <kwd>event-driven simulation</kwd>
        <kwd>mixed simulation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Business process simulation (BPS) is a technique to quantitatively analyze the
process in terms of performance measures, such as time, cost, quality and
exibility [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. BPS generates a large number of process instances executed based on
stochastic information about task durations and resource information. Instead of
creating the simulation model manually, logs from real process executions may
be used to discover those models from historic data using existing process mining
techniques [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Di erent simulators exist integrated with the Business Process
Model and Notation (BPMN) di ering regarding their simulation capabilities
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Since the extensibility of such tools is often di cult, [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] suggest an open and
extensible process simulator based on a plug-in structure.
      </p>
      <p>Developments aiming at smarter factories require solutions for the concept of
changeability. Changing the manufacturing system, e.g. by adding new devices
or exchanging existing ones, cost time if the device start-up fails leading to
downtimes and further debugging. Thus, a exible and extensible simulation
framework is necessary to allow a virtual start-up in the existing manufacturing
system and to test its compatibility with the running system ex-ante.</p>
      <p>We propose a framework allowing mixed simulations running virtual and real
resources together. The framework consists of a Web-based dashboard and the
Basis Simulation System (BaSS) which mediates between the BPM engine and
the virtual as well as the real resources. The framework allows an easy integration
of new resources and the adding and exchange of resources at runtime. Di
erent states of resources are coupled through event-based communication with a
BPMN process which can be adapted easily by process designers to control the
assembly ow simulated entirely or partly.</p>
      <p>In the following, we present the framework's architecture and the simulation
interface in Section 2. The usage of the system, its graphical user interface and
an exemplary assembly process which are part of this demo, are illustrated in
Section 3. In Section 4, we draw a brief conclusion.
2</p>
      <p>The Framework and the Basis Simulation System
The framework's architecture can be seen in Figure 1. The core of the
framework is the BaSS. It contains the BPM Engine Handler, a distributed Data Store
and an unde ned number of virtual operating resources. Simple events emitted
by the BPM engine are processed by the BPM Engine Handler and enriched
with assembly-speci c data from the data store to form complex events. These
complex events are propagated to the respective virtual resources via a common
communication interface. The receiving virtual resources can be coupled with
real resources. In this case, they act as adapters which transmit the events to
the real resources. If there is no real resource, the virtual resource simulates the
real one based on the implemented simulation for this resource. This mechanism
allows mixed simulations of factory resources. In addition, the Data Store o ers a
REST-Application Programming Interface (API) for monitoring and con
guration purposes and thus, provides valuable data input for visualizing and logging
simulated processes aiming at evaluating simulations. A Web-based Dashboard
has been implemented to visualize live and historic process data.</p>
      <p>All components within the BaSS are implemented as OSGi services in Java.
OSGi is a modular system and a service platform allowing the modular
design of the framework in so-called bundles. It enables an easy exchange of
bundles, among others representing resources, during runtime which avoids a
redeployment of the framework and thus interruptions of the assembly process.</p>
      <p>Communication between the individual components is realized by using the
Message Queue Telemetry Transport Protocol (MQTT) protocol. It is a
lightweight and well adopted communication protocol in the Internet of Things. As
such, it provides an e ective way of communicating thanks to the broker-based
publish / subscribe architecture and the Quality of Service (QoS) levels o ered.
The loose coupling of the event-based architecture supports the modular
architecture of our framework. High scalability is provided by using MQTT clustering.</p>
      <p>
        A virtual resource is an abstraction of a real operating resource whose API
it implements. In addition, each real as well as virtual resource has a uniform
life-cycle based on Packaging Machine Language (PackML), cf. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], which is an
industry technical standard developed for the control of packaging machines
providing a generic state model also applicable to other resources. If a resource
is simulated, it must mimic the behavior of the real one. This is realized by the
implementation of the nite state automaton using an OSGi bundle which is
identical to the behavior of the real resource. The implementation is the entry
point for simulation input in form of stochastic data in uencing the simulated
behavior of a resource in terms of duration and error-proneness. If not considered
for simulation, the virtual resource acts as an adapter and forwards events from
the BPM engine to the real hardware.
3
      </p>
    </sec>
    <sec id="sec-2">
      <title>User Interface and Assembly Process</title>
      <p>The BaSS and a BPM-Engine Handler, which is based on the Camunda BPM
Engine, together with the visualization dashboard shown in Figure 2 is available
from our cloud server 1. After starting the application, the following two Web
interfaces are available to the user:
Con guration Admin Apache Felix Console for OSGi bundle con guration.</p>
      <p>It is used to set-up the BaSS services. It comes with pre-con gured bundles
for the MQTT communication and the necessary operating resources.
Live Dashboard Used for process management and real time visualization of
the process ow. It is connected to the underlying BPM-Engine and can
initialize and destroy processes. Important information like the current process
execution or task execution times can be watched easily. In addition, audit
logs are available showing the process history of the selected process.</p>
      <p>For the demo to work, the pre-con gured operating resources and the
communication must be started. This is done in the con guration admin interface
which forms the control center for starting and stopping resources represented by
1 https://cloud.dfki.de/owncloud/index.php/s/sZpJZC9HKiqemBS
the respective bundle implementations. To enable publish / subscribe
communication, a suitable MQTT broker must be installed on the system, e.g. ActiveMQ.</p>
      <p>Afterwards, the implemented processes can be started. There are three
processes included in this demo (see Figure 3):
Initialization Initializes all operating resources according to their PackML
state. So, each resource must be reset and started for being able to
execute concrete commands.</p>
      <p>Main Assembly A press process is simulated in the demo. First, a button
needs to be pushed before the press is able to perform the press action.
Finalization After the main assembly process, the operating resources can be
completed and stopped according their PackML state model.
4</p>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>By providing an easy-to-use framework for the mixed simulation of operating
resources in factory plants, operating resources can be tested individually in a
real manufacturing context. This may be crucial to avoid wrong expectations on
the process which is only simulated entirely. Due to the PackML life-cycle, virtual
resources can easily be de ned and coupled with real resources. Manufacturers
may also provide virtual resources which act as simulated operating resources
implementing the state machine of the concrete operating resource. Thereby,
simulated and real components share the same API and can be easily integrated
in processes models.</p>
      <sec id="sec-3-1">
        <title>Initialization</title>
        <p>Starte Prozess
Activate press
with
push-button</p>
      </sec>
      <sec id="sec-3-2">
        <title>Main Assembly</title>
      </sec>
      <sec id="sec-3-3">
        <title>Finalization</title>
        <p>Do press</p>
        <p>Raise press
pressed
Press Error</p>
        <p>press raised
Acknowledgments. This research was funded in part by the German Federal
Ministry of Education and Research (BMBF) under grant number 01IS16022E
(project BaSys4.0). The responsibility for this publication lies with the authors.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>[1] ANSI/ISA-TR88.00.02-2015. Machine and Unit States: An Implementation Example of ANSI/ISA-88.00.01</source>
          .
          <year>2015</year>
          . url: https : / / www . isa . org / store / ansi / isa - tr880002
          <source>- 2015</source>
          , - machine - and
          <string-name>
            <surname>-</surname>
          </string-name>
          unit
          <string-name>
            <surname>-</surname>
          </string-name>
          states
          <string-name>
            <surname>-</surname>
          </string-name>
          an
          <string-name>
            <surname>-</surname>
          </string-name>
          implementation
          <string-name>
            <surname>-</surname>
          </string-name>
          example
          <string-name>
            <surname>-</surname>
          </string-name>
          of- ansi/isa- 880001- /43761047 (visited on 06/25/
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Marlon</given-names>
            <surname>Dumas</surname>
          </string-name>
          et al.
          <source>Fundamentals of Business Process Management, Second Edition</source>
          . Springer,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3] Jose Lu s Pereira and Antonio Paulo Freitas. \
          <article-title>Simulation of BPMN Process Models: Current BPM Tools Capabilities"</article-title>
          .
          <source>In: New Advances in Information Systems and Technologies. Ed. by Alvaro</source>
          Rocha et al. Cham: Springer International Publishing,
          <year>2016</year>
          , pp.
          <volume>557</volume>
          {
          <fpage>566</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Luise</given-names>
            <surname>Pufahl</surname>
          </string-name>
          , Tsun Yin Wong, and Mathias Weske. \
          <article-title>Design of an Extensible BPMN Process Simulator"</article-title>
          . In: Business Process Management Workshops. Ed. by Ernest Teniente and
          <string-name>
            <given-names>Matthias</given-names>
            <surname>Weidlich</surname>
          </string-name>
          . Cham: Springer International Publishing,
          <year>2018</year>
          , pp.
          <volume>782</volume>
          {
          <fpage>795</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Rozinat</surname>
          </string-name>
          et al. \
          <article-title>Discovering Simulation Models"</article-title>
          .
          <source>In: Inf. Syst. 34.3 (May</source>
          <year>2009</year>
          ), pp.
          <volume>305</volume>
          {
          <fpage>327</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>