<!–

This file is part of CPEE.

CPEE is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.

CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
CPEE (file COPYING in the main directory).  If not, see
<http://www.gnu.org/licenses/>.

–>

<description datatypeLibrary=“www.w3.org/2001/XMLSchema-datatypes” xmlns=“riddl.org/ns/description/1.0” xmlns:xi=“www.w3.org/2001/XInclude” xmlns:doc=“cpee.org/ns/documentation”>

<message name="list-of-workflow-instances">
  <parameter name="wis" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
    <doc:documentation>d</doc:documentation>
    <xi:include href="engine/instances.rng"/>
  </parameter>
</message>

<message name="instance-id">
  <parameter name="id" type="nonNegativeInteger"/>
</message>

<message name="instance-new">
  <parameter name="info" type="string"/>
</message>

<message name="instance-info">
  <parameter name="info" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
    <xi:include href="engine/instance-info.rng"/>
  </parameter>
</message>

<resource>
  <doc:documentation>b</doc:documentation>
  <get in="*" out="list-of-workflow-instances">
    <doc:documentation>a</doc:documentation>
  </get>
  <post in="instance-new" out="instance-id"/>
  <resource relative="\d+">
    <get in="*" out="instance-info"/>
    <delete in="*"/>
  </resource>
</resource>

</description>