<!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>A Resource Oriented Modeling Approach for the Internet of Things: A Business Process Perspective</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Yongyang Cheng, Shuai Zhao, Bo Cheng, Junliang Chen State Key Laboratory of Networking and Switching Technology Beijing University of Posts and Telecommunications Beijing</institution>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>-Recently, the rapid development of Internet of Things (IoT) has attracted growing attention from both industry and academia. It means that innumerable IoT resources could actively participate in the future internet and be able to flexibly perform considerable parts of traditional business processes. However, most of the current work is in its infancy and focuses on technical implementation details, little attention is given to the mapping of business process resources from an IoT domain to a standard business process model. In this paper, we present a resource oriented modeling approach and integrate IoT paradigm on the business process layer to make it fit in the traditional business process environment. A running case of IoT-aware business process application in the smart house is given to validate our proposed approach. Index Terms-Internet of Things, resource oriented modeling, BPMN 2.0, IoT devices</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION AND MOTIVATION</title>
      <p>
        IoT brings together real-world devices which have never
been connected before. That means that further integration
of physical entities into internet applications will be a trend.
Business Process Management (BPM) systems will benefit
from the integration with IoT resources, if typical devices
such as RFID readers, sensors and actuators could directly take
over responsibility as business process resources for individual
business process tasks. As we know, the basis of the lifecycle
before any business process automation is the creation of a
business process model. Furthermore, a model is composed
of many business process tasks. A business process task
corresponds to a special unit implemented by a service [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
Therefore, from a business process perspective, this integration
requires a special task which has the ability to interact with
its physical environment through service interfaces. In order to
build our work on a scientific foundation, we have investigated
most of the existing Business Process Notation (BPMN, BPEL
and JPDL) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. BPMN 2.0 not only supports the creation of a
graphic model, but also supports the generation of a
machinereadable model. Thus, BPMN 2.0 was evaluated as the most
IoT-aware modeling standard [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and will serve as the basis
for the mapping work of business process resources from an
IoT domain to a standard business process model in this paper.
      </p>
      <p>Although BPMN 2.0 standard could provide theoretical
support for the modeling, challenges still remain to be solved.
First of all, the role of IoT devices as a resource type of a
business process could not be directly represented in BPMN
2.0 standard. It implies that without the proposed approach,
IoT devices could not be considered as potential executive
parties in the automatic resolution phase. Furthermore, most
of the existing approaches only focus on the phase of creating
business process models and lack of the corresponding logic
validation, which might cause serious logic problems during
the business process execution phase. Finally, the modeling
process is still a complicated and time-consuming issue for
developers. They need not only to focus on the mapping of
resources, but also to have an excellent programming skill
The main contributions of our work are as follows.</p>
    </sec>
    <sec id="sec-2">
      <title>We extend the graphic model and machine-readable</title>
      <p>model consisting of XML Schema Definition (XSD)
specification of the business process metamodel of the
notation BPMN 2.0, making it support the direct
modeling of IoT devices.</p>
      <p>We design a Validator to provide support for detecting
whether there are logic errors of the pre-defined business
process metamodel during the phase of modeling.
We develop a UI-friendly Eclipse-based editor for
developers to manage the full lifecycle of the business process,
including graphic creation of process model, dynamic
definition of interaction interface, logical validation and
execution.</p>
    </sec>
    <sec id="sec-3">
      <title>II. RELATED WORK</title>
      <p>
        In this section, we compare our proposed resource-oriented
modeling approach with other existing approaches. We will
clearly point out the similarities and differences with their
works. Yang Liu et.al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] propose a generic resource
management model, which is composed of users, devices and
resources. Two cases are given to describe how users can
obtain the logical information through this model. However,
this model is human-oriented and the modeling is complicated
due to the lack of theoretical support for mapping physical
entities to standard business process resources. Sonja Meyer
et.al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] present how the real-world services used for the
implementation of business processes differ from one another.
Although they extend BPMN 2.0 standard at the level of
graphical and machine-readable model, this extension is based
on the Lane. A Lane is a sub-partition within a process (often
within a pool) and is a coarse-grained process unit. Similar to
them, we also extend BPMN 2.0 standard at these two levels.
However, our extension is based on the Activity, which is a
fine-grained unit and could directly inherit the model
associations of ResourceRole. Furthermore, they assign the IoT
resources at the time of process modeling. But we decouple the
internal connection between IoT devices and services through
a special class Interface, which supports the assignment of
IoT resources throughout the lifecycle of business process.
Patrik Spiess et.al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] present an approach where BPEL
processes are automatically partitioned and executed within
the sensor network using lightweight node services among
different engines. However, there might be many logic errors
in the execution phase of the process, which should be checked
out during the design phase. Thus, we design a Validator to
detect logic errors of the pre-defined business process model.
      </p>
      <p>III. RESOURCE ORIENTED MODELING SPECIFICATION
In this section, we propose a resource oriented modeling
specification as an extension to BPMN 2.0 standard. When
integrating IoT paradigm on the business process layer, we
face two main challenges. First, the role of IoT device as a
process resource could not be directly represented in BPMN
2.0 standard. Second, we have to deal with the IoT device
and the service hosted on it at the same time. However,
BPMN 2.0 could not fully consider two types of resources on
different levels concurrently in the same process metamodel.
To address these issues, we will extend BPMN 2.0 standard
in both graphic model and machine-readable model.
A. Graphic Model</p>
      <p>An Activity is an unit that is performed within a business
process and could directly inherit the model associations of
ResourceRole. In order to explicitly distinguish IoT devices
from traditional business process performers and bind IoT
services to the graphic element through an interface
component, we design a characteristic icon at the level of Activity.
Fig. 1 (a) illustrates a business process pool called ”IoT
Business Process”, which contains a regular lane ”Lane” and
an IoT-aware lane ”IoT Device”. The task of ”IoT Device”
is a ”Sensing Task”, which could expose its sensing service
through the restful interface. However, the sensing service is
not directly visible as part of the graphic business process
model, but is included in the implementation and operation
of attributes, as shown in Fig.1 (b). In addition, the extended
version of the service handler is shown in Fig.1 (c), which
could realize the attributes in a service definition file and be
used to further specify the ”Sensing Task”.</p>
      <sec id="sec-3-1">
        <title>B. Machine-readable Model</title>
        <p>Besides the graphic model, we also extend the BPMN 2.0
machine-readable model of the process to map IoT resources
to the activity level while maintaining compatibility with the
standard as much as possible. Although BPMN 2.0 standard
already supports the allocation of resources at the activity level,
it could not directly reference the IoT-associated parameter
for a resource role, which is not known in XML format to
the BPM environment. To address this issue, we introduce a
subclass to the Activity class and bring the resource allocation
of devices directly to the activity level, compatible with the
graphic model. The IoT Device class inherits the model
associations and attributes of the Activity class. The OperationRef
class supports the definition of IoT-associated parameters,
which will pass over the generated XML document to the
execution phase of the business process. In this case, an
available IoT Device class could be found by the parameters
at runtime. The IoT Service class defines the actual services
that are hosted on the physical devices and exposes these
services through the Interface class. Consequently, a process
resource could be defined and mapped from an IoT domain
to a machine-readable business process model, without being
known previously to the BPM environment. Fig. 2 shows the
XSD specification extensions.</p>
      </sec>
      <sec id="sec-3-2">
        <title>C. Validator</title>
        <p>As mentioned above, we design a Validator to provide
support for detecting whether there are logic errors of the
pre-defined business process metamodel during the phase of
process modeling. Validator has three function components:
converter, parser and analyzer. Converter first converts the
BPMN elements to the corresponding petri net modules, then
integrates these modules into Petri Net Markup language
(PNML) file using the latest ISO/IEC 15909-2 International
Standard. Parser adjusts the layout of PNML file through
Design Structure Matrix (DSM) and calculates the reachability
matrix. Based on the reachability matrix, Analyzer uses
depthfirst strategy to validate logic features (e.g. Loop, Deadlock,
Accessibility, etc.) of the pre-defined business process
metamodel. Fig. 3 depicts the realization of Validator reference
architecture. In order to better understand our work, we designed
a business process with a logic error due to the improper using
of gateways. A demonstrative video of Validator can be found
at the following URL: https://youtu.be/T5HN0AboJ2A.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>IV. CASE STUDY</title>
      <p>In the previous section, we have introduced our approach of
modeling IoT devices as process resources in the conventional
BPM environment by extending the BPMN 2.0 standard. In
order to further illustrate the benefits of using our proposed
approach, we discuss an actual IoT-aware business process
example using our extended Eclipse-based modeling tool.
We design a business process of automatic curtain, showing
the linkage mechanism between different devices in a smart
house. The process includes two IoT devices: a light sensor
providing the sensing service through a Restful-based interface
perceiving light intensity and a actuator providing the actuating
service of opening or closing according to the measurement
of the sensor. Developers only need two steps to create this
IoT-aware business process: dragging graphic elements from
the element library and binding services to standard interfaces.
Fig. 4 illustrates the corresponding graphic model in our
IoTaware business process modeling tool.</p>
    </sec>
    <sec id="sec-5">
      <title>V. CONCLUSION AND FUTURE WORK</title>
      <p>In this paper, we presented a resource oriented modeling
approach for the Internet of Things to make IoT fit in the
traditional BPM environment. In order to reach the goal, we
initially extended the graphic and machine-readable model of
BPMN 2.0 standard, making it support the direct modeling
of IoT-aware business process. Furthermore, we introduced
an auxiliary tool to detect logic errors of the IoT business
model during the phase of process modeling. Finally, we
tested our proposed approach practically by implementing
a prototype of an IoT-aware business process model in our
extended UI-friendly Eclipse-based modeling tool. It is worth
mentioning that the work in this paper is a part of our entire
project related to IoT-aware business process applications.
More information about our work can be found in https:
//youtu.be/Cw1tXlMMIUM.</p>
      <p>However, our work is still in its infancy and requires more
actual applications to prove its applicability. Thus, we plan to
leverage our proposed approach to implement advanced
IoTaware business process applications in a cloud environment.</p>
      <p>ACKNOWLEDGMENT</p>
      <p>This work has been supported by National Natural
Science Foundation of China ( Grant No. 61501048);
National-High tech R&amp;D Program of China (863 Program)
(Grant No. 2013AA102301); The Fundamental Research
Funds for the Central Universities (Grant No. 2017RC12);
China Postdoctoral Science Foundation funded project (Grant
No.2016T90067, 2015M570060).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Leymann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Roller</surname>
          </string-name>
          , and M.-T. Schmidt, “
          <article-title>Web services and business process management,” IBM Systems Journal</article-title>
          , vol.
          <volume>41</volume>
          , pp.
          <fpage>198</fpage>
          -
          <lpage>211</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F.</given-names>
            <surname>Yan</surname>
          </string-name>
          , S. Liu,and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yao</surname>
          </string-name>
          , “
          <article-title>Research on business process modeling and business process service based on Web service,”</article-title>
          <source>In: 2nd Symposium on Web Society</source>
          , l, pp.
          <fpage>254</fpage>
          -
          <lpage>257</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P.</given-names>
            <surname>Liu</surname>
          </string-name>
          and
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , “
          <source>Research on Workflow Patterns Based on jBPM and jPDL,” In: 2008 IEEE Pacific-Asia Workshop on Computational Intelligence and Industrial Application</source>
          , vol.
          <volume>2</volume>
          , pp.
          <fpage>838</fpage>
          -
          <lpage>843</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Business</given-names>
            <surname>Process Model And</surname>
          </string-name>
          <article-title>Notation (BPMN)</article-title>
          .
          <source>OMG Specification. Object Management Group</source>
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Tian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Kong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Shen</surname>
          </string-name>
          and
          <string-name>
            <given-names>W.</given-names>
            <surname>Mao</surname>
          </string-name>
          , “5.
          <string-name>
            <given-names>A</given-names>
            <surname>UserOriented Resource</surname>
          </string-name>
          <article-title>Management Model for the Internet of Things,”In: Advances in Wireless Sensor Networks</article-title>
          .
          <source>Communications in Computer and Information Science</source>
          , vol.
          <volume>334</volume>
          , pp.
          <fpage>313</fpage>
          -
          <lpage>324</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Meyer</surname>
          </string-name>
          , A. Ruppen, and
          <string-name>
            <given-names>C.</given-names>
            <surname>Magerkurth</surname>
          </string-name>
          , “
          <article-title>Internet of Things-Aware Process Modeling: Integrating IoT Devices as Business Process Resources,”</article-title>
          <source>In: International Conference on Advanced Information Systems Engineering</source>
          , pp.
          <fpage>84</fpage>
          -
          <lpage>98</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>P.</given-names>
            <surname>Spiess</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Juetting</surname>
          </string-name>
          and
          <string-name>
            <given-names>H.</given-names>
            <surname>Vogt</surname>
          </string-name>
          ,'
          <article-title>Integrating sensor networks with business processes,”</article-title>
          <source>In Real-World Sensor Networks Workshop at ACM MobiSys</source>
          , pp.
          <fpage>139</fpage>
          -
          <lpage>152</lpage>
          .
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>