<?xml version="1.0"?>
<!--
Copyright (C) The Business Process Management Initiative [BPMI.org] (2002,2003).
All Rights Reserved.

This document and the information contained herein is provided on an
"AS IS" basis and BPMI.org DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

The full language of the notice is available at http://www.bpmi.org
-->
<xsd:schema targetNamespace="http://www.bpmi.org/2003/BPML/instance"
            xmlns:inst="http://www.bpmi.org/2003/BPML/instance"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified" blockDefault="#all">

  <xsd:simpleType name="instance">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="state">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="active"/>
      <xsd:enumeration value="completing"/>
      <xsd:enumeration value="completed"/>
      <xsd:enumeration value="aborting"/>
      <xsd:enumeration value="aborted"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:element name="service" type="inst:service"/>

  <xsd:complexType name="service">
    <xsd:attribute name="name" type="xsd:QName"
                   use="required"/>
    <xsd:attribute name="location" type="xsd:anyURI"
                   use="optional"/>
  </xsd:complexType>


</xsd:schema>
