You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by lw...@apache.org on 2006/09/05 18:19:28 UTC

svn commit: r440384 - in /incubator/ode/scratch/ode/bpel-dapi/src/main: java/org/apache/ode/dapi/DeploymentUnit.java xsd/dd.xsd xsd/dd.xsdconfig xsd/pmapi.xsd xsd/pmapi.xsdconfig

Author: lwaterman
Date: Tue Sep  5 09:19:27 2006
New Revision: 440384

URL: http://svn.apache.org/viewvc?view=rev&rev=440384
Log: (empty)

Added:
    incubator/ode/scratch/ode/bpel-dapi/src/main/java/org/apache/ode/dapi/DeploymentUnit.java
    incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsd
    incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsdconfig
    incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsd
    incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsdconfig

Added: incubator/ode/scratch/ode/bpel-dapi/src/main/java/org/apache/ode/dapi/DeploymentUnit.java
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/ode/bpel-dapi/src/main/java/org/apache/ode/dapi/DeploymentUnit.java?view=auto&rev=440384
==============================================================================
--- incubator/ode/scratch/ode/bpel-dapi/src/main/java/org/apache/ode/dapi/DeploymentUnit.java (added)
+++ incubator/ode/scratch/ode/bpel-dapi/src/main/java/org/apache/ode/dapi/DeploymentUnit.java Tue Sep  5 09:19:27 2006
@@ -0,0 +1,78 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.dapi;
+
+import java.io.File;
+import java.util.Collection;
+import java.util.Set;
+
+import javax.wsdl.Definition;
+import javax.xml.namespace.QName;
+
+import com.apache.ode.schemas.x2006.x06.x27.dd.DeployDocument;
+
+
+/**
+ * Provides information about a deployment package.
+ */
+public interface DeploymentUnit {
+    
+    /**
+     * Get the deployment directory location.
+     * @return deployment directory location
+     */
+    File getDeployDir();
+    
+    
+    /**
+     * Get the deployment descriptor for this deployment unit.
+     * @return parsed deployment descriptor
+     */
+    DeployDocument getDeploymentDescriptor();
+    
+    /**
+     * Get a WSDL definition from the deployment directory for the given namespace. 
+     * @param namespaceURI WSDL targetNamespace
+     * @return corresponding WSDL document
+     */
+    Definition getDefinitionForNamespace(String namespaceURI);
+
+    
+    /**
+     * Get a collection of all the WSDL definitions in the deployment directory.
+     * @return collection of WSDL documents
+     */
+    Collection<Definition> getDefinitions();
+
+
+  /**
+   * Names of the processes included in the deployment unit.
+   * @return
+   */
+  public Set<QName> getProcessNames();
+  
+  /**
+   * Get the state of a deployment unit at the time of deployment. Information
+   * is also available through the process management API.
+   * @return
+   */
+  public Collection<DeployDocument> getDeployedInfo();
+
+}

Added: incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsd
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsd?view=auto&rev=440384
==============================================================================
--- incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsd (added)
+++ incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsd Tue Sep  5 09:19:27 2006
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           targetNamespace="http://ode.apache.com/schemas/2006/06/27/dd"
+           xmlns:dd="http://ode.apache.com/schemas/2006/06/27/dd"
+           elementFormDefault="qualified">
+
+  <xs:element name="deploy" id="deploy" type="dd:tDeployment"/>
+
+  <xs:complexType name="tDeployment">
+    <xs:sequence>
+
+      <xs:element name="process"  minOccurs="0" maxOccurs="unbounded">
+        <xs:complexType>
+          <xs:sequence>
+            <xs:element name="version" type="xs:string" minOccurs="0" maxOccurs="1">
+              <xs:annotation>
+                <xs:documentation>A version identifier. If not specified the ODE deployment service will use system date as the default.</xs:documentation>
+              </xs:annotation>
+              
+            </xs:element>
+
+            <xs:element name="versionState" minOccurs="0" maxOccurs="1" type="dd:tVersionState"
+                        default="ACTIVE">
+              <xs:annotation>
+                <xs:documentation> A flag, if set to active a process version will be activated once
+                  deployed. </xs:documentation>
+              </xs:annotation>
+            </xs:element>
+            
+            <xs:element name="processState" minOccurs="0" maxOccurs="1" type="dd:tProcessState"
+                        default="ENABLED">
+              <xs:annotation>
+                <xs:documentation> A flag, if set to enabled a process will be enabled once
+                  deployed. </xs:documentation>
+              </xs:annotation>
+            </xs:element>
+
+            <xs:element name="property"  minOccurs="1" maxOccurs="unbounded">
+              <xs:annotation>
+                <xs:documentation>
+                  A user-defined property that will be attached to a process upon
+                  deployment.
+                </xs:documentation>
+              </xs:annotation>
+              <xs:complexType>
+                <xs:sequence>
+                  <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
+                </xs:sequence>
+                <xs:attribute name="name" type="xs:string" use="required"/>
+                <xs:attribute name="namespace" type="xs:anyURI" use="required"/>
+              </xs:complexType>
+            </xs:element>
+
+            <xs:element name="provide"  minOccurs="0" maxOccurs="unbounded" type="dd:tProvide"/>
+            <xs:element name="invoke"  minOccurs="0" maxOccurs="unbounded" type="dd:tInvoke"/>
+
+		  <xs:element name="mex-interceptors" minOccurs="0" maxOccurs="1" >
+		    <xs:annotation>
+    	        <xs:documentation>
+   		         	List of message exchange interceptors that should be registered for this process. 
+  	          </xs:documentation>
+  	       </xs:annotation>
+		     <xs:complexType>
+		       <xs:sequence>
+		         <xs:element name="mex-interceptor" minOccurs="0" maxOccurs="unbounded" type="dd:tMexInterceptor" />
+		       </xs:sequence>
+		     </xs:complexType>
+		  </xs:element>
+	      <xs:element name="type" minOccurs="0" maxOccurs="1"  type="xs:QName">
+              <xs:annotation>
+                <xs:documentation> Process type -- indicates which process defintion should be used
+                for the process.</xs:documentation>
+              </xs:annotation>
+		    </xs:element>
+
+          </xs:sequence>
+
+          <xs:attribute name="name" type="xs:QName" use="required"/>
+          <xs:attribute name="deployer" type="xs:string" use="optional"></xs:attribute>
+        </xs:complexType>
+      </xs:element>
+
+    </xs:sequence>
+    <xs:attribute name="name" type="xs:QName" use="required"/>
+  </xs:complexType>
+
+  <xs:complexType name="tProvide">
+    <xs:sequence>
+      <xs:element name="service" minOccurs="1" maxOccurs="1" type="dd:tService"/>
+    </xs:sequence>
+    <xs:attribute name="partnerLink" type="xs:string" use="required"/>
+  </xs:complexType>
+
+  <xs:complexType name="tInvoke">
+    <xs:choice>
+      <xs:element name="service" minOccurs="1" maxOccurs="1" type="dd:tService"/>
+      <xs:element name="binding" minOccurs="1" maxOccurs="1">
+        <xs:complexType>
+          <xs:attribute name="name" type="xs:QName" use="required"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:choice>
+    <xs:attribute name="partnerLink" type="xs:string" use="required"/>
+  </xs:complexType>
+
+  <xs:complexType name="tService">
+    <xs:sequence>
+      <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
+    </xs:sequence>
+    <xs:attribute name="name" type="xs:QName" use="required"/>
+    <xs:attribute name="port" type="xs:NCName" use="required"/>
+  </xs:complexType>
+  
+  <xs:complexType name="tMexInterceptor" >    
+  	<xs:annotation>
+    	<xs:documentation>
+            Message exchange interceptor configuration.
+        </xs:documentation>
+     </xs:annotation>
+  
+     <xs:sequence>
+        <xs:element name="class-name" type="xs:string" />
+     </xs:sequence>
+  </xs:complexType>
+  
+  <xs:simpleType name="tVersionState">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="ACTIVE"></xs:enumeration>
+      <xs:enumeration value="RETIRED"></xs:enumeration>
+    </xs:restriction>
+  </xs:simpleType>
+  
+  <xs:simpleType name="tProcessState">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="ENABLED"></xs:enumeration>
+      <xs:enumeration value="DISABLED"></xs:enumeration>
+    </xs:restriction>
+  </xs:simpleType>
+    
+
+</xs:schema>

Added: incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsdconfig
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsdconfig?view=auto&rev=440384
==============================================================================
--- incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsdconfig (added)
+++ incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/dd.xsdconfig Tue Sep  5 09:19:27 2006
@@ -0,0 +1,32 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<xb:config xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config"
+           xmlns:dd="http://ode.fivesight.com/schemas/2006/06/27/dd">
+
+  <xb:namespace uri="http://ode.fivesight.com/schemas/2006/06/27/dd">
+    <xb:package>org.apache.ode.bpel.dd</xb:package>
+  </xb:namespace> 
+  
+  <xb:namespace uri="##any">
+    <xb:prefix></xb:prefix>
+    <xb:suffix></xb:suffix>
+  </xb:namespace>
+
+</xb:config>

Added: incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsd
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsd?view=auto&rev=440384
==============================================================================
--- incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsd (added)
+++ incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsd Tue Sep  5 09:19:27 2006
@@ -0,0 +1,713 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pmapi="http://www.apache.org/ode/pmapi/types/2006/08/02/"
+        xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.apache.org/ode/pmapi/types/2006/08/02/"
+        elementFormDefault="qualified">
+    <element name="deployment-unit" type="pmapi:tDeploymentUnit" id="deployment-unit"></element>
+    <element name="process-info" type="pmapi:tProcessInfo" id="process-info"/>
+    <element name="activity-info" type="pmapi:tActivityInfo" id="activity-info"/>
+    <element name="process-info-list" type="pmapi:tProcessInfoList"/>
+    <element name="process-version-info" type="pmapi:tProcessVersionInfo"/>
+    <element name="process-version-info-list" type="pmapi:tProcessVersionInfoList"></element>
+    <element name="instance-info" type="pmapi:tInstanceInfo" id="instance-info"/>
+    <element name="instance-info-list" type="pmapi:tInstanceInfoList"/>
+    <element name="scope-info" type="pmapi:tScopeInfo"/>
+    <element name="variable-info" type="pmapi:tVariableInfo"/>
+    <element name="activity-ext-info-list" type="pmapi:tActivitytExtInfoList"/>
+    <element name="activity-ext-info" type="pmapi:tActivityExtInfo"/>
+    <element name="event-info" type="pmapi:tEventInfo"/>
+    <element name="event-info-list" type="pmapi:tEventInfoList"/>
+    
+    <complexType name="tDeploymentUnit">
+        <annotation>
+            <documentation>A unit of deployment that contains 1..n processes.</documentation>
+        </annotation>
+        <sequence>
+            <element name="deploymentInfo" type="pmapi:tDeploymentInfo" minOccurs="1" maxOccurs="1"></element>
+            <element name="processList" type="pmapi:tProcessInfoList"></element>
+        </sequence>
+        <attribute name="duid" type="xs:QName"></attribute>
+    </complexType>
+
+    <complexType name="tProcessInfo">
+        <annotation>
+            <documentation>Information about a BPEL process.</documentation>
+        </annotation>
+        <sequence>
+            <element name="pid" type="xs:QName">
+                <annotation>
+                    <documentation>The unique name/id of the process.</documentation>
+                </annotation>
+            </element>
+            <element name="status" type="pmapi:tProcessStatus">
+                <annotation>
+                    <documentation>Process status.</documentation>
+                </annotation>
+            </element>
+            <element name="version-info-list" type="pmapi:tProcessVersionInfoList">
+                <annotation>
+                    <documentation>Version information about the process
+                        definition.</documentation>
+                </annotation>
+            </element>
+            <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <anyAttribute namespace="##other" processContents="lax"/>
+    </complexType>
+    <complexType name="tProcessVersionInfo">
+        <annotation>
+            <documentation>Information about a BPEL process version.</documentation>
+        </annotation>
+        <sequence>
+            <element name="version" type="xs:string">
+                <annotation>
+                    <documentation>The unique version ID of the process.</documentation>
+                </annotation>
+            </element>
+            <element name="status" type="pmapi:tVersionStatus">
+                <annotation>
+                    <documentation>Process version status.</documentation>
+                </annotation>
+            </element>
+            <element name="definition-info" type="pmapi:tDefinitionInfo">
+                <annotation>
+                    <documentation>Information about the process
+                        definition.</documentation>
+                </annotation>
+            </element>
+            <element name="deployment-info" type="pmapi:tDeploymentInfo">
+                <annotation>
+                    <documentation>Information about the process
+                        deployment.</documentation>
+                </annotation>
+            </element>
+            <element name="instance-summary" type="pmapi:tInstanceSummary" minOccurs="0">
+                <annotation>
+                    <documentation>Summary of the instances belonging to this
+                        process.</documentation>
+                </annotation>
+            </element>
+            <element name="properties" type="pmapi:tProcessProperties">
+                <annotation>
+                    <documentation>Process properties.</documentation>
+                </annotation>
+            </element>
+            <element name="endpoints" type="pmapi:tEndpointReferences">
+                <annotation>
+                    <documentation>Endpoint references.</documentation>
+                </annotation>
+            </element>
+            <element name="documents">
+                <annotation>
+                    <documentation>Process documents</documentation>
+                </annotation>
+                <complexType>
+                    <sequence>
+                        <element name="document" type="pmapi:tDocumentInfo" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <anyAttribute namespace="##other" processContents="lax"/>        
+    </complexType>
+    <simpleType name="tActivityStatus">
+        <annotation>
+            <documentation>Enumeration of scope status.</documentation>
+        </annotation>
+        <restriction base="xs:string">
+            <enumeration value="ENABLED">
+                <annotation>
+                    <documentation>Activity is enabled, but not necessarily ready to execute.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="STARTED">
+                <annotation>
+                    <documentation>Activity has started execution.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="COMPLETED">
+                <annotation>
+                    <documentation>Activity has finished execution.</documentation>
+                </annotation>
+            </enumeration>
+        </restriction>
+    </simpleType>
+    <simpleType name="tScopeStatus">
+        <annotation>
+            <documentation>Enumeration of scope status.</documentation>
+        </annotation>
+        <restriction base="xs:string">
+            <enumeration value="ACTIVE">
+                <annotation>
+                    <documentation>Scope is active.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="COMPLETED">
+                <annotation>
+                    <documentation>Scope has completed.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="FAULTED">
+                <annotation>
+                    <documentation>Scope has faulted.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="FAULTHANDLING">
+                <annotation>
+                    <documentation>Scope is executing its fault
+                        handler.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="COMPENSATING">
+                <annotation>
+                    <documentation>Scope is executing its compensation
+                        handler.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="COMPENSATED">
+                <annotation>
+                    <documentation>Scope has been compensated.</documentation>
+                </annotation>
+            </enumeration>
+        </restriction>
+    </simpleType>
+    <complexType name="tDefinitionInfo">
+        <annotation>
+            <documentation>Information about the process definition.</documentation>
+        </annotation>
+        <sequence>
+            <element name="process-name" type="xs:QName">
+                <annotation>
+                    <documentation>The qualified name of the BPEL
+                        process.</documentation>
+                </annotation>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tDocumentInfo">
+        <annotation>
+            <documentation>Information about a document.</documentation>
+        </annotation>
+        <sequence>
+            <element name="name" type="xs:string">
+                <annotation>
+                    <documentation>Name of the document.</documentation>
+                </annotation>
+            </element>
+            <element name="type" type="xs:anyURI">
+                <annotation>
+                    <documentation>Type of document (e.g.
+                        WSDL/BPEL/etc...).</documentation>
+                </annotation>
+            </element>
+            <element name="source" type="xs:anyURI">
+                <annotation>
+                    <documentation>URL where the document can be
+                        retrieved.</documentation>
+                </annotation>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tDeploymentInfo">
+        <annotation>
+            <documentation>Information about a BPEL process
+                deployment.</documentation>
+        </annotation>
+        <sequence>
+            <element name="deploy-date" type="xs:dateTime">
+                <annotation>
+                    <documentation>Date the process was deployed.</documentation>
+                </annotation>
+            </element>
+            <element name="deployer" type="xs:string">
+                <annotation>
+                    <documentation>The user that deployed this
+                        process.</documentation>
+                </annotation>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tProcessProperties">
+        <sequence>
+            <element name="property" minOccurs="0" maxOccurs="unbounded">
+                <annotation>
+                    <documentation>Process property (name-value pair).</documentation>
+                </annotation>
+                <complexType>
+                    <sequence>
+                        <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                    <attribute name="name" type="xs:QName">
+                        <annotation>
+                            <documentation>Name of the property.</documentation>
+                        </annotation>
+                    </attribute>
+                </complexType>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tEndpointReferences">
+        <sequence>
+            <element name="endpoint-ref" minOccurs="0" maxOccurs="unbounded">
+                <annotation>
+                    <documentation>Endpoint references associated with the process partner links roles.</documentation>
+                </annotation>
+                <complexType>
+                    <sequence>
+                        <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                    <attribute name="partner-link" type="xs:string">
+                        <annotation>
+                            <documentation>Name of the partner link this endpoint reference is associated with.</documentation>
+                        </annotation>
+                    </attribute>
+                    <attribute name="partner-role" type="xs:string">
+                        <annotation>
+                            <documentation>Name of the partner role this endpoint reference is associated with.</documentation>
+                        </annotation>
+                    </attribute>
+                </complexType>
+            </element>
+        </sequence>
+    </complexType>
+    <simpleType name="tInstanceStatus">
+        <annotation>
+            <documentation>Enumeration of instant status.</documentation>
+        </annotation>
+        <restriction base="xs:string">
+            <enumeration value="ACTIVE">
+                <annotation>
+                    <documentation>Instance is active.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="COMPLETED">
+                <annotation>
+                    <documentation>Instance has completed.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="TERMINATED">
+                <annotation>
+                    <documentation>Instance was terminated.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="FAILED">
+                <annotation>
+                    <documentation>Instance failed (with a fault).</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="SUSPENDED">
+                <annotation>
+                    <documentation>Instance has been suspended.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="ERROR">
+                <annotation>
+                    <documentation>Instance is.....</documentation>
+                </annotation>
+            </enumeration>
+        </restriction>
+    </simpleType>
+    <complexType name="tInstanceSummary">
+        <annotation>
+            <documentation>A summary of the number of instances in each state.
+            </documentation>
+        </annotation>
+        <sequence>
+            <element name="instances" minOccurs="0" maxOccurs="unbounded">
+                <complexType>
+                    <attribute name="state" type="pmapi:tInstanceStatus" use="required"/>
+                    <attribute name="count" type="xs:int" use="required"/>
+                </complexType>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tScopeInfo">
+        <sequence>
+            <element name="siid" type="xs:string">
+                <annotation>
+                    <documentation>Scope instance identifier.</documentation>
+                </annotation>
+            </element>
+            <element name="name" type="xs:string">
+                <annotation>
+                    <documentation>Scope name.</documentation>
+                </annotation>
+            </element>
+            <element name="status" type="pmapi:tScopeStatus">
+                <annotation>
+                    <documentation>Scope instance identifier.</documentation>
+                </annotation>
+            </element>
+            <element name="parent-scope-ref" type="pmapi:tScopeRef" minOccurs="0">
+                <annotation>
+                    <documentation>Parent scope reference.</documentation>
+                </annotation>
+            </element>
+            <element name="children" minOccurs="0">
+                <complexType>
+                    <sequence>
+                        <element name="child-ref" type="pmapi:tScopeRef" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="activities" minOccurs="0">
+                <complexType>
+                    <sequence>
+                        <element ref="pmapi:activity-info" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="variables" minOccurs="0">
+                <complexType>
+                    <sequence>
+                        <element name="variable-ref" type="pmapi:tVariableRef" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="correlation-sets" minOccurs="0">
+                <annotation>
+                    <documentation>Lists all correlation correlation sets associated with
+                        this scope with their valued correlation properties.</documentation>
+                </annotation>
+                <complexType>
+                    <sequence>
+                        <element name="correlation-set" maxOccurs="unbounded">
+                            <complexType>
+                                <sequence>
+                                    <element name="correlation-property" type="pmapi:tCorrelationProperty" maxOccurs="unbounded"/>
+                                </sequence>
+                                <attribute name="name" type="xs:string" use="required"/>
+                                <attribute name="csetid" type="xs:string" use="required"/>
+                            </complexType>
+                        </element>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="endpoints" type="pmapi:tEndpointReferences">
+                <annotation>
+                    <documentation>Endpoint references.</documentation>
+                </annotation>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tActivityInfo">
+        <annotation>
+            <documentation>Information about an activity.
+            </documentation>
+        </annotation>
+        <sequence>
+            <element name="name" type="xs:string" minOccurs="0"/>
+            <element name="type" type="xs:string"/>
+            <element name="aiid" type="xs:string"/>
+            <element name="status" type="pmapi:tActivityStatus"/>
+            <element name="scope" type="pmapi:tScopeRef" minOccurs="0">
+                <annotation>
+                    <documentation>ID for scope in which this activity is executing.</documentation>
+                </annotation>
+            </element>
+            <element name="dt-enabled" type="xs:dateTime" minOccurs="0">
+                <annotation>
+                    <documentation>The date/time when the activity was enabled.</documentation>
+                </annotation>
+            </element>
+            <element name="dt-started" type="xs:dateTime" minOccurs="0">
+                <annotation>
+                    <documentation>The date/time when the activity was
+                        started.</documentation>
+                </annotation>
+            </element>
+            <element name="dt-completed" type="xs:dateTime" minOccurs="0">
+                <annotation>
+                    <documentation>The date/time when the activity was
+                        completed.</documentation>
+                </annotation>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tVariableInfo">
+        <annotation>
+            <documentation>Information about a variable (basically the value)
+            </documentation>
+        </annotation>
+        <sequence>
+            <element name="self" type="pmapi:tVariableRef"/>
+            <element name="value" minOccurs="0">
+                <complexType>
+                    <sequence>
+                        <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tInstanceInfo">
+        <sequence>
+            <element name="iid" type="xs:string">
+                <annotation>
+                    <documentation>The unique instance identifier. </documentation>
+                </annotation>
+            </element>
+            <element name="pid" type="xs:string">
+                <annotation>
+                    <documentation>Process id of the process to which this instance
+                        belongs.</documentation>
+                </annotation>
+            </element>
+            <element name="process-name" type="QName"/>
+            <element name="root-scope" type="pmapi:tScopeRef" minOccurs="0">
+                <annotation>
+                    <documentation>Root scope id (might not exist). </documentation>
+                </annotation>
+            </element>
+            <element name="status" type="pmapi:tInstanceStatus">
+                <annotation>
+                    <documentation>Status of ths instance.</documentation>
+                </annotation>
+            </element>
+            <element name="dt-started" type="xs:dateTime">
+                <annotation>
+                    <documentation>The date/time when the instance was
+                        started.</documentation>
+                </annotation>
+            </element>
+            <element name="dt-last-active" type="xs:dateTime">
+                <annotation>
+                    <documentation>The date/time when the last activity
+                        occured.</documentation>
+                </annotation>
+            </element>
+            <element name="dt-error-since" type="xs:dateTime" minOccurs="0">
+                <annotation>
+                    <documentation> If present, indicates the date/time since which the
+                        instance has been in an error state. </documentation>
+                </annotation>
+            </element>
+            <element name="correlation-properties" minOccurs="0">
+                <annotation>
+                    <documentation>Lists all correlation properties with their values that
+                        are associated with this process instance.</documentation>
+                </annotation>
+                <complexType>
+                    <sequence>
+                        <element name="correlation-property" type="pmapi:tCorrelationProperty" maxOccurs="unbounded">
+                            <annotation>
+                                <documentation>Instance correlation property.</documentation>
+                            </annotation>
+                        </element>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="event-info" minOccurs="0">
+                <annotation>
+                    <documentation> Information about the events for this instance. If
+                        absent, indicates events are not available. </documentation>
+                </annotation>
+                <complexType>
+                    <sequence>
+                        <element name="count" type="xs:int">
+                            <annotation>
+                                <documentation> Indicates the datetime of the first event
+                                </documentation>
+                            </annotation>
+                        </element>
+                        <element name="first-dtime" type="xs:dateTime">
+                            <annotation>
+                                <documentation> Indicates the datetime of the first event
+                                </documentation>
+                            </annotation>
+                        </element>
+                        <element name="last-dtime" type="xs:dateTime">
+                            <annotation>
+                                <documentation> Indicates the datetime of the last event.
+                                </documentation>
+                            </annotation>
+                        </element>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="fault-info" type="pmapi:tFaultInfo" minOccurs="0">
+                <annotation>
+                    <documentation> If present, indicates the fault with which this
+                        instance failed. </documentation>
+                </annotation>
+            </element>
+            <element name="myElement" type="string"/>
+        </sequence>
+    </complexType>
+    <complexType name="tScopeRef">
+        <annotation>
+            <documentation> Reference to a scope. </documentation>
+        </annotation>
+        <attribute name="siid" type="xs:string" use="required"/>
+        <attribute name="name" type="xs:string" use="optional"/>
+        <attribute name="modelId" type="xs:string" use="required"/>
+        <attribute name="status" type="pmapi:tScopeStatus" use="required"/>
+    </complexType>
+    <complexType name="tVariableRef">
+        <annotation>
+            <documentation>Reference to a variable.</documentation>
+        </annotation>
+        <attribute name="iid" type="xs:string" use="required"/>
+        <attribute name="siid" type="xs:string" use="required"/>
+        <attribute name="name" type="xs:string" use="required"/>
+    </complexType>
+    <complexType name="tFaultInfo">
+        <annotation>
+            <documentation> Type used for reporting faults. </documentation>
+        </annotation>
+        <sequence>
+            <element name="name" type="xs:QName"/>
+            <element name="explanation" type="xs:string"/>
+            <element name="line-number" type="xs:int"/>
+            <element name="aiid" type="xs:int"/>
+            <element name="data" minOccurs="0">
+                <complexType>
+                    <sequence>
+                        <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </sequence>
+    </complexType>
+    <!-- Yew that's ugly, but there aren't so many ways to map an heritage -->
+    <complexType name="tEventInfo">
+        <sequence>
+            <element name="name" type="xs:string"/>
+            <element name="type" type="xs:string"/>
+            <element name="line-number" type="xs:int"/>
+            <element name="timestamp" type="xs:dateTime"/>
+            <element name="process-id" type="xs:QName" minOccurs="0" maxOccurs="1"/>
+            <element name="process-type" type="xs:QName" minOccurs="0" maxOccurs="1"/>
+            <element name="instance-id" type="xs:long" minOccurs="0" maxOccurs="1"/>
+            <element name="scope-id" type="xs:long" minOccurs="0" maxOccurs="1"/>
+            <element name="parent-scope-id" type="xs:long" minOccurs="0" maxOccurs="1"/>
+            <element name="scope-name" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="scope-definition-id" type="xs:int" minOccurs="0" maxOccurs="1"/>
+            <element name="activity-id" type="xs:long" minOccurs="0" maxOccurs="1"/>
+            <element name="activity-name" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="activity-type" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="activity-definition-id" type="xs:int" minOccurs="0" maxOccurs="1"/>
+            <element name="variable-name" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="port-type" type="xs:QName" minOccurs="0" maxOccurs="1"/>
+            <element name="operation" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="correlation-set" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="mex-id" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="correlation-key" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="expression" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="fault" type="xs:QName" minOccurs="0" maxOccurs="1"/>
+            <element name="fault-line-number" type="xs:int" minOccurs="0" maxOccurs="1"/>
+            <element name="explanation" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="result" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="root-scope-id" type="xs:long" minOccurs="0" maxOccurs="1"/>
+            <element name="root-scope-declaration-id" type="xs:int" minOccurs="0" maxOccurs="1"/>
+            <element name="partner-link-name" type="xs:string" minOccurs="0" maxOccurs="1"/>
+            <element name="old-state" type="xs:int" minOccurs="0" maxOccurs="1"/>
+            <element name="new-state" type="xs:int" minOccurs="0" maxOccurs="1"/>
+            <element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+    <complexType name="tInstanceInfoList">
+        <sequence>
+            <element ref="pmapi:instance-info" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+    <complexType name="tProcessInfoList">
+        <sequence>
+            <element ref="pmapi:process-info" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+    <complexType name="tProcessVersionInfoList">
+        <sequence>
+            <element ref="pmapi:process-version-info" minOccurs="1" maxOccurs="unbounded">
+                
+            </element>
+        </sequence>
+    </complexType>
+    <complexType name="tEventInfoList">
+        <sequence>
+            <element ref="pmapi:event-info" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+    <complexType name="tCorrelationProperty" mixed="true">
+        <simpleContent>
+            <extension base="xs:string">
+                <attribute name="csetid" type="xs:string" use="required"/>
+                <attribute name="propertyName" type="xs:QName" use="required"/>
+            </extension>
+        </simpleContent>
+    </complexType>
+
+    <complexType name="tActivityExtInfo">
+        <annotation>
+            <documentation>Information about an activity.
+            </documentation>
+        </annotation>
+        <sequence>
+            <element name="aiid" type="xs:string"/>
+            <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+    <complexType name="tActivitytExtInfoList">
+        <sequence>
+            <element ref="pmapi:activity-ext-info" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+    
+    <xs:simpleType name="tVersionStatus">
+        <annotation>
+            <documentation>Enumeration of process version status.</documentation>
+        </annotation>
+        <restriction base="xs:string">
+            <enumeration value="ACTIVE">
+                <annotation>
+                    <documentation>Process version is accepting new
+                        requests.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="RETIRED">
+                <annotation>
+                    <documentation>Process verison is NOT accepting new
+                        requests.</documentation>
+                </annotation>
+            </enumeration>
+        </restriction>
+    </xs:simpleType>
+    
+    <xs:simpleType name="tProcessStatus">
+        <annotation>
+            <documentation>Enumeration of process status.</documentation>
+        </annotation>
+        <restriction base="xs:string">
+            <enumeration value="ENABLED">
+                <annotation>
+                    <documentation>Process is accepting events.</documentation>
+                </annotation>
+            </enumeration>
+            <enumeration value="DISABLED">
+                <annotation>
+                    <documentation>Process is NOT accepting events.</documentation>
+                </annotation>
+            </enumeration>
+        </restriction>
+    </xs:simpleType>
+
+</schema>

Added: incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsdconfig
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsdconfig?view=auto&rev=440384
==============================================================================
--- incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsdconfig (added)
+++ incubator/ode/scratch/ode/bpel-dapi/src/main/xsd/pmapi.xsdconfig Tue Sep  5 09:19:27 2006
@@ -0,0 +1,32 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<xb:config xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config"
+           xmlns:pmapi="http://www.apache.org/ode/pmapi/types/2006/08/02/">
+
+  <xb:namespace uri="http://www.apache.org/ode/pmapi/types/2006/08/02/">
+    <xb:package>org.apache.ode.bpel.pmapi</xb:package>
+  </xb:namespace> 
+  
+  <xb:namespace uri="##any">
+    <xb:prefix></xb:prefix>
+    <xb:suffix></xb:suffix>
+  </xb:namespace>
+
+</xb:config>