<!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>Generating CA-Plans from Multisets of Services</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Łukasz Mikulski</string-name>
          <email>lukasz.mikulski@mat.umk.pl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artur Niewiadomski</string-name>
          <email>artur.niewiadomski@uph.edu.pl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marcin Piątkowski</string-name>
          <email>marcin.piatkowski@mat.umk.pl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sebastian Smyczyński</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Nicolaus Copernicus University</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Siedlce University</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Simplito Computer Science Lab</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>The main idea of solving WSCP utilised by Planics(see [3]) is to divide the composition process into several stages. The first phase, called abstract planning, deals with an ontology which contains a hierarchy of classes describing sets of real-world services and processed object types. Our abstract planners find multisets of service types that potentially satisfy a user query. Still, each equivalence class defined by a multiset can be viewed as the union of finer equivalence classes defined by partial orders, in which the plans differ only in the ordering of context independent services. Finding all of such classes is the task of Multiset Explorer - a module of Planics presented here.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p></p>
      <p>
 






</p>
      <p>




 </p>
      <p>




</p>
      <p>
</p>
      <p>
        The realizations of web service composition is a transformation sequence of
services together with sets of affected objects (the arguments of those services).
In contrast to concrete plan, we abstract from objects attributes. We also
abstract from concrete object names (defining an equivalence relation ⇠=). We treat
two sequences as indistinguishable if they differ only in types of arguments which
are in inheritance relation (we build a partial order 4 based on inheritance
relation and utilize the filters over 4) or are equivalent in Mazurkiewicz sense (see
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]), which we denote by ⌘ Maz. However, we distinguish between two sequences
that match produced objects with the expected ones (specified by user query)
differently.
      </p>
      <p>The diagram presented below shows relationships between classes of
transformation sequences obtained by dividing the set of all potential ones that starts
with the set of initial objects specified in the user query. We denote this set by
~S. At the bottom of this diagram individual transformation sequences (~S/I), can
be seen. Looking at the top this diagram, we define three equivalence relations
based on Parikh equivalence of services utilized in the transformation sequence.
Namely, they are ⌘ sP ar which looks only on names of services (as in abstract
plan), ⌘ P ar which takes into account names of the attributes and lying in
be</p>
      <p>
        PNSE’14 – Petri Nets and Software Engineering
tween ⌘ iP ar which abstracts from the names and types of objects in favor of the
inheritance relation. In our solution we cut classes of ⌘ sP ar into classes of ⌘ iP ar
using the notion of relational structures (see [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]) and based on them equivalence
relation ⌘ topology.
      </p>
      <p>Filters of ⇣~S/(⇠=⌘ Maz), 4</p>
      <p>⌘
Filters of ⇣~S/⇠=, 4 ⌘
~
S
/⌘ sPar
Filters of ⇣~S/⌘ iPar , P ar</p>
      <p>⌘
~
S
/⌘ iPar
~
S
/⌘ Maz
~
S
/⌘ Par</p>
      <p>
        The main goal of the presented procedure is to browse all transformation
sequences satisfying a given user query with the same Parikh vector of service
specifications without duplicating indistinguishable ones. As an input we take
the ontology, the user query in the form of two sets of objects, and an arbitrary
multiset of service names that identifies single equivalence class ⌘ sP ar. We start
from fixing the names of objects originating form the user query initial world
or produced by the considered services. After that, we distribute them between
inputs of the services to obtain all possible topologies and compute maximal (in
the sense of 4) possible types of utilized objects. In the next step, we match the
obtained possibilities with the user query expected world, considering all valid
matchings. The last step is browsing all traces (in Mazurkiewicz sense) based
on the multisets of context services from ~S/⌘ iPar . This phase of the algorithm is
based on the approach presented in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] adapted to the specification in the form
of a relational structure.
      </p>
      <p>The preliminary experimental results are very promising. We used Z3
SMTsolver together with Abstract Planner (AP). We browse all solutions equivalent
in the sense of ⌘ sP ar with the one reported by AP. In the case of the shortest
plans we are able to validate their uniqueness significantly faster than the
procedure of their generation. For longer plans, we are as fast as Z3+AP reporting
from 1.5 to 5 times more plans.</p>
      <p>Acknowledgements This research was supported by the National Science
Center under the grants No.2011/01/B/ST6/01477 and No.2013/09/D/ST6/03928.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. L. de Moura and
          <string-name>
            <given-names>N.</given-names>
            <surname>Bjørner</surname>
          </string-name>
          . Z3:
          <article-title>An efficient SMT solver</article-title>
          .
          <source>LNCS</source>
          <volume>4963</volume>
          :
          <fpage>337</fpage>
          -
          <lpage>340</lpage>
          , Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>V.</given-names>
            <surname>Diekert</surname>
          </string-name>
          and G. Rozenberg, editors.
          <source>The Book of Traces. World Scientific</source>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>D.</given-names>
            <surname>Doliwa</surname>
          </string-name>
          et al. PlanICS
          <article-title>- a web service composition toolset</article-title>
          .
          <source>Fund</source>
          . Inf.,
          <volume>112</volume>
          (
          <issue>1</issue>
          ):
          <fpage>47</fpage>
          -
          <lpage>71</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. Ł. Mikulski et al.
          <article-title>Algorithmics of posets generated by words over partially commutative alphabets (extended)</article-title>
          .
          <source>Scientific Annals of Comp. Sci.</source>
          ,
          <volume>23</volume>
          (
          <issue>2</issue>
          ):
          <fpage>229</fpage>
          -
          <lpage>249</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>R.</given-names>
            <surname>Janicki</surname>
          </string-name>
          et al.
          <article-title>Causal structures for general concurrent behaviours</article-title>
          .
          <source>In CS&amp;P'13</source>
          , pp.
          <fpage>193</fpage>
          -
          <lpage>205</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>