[jbpm-commits] JBoss JBPM SVN: r2663 - in jbpm3/trunk/modules/core: src/test/java/org/jbpm and 6 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Oct 29 19:12:04 EDT 2008


Author: alex.guizar at jboss.com
Date: 2008-10-29 19:12:03 -0400 (Wed, 29 Oct 2008)
New Revision: 2663

Added:
   jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1707/
   jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1707/JBPM1707Test.java
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithNamespace.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithSchemaLocation.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithoutNamespace.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/sitemap.xsd
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testAction.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testDecision.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEndState.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEvent.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testExceptionHandler.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionAttribute.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionContent.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidXml.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testMultipleNamespaces.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testNoSchemaReference.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testProcessDefinitionWithSchemaLocation.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testScript.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testSimpleSchemaReference.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testStartState.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTask.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTaskNode.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTwoStartStates.xml
Removed:
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/sitemap.xsd
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testAction.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testDecision.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEndState.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEvent.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testExceptionHandler.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionAttribute.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionContent.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidXml.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testMultipleNamespaces.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testNoSchemaReference.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testProcessDefinitionWithSchemaLocation.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testScript.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testSimpleSchemaReference.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testStartState.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTask.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTaskNode.xml
   jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTwoStartStates.xml
Modified:
   jbpm3/trunk/modules/core/pom.xml
   jbpm3/trunk/modules/core/src/test/java/org/jbpm/jpdl/xml/XmlSchemaTest.java
Log:
[JBPM-1707] restored pageflow parsing tests
moved xml schema test resources

Modified: jbpm3/trunk/modules/core/pom.xml
===================================================================
--- jbpm3/trunk/modules/core/pom.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/pom.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -220,9 +220,6 @@
             <artifactId>maven-surefire-plugin</artifactId>
             <configuration>
               <excludes>
-                <!-- https://jira.jboss.org/jira/browse/JBPM-1709 -->
-                <exclude>org/jbpm/scheduler/exe/TimerDbTest.java</exclude>
-                <exclude>org/jbpm/taskmgmt/exe/TaskTimerExecutionDbTest.java</exclude>
                 <!-- https://jira.jboss.org/jira/browse/JBPM-1736 -->
                 <exclude>org/jbpm/jbpm983/JBPM983Test.java</exclude>
               </excludes>

Added: jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1707/JBPM1707Test.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1707/JBPM1707Test.java	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/jbpm1707/JBPM1707Test.java	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.jbpm1707;
+
+import java.io.InputStream;
+import java.util.List;
+
+import org.jbpm.AbstractJbpmTestCase;
+import org.jbpm.graph.def.ProcessDefinition;
+import org.jbpm.jpdl.JpdlException;
+import org.jbpm.jpdl.xml.Problem;
+
+/**
+ * Pageflow parsing is slow.
+ * 
+ * https://jira.jboss.org/jira/browse/JBPM-1707
+ * 
+ * @author Alejandro Guizar
+ */
+public class JBPM1707Test extends AbstractJbpmTestCase {
+
+  public void testPageflowWithoutNamespace() {
+    parseXmlForThisMethod();
+  }
+
+  public void testPageflowWithNamespace() {
+    try {
+      parseXmlForThisMethod();
+      fail("expected exception");
+    }
+    catch (JpdlException e) {
+      List problems = e.getProblems();
+      assertEquals(1, problems.size());
+      Problem problem = (Problem) problems.get(0);
+      assertEquals(Problem.LEVEL_ERROR, problem.getLevel());
+      assertEquals(3, problem.getLine().intValue());
+    }
+  }
+
+  public void testPageflowWithSchemaLocation() {
+    parseXmlForThisMethod();
+  }
+
+  private ProcessDefinition parseXmlForThisMethod() {
+    InputStream xmlStream = getClass().getResourceAsStream(getName() + ".xml");
+    return ProcessDefinition.parseXmlInputStream(xmlStream);
+  }
+}

Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/jpdl/xml/XmlSchemaTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/jpdl/xml/XmlSchemaTest.java	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/jpdl/xml/XmlSchemaTest.java	2008-10-29 23:12:03 UTC (rev 2663)
@@ -21,8 +21,6 @@
  */
 package org.jbpm.jpdl.xml;
 
-import java.util.List;
-
 import org.jbpm.AbstractJbpmTestCase;
 import org.jbpm.graph.def.ProcessDefinition;
 import org.jbpm.jpdl.JpdlException;
@@ -33,8 +31,8 @@
    * parses the xml file in the subdir 'files' that corresponds
    * with the test method name.
    */
-  public ProcessDefinition parseXmlForThisMethod() {
-    String resource = "org/jbpm/jpdl/xml/files/"+getName()+".xml";
+  private ProcessDefinition parseXmlForThisMethod() {
+    String resource = "org/jbpm/jpdl/xml/"+getName()+".xml";
     return ProcessDefinition.parseXmlResource(resource);
   }
 

Added: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithNamespace.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithNamespace.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithNamespace.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,30 @@
+<pageflow-definition name="numberGuess" xmlns="http://jboss.com/products/seam/pageflow">
+
+  <i-do-not-belong-here>
+    <!-- the parser will notice because a schema is associated to the namespace above -->
+  </i-do-not-belong-here>
+
+  <start-state name="displayGuess">
+    <transition name="guess" to="evaluateGuess">
+      <action expression="#{numberGuess.guess}" />
+    </transition>
+  </start-state>
+
+  <decision name="evaluateGuess" expression="#{numberGuess.correctGuess}">
+    <transition name="true" to="win" />
+    <transition name="false" to="evaluateRemainingGuesses" />
+  </decision>
+
+  <decision name="evaluateRemainingGuesses"
+    expression="#{numberGuess.lastGuess}">
+    <transition name="true" to="lose" />
+    <transition name="false" to="evaluateGuess">
+      <action expression="#{numberGuess.guess}" />
+    </transition>
+  </decision>
+
+  <end-state name="win" />
+
+  <end-state name="lose" />
+
+</pageflow-definition>
\ No newline at end of file

Added: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithSchemaLocation.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithSchemaLocation.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithSchemaLocation.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pageflow-definition name="numberGuess"
+  xsi:schemaLocation="http://jboss.com/products/seam/pageflow
+                      http://jboss.com/products/seam/pageflow-2.0.xsd"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns="http://jboss.com/products/seam/pageflow">
+
+  <start-state name="displayGuess">
+    <transition name="guess" to="evaluateGuess">
+      <action expression="#{numberGuess.guess}" />
+    </transition>
+  </start-state>
+
+  <decision name="evaluateGuess" expression="#{numberGuess.correctGuess}">
+    <transition name="true" to="win" />
+    <transition name="false" to="evaluateRemainingGuesses" />
+  </decision>
+
+  <decision name="evaluateRemainingGuesses"
+    expression="#{numberGuess.lastGuess}">
+    <transition name="true" to="lose" />
+    <transition name="false" to="evaluateGuess">
+      <action expression="#{numberGuess.guess}" />
+    </transition>
+  </decision>
+
+  <end-state name="win" />
+
+  <end-state name="lose" />
+
+</pageflow-definition>
\ No newline at end of file

Added: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithoutNamespace.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithoutNamespace.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jbpm1707/testPageflowWithoutNamespace.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,30 @@
+<pageflow-definition name="numberGuess">
+
+  <i-do-not-belong-here>
+    <!-- the parser will not notice because no namespace was specified -->
+  </i-do-not-belong-here>
+
+  <start-state name="displayGuess">
+    <transition name="guess" to="evaluateGuess">
+      <action expression="#{numberGuess.guess}" />
+    </transition>
+  </start-state>
+
+  <decision name="evaluateGuess" expression="#{numberGuess.correctGuess}">
+    <transition name="true" to="win" />
+    <transition name="false" to="evaluateRemainingGuesses" />
+  </decision>
+
+  <decision name="evaluateRemainingGuesses"
+    expression="#{numberGuess.lastGuess}">
+    <transition name="true" to="lose" />
+    <transition name="false" to="evaluateGuess">
+      <action expression="#{numberGuess.guess}" />
+    </transition>
+  </decision>
+
+  <end-state name="win" />
+
+  <end-state name="lose" />
+
+</pageflow-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/sitemap.xsd
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/sitemap.xsd	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/sitemap.xsd	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.google.com/schemas/sitemap/0.84" xmlns="http://www.google.com/schemas/sitemap/0.84">
-<xsd:annotation>
-  <xsd:documentation>
-    XML Schema for Sitemap files.
-    Last Modifed 2005-05-24
-  </xsd:documentation>
-</xsd:annotation>
-
-<xsd:element name="urlset">
-  <xsd:annotation>
-    <xsd:documentation>
-      Container for a set of up to 50,000 document elements.
-      This is the root element of the XML file.
-    </xsd:documentation>
-  </xsd:annotation>
- <xsd:complexType>
-   <xsd:sequence>
-     <xsd:element ref="url" maxOccurs="unbounded"/>
-   </xsd:sequence>
- </xsd:complexType>
-</xsd:element>
-
-<xsd:element name="url">
-  <xsd:annotation>
-    <xsd:documentation>
-      Container for the data needed to describe a document to crawl.
-    </xsd:documentation>
-  </xsd:annotation>
- <xsd:complexType>
-   <xsd:all>
-     <xsd:element ref="loc"/>
-     <xsd:element ref="lastmod" minOccurs="0"/>
-     <xsd:element ref="changefreq" minOccurs="0"/>
-     <xsd:element ref="priority" minOccurs="0"/>
-   </xsd:all>
- </xsd:complexType>
-</xsd:element>
-
-<xsd:element name="loc">
-  <xsd:annotation>
-    <xsd:documentation>
-      REQUIRED: The location URI of a document.
-      The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt).
-    </xsd:documentation>
-  </xsd:annotation>
-  <xsd:simpleType>
-    <xsd:restriction base="xsd:anyURI">
-      <xsd:minLength value="12"/>
-      <xsd:maxLength value="2048"/>
-    </xsd:restriction>
-  </xsd:simpleType>
-</xsd:element> 
-
-<xsd:element name="lastmod">
-  <xsd:annotation>
-    <xsd:documentation>
-      OPTIONAL: The date the document was last modified. The date must conform
-      to ISO 8601 (http://www.w3.org/TR/NOTE-datetime). Example: 2005-05-10
-      Lastmod may also contain a timestamp. Example: 2005-05-10T17:33:30+08:00
-    </xsd:documentation>
-  </xsd:annotation>
-  <xsd:simpleType>
-    <xsd:restriction base="xsd:string">
-      <xsd:minLength value="10"/>
-      <xsd:maxLength value="25"/>
-    </xsd:restriction>
-  </xsd:simpleType>
-</xsd:element> 
-
-<xsd:element name="changefreq">
-  <xsd:annotation>
-    <xsd:documentation>
-      OPTIONAL: Indicates how frequently the content at a particular URL is
-      likely to change. The value "always" should be used to describe
-      documents that change each time they are accessed. The value "never"
-      should be used to describe archived URLs. Please note that web
-      crawlers may not necessarily crawl pages marked "always" more often.
-      Consider this element as a friendly suggestion and not a command.
-    </xsd:documentation>
-  </xsd:annotation>
-  <xsd:simpleType>
-    <xsd:restriction base="xsd:string">
-      <xsd:enumeration value="always"/>
-      <xsd:enumeration value="hourly"/>
-      <xsd:enumeration value="daily"/>
-      <xsd:enumeration value="weekly"/>
-      <xsd:enumeration value="monthly"/>
-      <xsd:enumeration value="yearly"/>
-      <xsd:enumeration value="never"/>
-    </xsd:restriction>
-  </xsd:simpleType>
-</xsd:element> 
-
-<xsd:element name="priority">
-  <xsd:annotation>
-    <xsd:documentation>
-      OPTIONAL: The priority of a particular URL relative to other pages
-      on the same site. The value for this element is a number between
-      0.0 and 1.0 where 0.0 identifies the lowest priority page(s).
-      The default priority of a page is 0.5. Priority is used to select
-      between pages on your site. Setting a priority of 1.0 for all URLs
-      will not help you, as the relative priority of pages on your site
-      is what will be considered.
-    </xsd:documentation>
-  </xsd:annotation>
-  <xsd:simpleType>
-    <xsd:restriction base="xsd:decimal">
-      <xsd:minInclusive value="0.0"/>
-      <xsd:maxInclusive value="1.0"/>
-    </xsd:restriction>
-  </xsd:simpleType>
-</xsd:element> 
-
-</xsd:schema>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testAction.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testAction.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testAction.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,20 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="action process">
-
-  <node name="n">
-    <action class="a" />
-  </node>
-  
-  <action name="a" class="c" />
-  
-  <action name="b" class="c" ref-name="a" />
-
-  <action name="c" class="c">
-    <mixed />
-    unknown
-    <content />
-    for configuration
-  </action>
-  
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testDecision.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testDecision.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testDecision.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,41 +0,0 @@
-<process-definition 
-    xmlns="http://jbpm.org/jpdl-3.2" 
-    name="decision process">
-
-  <decision name="d">
-    <handler />
-    <transition to="d">
-      <condition>a == b</condition>
-    </transition>
-    <transition to="d" />
-    <exception-handler><action></action></exception-handler>
-    <exception-handler><action></action></exception-handler>
-  </decision>
-
-  <decision name="d2">
-    <exception-handler><action></action></exception-handler>
-    <exception-handler><action></action></exception-handler>
-    <transition to="d">
-      <condition>a == b</condition>
-    </transition>
-    <handler class="" />
-    <transition to="d" />
-  </decision>
-
-  <decision name="d3">
-    <transition to="d2">
-      <condition>a=="OK"</condition>
-    </transition>
-    <transition to="d2">
-      <condition>a=="NOK"</condition>
-    </transition>
-    <transition to="d2" />
-  </decision>
-  
-  <decision name="d4">
-    <handler></handler>
-    <transition name="a" to="d2" />
-    <transition name="b" to="d2" />
-  </decision>
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEndState.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEndState.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEndState.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,16 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="end state process">
-
-  <end-state name="end" />
-
-  <end-state name="end2">
-    <exception-handler exception-class="a"><action /></exception-handler>
-    <event type="node-enter" />
-    <event type="node-enter" />
-    <event type="node-enter" />
-    <exception-handler exception-class="a"><action /></exception-handler>
-    <exception-handler exception-class="a"><action /></exception-handler>
-  </end-state>
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEvent.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEvent.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEvent.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,21 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="event process">
-    
-  <event type="my-custom-empty-event-type" />
-  
-  <event type="node-enter">
-    <create-timer duedate="2 seconds"><action class="" /></create-timer>
-    <cancel-timer name="c"/>
-    <script />
-    <action class="a" />
-    <action class="b" />
-    <script />
-    <script />
-    <cancel-timer name="a"/>
-    <cancel-timer name="b"/>
-    <create-timer duedate="2 seconds"><action class="a" /></create-timer>
-    <create-timer duedate="2 seconds"><action class="b" /></create-timer>
-  </event>
-  
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testExceptionHandler.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testExceptionHandler.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testExceptionHandler.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,18 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="exception handler process">
-
-  <exception-handler exception-class=""> 
-    <script />
-    <script />
-    <action />
-    <action />
-    <script />
-    <script />
-    <action />
-    <action />
-    <script />
-    <script />
-  </exception-handler>
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionAttribute.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionAttribute.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionAttribute.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,7 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="invalid process definition attribute"
-    
-    unexistingAttribute="buzzz">
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionContent.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionContent.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionContent.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,6 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="invalid process definition content">
-
-  <blablablalblab />
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidXml.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidXml.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidXml.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,4 +0,0 @@
-<process-definition name="invalid xml">
-  <i'll never close this tag>
-  </the hell i won't>
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testMultipleNamespaces.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testMultipleNamespaces.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testMultipleNamespaces.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,23 +0,0 @@
-<?xml version="1.0"?>
-
-<jbpm:process-definition xmlns:jbpm   ="urn:jbpm.org:jpdl-3.2" 
-                         xmlns:sitemap="http://www.google.com/schemas/sitemap/0.84"
-                         xmlns:xsi    ="http://www.w3.org/2001/XMLSchema-instance"
-                         xsi:schemaLocation="urn:jbpm.org:jpdl-3.2                      http://jbpm.org/jpdl-3.2.xsd
-                                             http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"
-                         name="multinamespace process">
-
-  <jbpm:node name="one" />
-  <jbpm:node name="two" />
-  <jbpm:node name="three" />
-
-  <jbpm:action name="configured with different namespace stuff">
-    <sitemap:urlset>
-      <sitemap:url><sitemap:loc>http://www.microsoft.com</sitemap:loc></sitemap:url>
-      <sitemap:url><sitemap:loc>http://www.microsoft.com</sitemap:loc></sitemap:url>
-      <sitemap:url><sitemap:loc>http://www.microsoft.com</sitemap:loc></sitemap:url>
-      <blablabla />
-    </sitemap:urlset>
-  </jbpm:action>
-
-</jbpm:process-definition>

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testNoSchemaReference.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testNoSchemaReference.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testNoSchemaReference.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,3 +0,0 @@
-<process-definition name="process without schema reference">
-  <blablablalblab />
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testProcessDefinitionWithSchemaLocation.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testProcessDefinitionWithSchemaLocation.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testProcessDefinitionWithSchemaLocation.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,9 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/jpdl-3.2.xsd"
-    name="process definition with schema location">
-    
-    <blablablab />
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testScript.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testScript.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testScript.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,18 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="action process">
-
-  <event type="node-enter">
-    <script>
-      <variable name="var1" />
-      <variable name="var2" />
-      <expression>
-      	System.out.println("blabla");
-      </expression>
-    </script>  
-    <script>
-      	System.out.println("blabla");
-    </script>  
-  </event>
-  
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testSimpleSchemaReference.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testSimpleSchemaReference.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testSimpleSchemaReference.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,6 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="process with schema reference">
-
-  <blablablalblab />
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testStartState.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testStartState.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testStartState.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,22 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="full valid start state process">
-
-  <start-state name="">
-    <event type="one" />
-    <transition to=""/>
-    <event type="two" />
-    <transition to=""/>
-    <task name="t" />
-    <transition to=""/>
-    <event type="three" />
-    <transition to=""/>
-    <event type="four" />
-    <transition to=""/>
-    <exception-handler><action></action></exception-handler>
-    <transition to=""/>
-    <exception-handler><action></action></exception-handler>
-    <transition to=""/>
-  </start-state>
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTask.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTask.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTask.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,39 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="task process">
-
-  <task />
-
-  <task name="one">
-    <controller>
-      <variable name="a" />
-      <variable name="b" />
-      <variable name="c" />
-    </controller>
-  </task>
-
-  <task name="two">
-    <controller class="klazz" config-type="field">
-      <klazz />
-      mixed
-      <configuration />
-      of
-      <unknown />
-      types
-    </controller>
-  </task>
-
-  <task name="three">
-    <timer duedate="2 seconds"><action /></timer>
-    <timer duedate="2 seconds"><action /></timer>
-    <event type="" />
-    <event type="" />
-    <assignment />
-    <controller />
-    <event type="" />
-    <event type="" />
-    <timer duedate="2 seconds"><action /></timer>
-    <timer duedate="2 seconds"><action /></timer>
-  </task>
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTaskNode.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTaskNode.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTaskNode.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,23 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="task node process">
-    
-  <task-node name="t"> 
-    <event type="node-enter"> 
-      <action class="c"/> 
-    </event> 
-    <task name="t"> 
-      <assignment class="c"/> 
-      <event type="task-create"> 
-        <create-timer name="ct" duedate="10 seconds"> 
-          <action class="c"/> 
-        </create-timer> 
-      </event> 
-      <event type="task-end"> 
-        <cancel-timer name="ct"/> 
-      </event> 
-    </task> 
-    <transition to="t"></transition> 
-  </task-node> 
-
-</process-definition>
\ No newline at end of file

Deleted: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTwoStartStates.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTwoStartStates.xml	2008-10-29 16:08:20 UTC (rev 2662)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTwoStartStates.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -1,8 +0,0 @@
-<process-definition 
-    xmlns="urn:jbpm.org:jpdl-3.2" 
-    name="two start states">
-
-  <start-state name="start one" />
-  <start-state name="start two" />
-  
-</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/sitemap.xsd (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/sitemap.xsd)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/sitemap.xsd	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/sitemap.xsd	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.google.com/schemas/sitemap/0.84" xmlns="http://www.google.com/schemas/sitemap/0.84">
+<xsd:annotation>
+  <xsd:documentation>
+    XML Schema for Sitemap files.
+    Last Modifed 2005-05-24
+  </xsd:documentation>
+</xsd:annotation>
+
+<xsd:element name="urlset">
+  <xsd:annotation>
+    <xsd:documentation>
+      Container for a set of up to 50,000 document elements.
+      This is the root element of the XML file.
+    </xsd:documentation>
+  </xsd:annotation>
+ <xsd:complexType>
+   <xsd:sequence>
+     <xsd:element ref="url" maxOccurs="unbounded"/>
+   </xsd:sequence>
+ </xsd:complexType>
+</xsd:element>
+
+<xsd:element name="url">
+  <xsd:annotation>
+    <xsd:documentation>
+      Container for the data needed to describe a document to crawl.
+    </xsd:documentation>
+  </xsd:annotation>
+ <xsd:complexType>
+   <xsd:all>
+     <xsd:element ref="loc"/>
+     <xsd:element ref="lastmod" minOccurs="0"/>
+     <xsd:element ref="changefreq" minOccurs="0"/>
+     <xsd:element ref="priority" minOccurs="0"/>
+   </xsd:all>
+ </xsd:complexType>
+</xsd:element>
+
+<xsd:element name="loc">
+  <xsd:annotation>
+    <xsd:documentation>
+      REQUIRED: The location URI of a document.
+      The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt).
+    </xsd:documentation>
+  </xsd:annotation>
+  <xsd:simpleType>
+    <xsd:restriction base="xsd:anyURI">
+      <xsd:minLength value="12"/>
+      <xsd:maxLength value="2048"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:element> 
+
+<xsd:element name="lastmod">
+  <xsd:annotation>
+    <xsd:documentation>
+      OPTIONAL: The date the document was last modified. The date must conform
+      to ISO 8601 (http://www.w3.org/TR/NOTE-datetime). Example: 2005-05-10
+      Lastmod may also contain a timestamp. Example: 2005-05-10T17:33:30+08:00
+    </xsd:documentation>
+  </xsd:annotation>
+  <xsd:simpleType>
+    <xsd:restriction base="xsd:string">
+      <xsd:minLength value="10"/>
+      <xsd:maxLength value="25"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:element> 
+
+<xsd:element name="changefreq">
+  <xsd:annotation>
+    <xsd:documentation>
+      OPTIONAL: Indicates how frequently the content at a particular URL is
+      likely to change. The value "always" should be used to describe
+      documents that change each time they are accessed. The value "never"
+      should be used to describe archived URLs. Please note that web
+      crawlers may not necessarily crawl pages marked "always" more often.
+      Consider this element as a friendly suggestion and not a command.
+    </xsd:documentation>
+  </xsd:annotation>
+  <xsd:simpleType>
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="always"/>
+      <xsd:enumeration value="hourly"/>
+      <xsd:enumeration value="daily"/>
+      <xsd:enumeration value="weekly"/>
+      <xsd:enumeration value="monthly"/>
+      <xsd:enumeration value="yearly"/>
+      <xsd:enumeration value="never"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:element> 
+
+<xsd:element name="priority">
+  <xsd:annotation>
+    <xsd:documentation>
+      OPTIONAL: The priority of a particular URL relative to other pages
+      on the same site. The value for this element is a number between
+      0.0 and 1.0 where 0.0 identifies the lowest priority page(s).
+      The default priority of a page is 0.5. Priority is used to select
+      between pages on your site. Setting a priority of 1.0 for all URLs
+      will not help you, as the relative priority of pages on your site
+      is what will be considered.
+    </xsd:documentation>
+  </xsd:annotation>
+  <xsd:simpleType>
+    <xsd:restriction base="xsd:decimal">
+      <xsd:minInclusive value="0.0"/>
+      <xsd:maxInclusive value="1.0"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:element> 
+
+</xsd:schema>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testAction.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testAction.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testAction.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testAction.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,20 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="action process">
+
+  <node name="n">
+    <action class="a" />
+  </node>
+  
+  <action name="a" class="c" />
+  
+  <action name="b" class="c" ref-name="a" />
+
+  <action name="c" class="c">
+    <mixed />
+    unknown
+    <content />
+    for configuration
+  </action>
+  
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testDecision.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testDecision.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testDecision.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testDecision.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,41 @@
+<process-definition 
+    xmlns="http://jbpm.org/jpdl-3.2" 
+    name="decision process">
+
+  <decision name="d">
+    <handler />
+    <transition to="d">
+      <condition>a == b</condition>
+    </transition>
+    <transition to="d" />
+    <exception-handler><action></action></exception-handler>
+    <exception-handler><action></action></exception-handler>
+  </decision>
+
+  <decision name="d2">
+    <exception-handler><action></action></exception-handler>
+    <exception-handler><action></action></exception-handler>
+    <transition to="d">
+      <condition>a == b</condition>
+    </transition>
+    <handler class="" />
+    <transition to="d" />
+  </decision>
+
+  <decision name="d3">
+    <transition to="d2">
+      <condition>a=="OK"</condition>
+    </transition>
+    <transition to="d2">
+      <condition>a=="NOK"</condition>
+    </transition>
+    <transition to="d2" />
+  </decision>
+  
+  <decision name="d4">
+    <handler></handler>
+    <transition name="a" to="d2" />
+    <transition name="b" to="d2" />
+  </decision>
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEndState.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEndState.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEndState.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEndState.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,16 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="end state process">
+
+  <end-state name="end" />
+
+  <end-state name="end2">
+    <exception-handler exception-class="a"><action /></exception-handler>
+    <event type="node-enter" />
+    <event type="node-enter" />
+    <event type="node-enter" />
+    <exception-handler exception-class="a"><action /></exception-handler>
+    <exception-handler exception-class="a"><action /></exception-handler>
+  </end-state>
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEvent.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testEvent.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEvent.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testEvent.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,21 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="event process">
+    
+  <event type="my-custom-empty-event-type" />
+  
+  <event type="node-enter">
+    <create-timer duedate="2 seconds"><action class="" /></create-timer>
+    <cancel-timer name="c"/>
+    <script />
+    <action class="a" />
+    <action class="b" />
+    <script />
+    <script />
+    <cancel-timer name="a"/>
+    <cancel-timer name="b"/>
+    <create-timer duedate="2 seconds"><action class="a" /></create-timer>
+    <create-timer duedate="2 seconds"><action class="b" /></create-timer>
+  </event>
+  
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testExceptionHandler.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testExceptionHandler.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testExceptionHandler.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testExceptionHandler.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,18 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="exception handler process">
+
+  <exception-handler exception-class=""> 
+    <script />
+    <script />
+    <action />
+    <action />
+    <script />
+    <script />
+    <action />
+    <action />
+    <script />
+    <script />
+  </exception-handler>
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionAttribute.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionAttribute.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionAttribute.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionAttribute.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,7 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="invalid process definition attribute"
+    
+    unexistingAttribute="buzzz">
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionContent.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidProcessDefinitionContent.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionContent.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidProcessDefinitionContent.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,6 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="invalid process definition content">
+
+  <blablablalblab />
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidXml.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testInvalidXml.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidXml.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testInvalidXml.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,4 @@
+<process-definition name="invalid xml">
+  <i'll never close this tag>
+  </the hell i won't>
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testMultipleNamespaces.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testMultipleNamespaces.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testMultipleNamespaces.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testMultipleNamespaces.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+
+<jbpm:process-definition xmlns:jbpm   ="urn:jbpm.org:jpdl-3.2" 
+                         xmlns:sitemap="http://www.google.com/schemas/sitemap/0.84"
+                         xmlns:xsi    ="http://www.w3.org/2001/XMLSchema-instance"
+                         xsi:schemaLocation="urn:jbpm.org:jpdl-3.2                      http://jbpm.org/jpdl-3.2.xsd
+                                             http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"
+                         name="multinamespace process">
+
+  <jbpm:node name="one" />
+  <jbpm:node name="two" />
+  <jbpm:node name="three" />
+
+  <jbpm:action name="configured with different namespace stuff">
+    <sitemap:urlset>
+      <sitemap:url><sitemap:loc>http://www.microsoft.com</sitemap:loc></sitemap:url>
+      <sitemap:url><sitemap:loc>http://www.microsoft.com</sitemap:loc></sitemap:url>
+      <sitemap:url><sitemap:loc>http://www.microsoft.com</sitemap:loc></sitemap:url>
+      <blablabla />
+    </sitemap:urlset>
+  </jbpm:action>
+
+</jbpm:process-definition>

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testNoSchemaReference.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testNoSchemaReference.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testNoSchemaReference.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testNoSchemaReference.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,3 @@
+<process-definition name="process without schema reference">
+  <blablablalblab />
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testProcessDefinitionWithSchemaLocation.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testProcessDefinitionWithSchemaLocation.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testProcessDefinitionWithSchemaLocation.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testProcessDefinitionWithSchemaLocation.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,9 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/jpdl-3.2.xsd"
+    name="process definition with schema location">
+    
+    <blablablab />
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testScript.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testScript.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testScript.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testScript.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,18 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="action process">
+
+  <event type="node-enter">
+    <script>
+      <variable name="var1" />
+      <variable name="var2" />
+      <expression>
+      	System.out.println("blabla");
+      </expression>
+    </script>  
+    <script>
+      	System.out.println("blabla");
+    </script>  
+  </event>
+  
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testSimpleSchemaReference.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testSimpleSchemaReference.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testSimpleSchemaReference.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testSimpleSchemaReference.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,6 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="process with schema reference">
+
+  <blablablalblab />
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testStartState.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testStartState.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testStartState.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testStartState.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,22 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="full valid start state process">
+
+  <start-state name="">
+    <event type="one" />
+    <transition to=""/>
+    <event type="two" />
+    <transition to=""/>
+    <task name="t" />
+    <transition to=""/>
+    <event type="three" />
+    <transition to=""/>
+    <event type="four" />
+    <transition to=""/>
+    <exception-handler><action></action></exception-handler>
+    <transition to=""/>
+    <exception-handler><action></action></exception-handler>
+    <transition to=""/>
+  </start-state>
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTask.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTask.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTask.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTask.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,39 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="task process">
+
+  <task />
+
+  <task name="one">
+    <controller>
+      <variable name="a" />
+      <variable name="b" />
+      <variable name="c" />
+    </controller>
+  </task>
+
+  <task name="two">
+    <controller class="klazz" config-type="field">
+      <klazz />
+      mixed
+      <configuration />
+      of
+      <unknown />
+      types
+    </controller>
+  </task>
+
+  <task name="three">
+    <timer duedate="2 seconds"><action /></timer>
+    <timer duedate="2 seconds"><action /></timer>
+    <event type="" />
+    <event type="" />
+    <assignment />
+    <controller />
+    <event type="" />
+    <event type="" />
+    <timer duedate="2 seconds"><action /></timer>
+    <timer duedate="2 seconds"><action /></timer>
+  </task>
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTaskNode.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTaskNode.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTaskNode.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTaskNode.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,23 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="task node process">
+    
+  <task-node name="t"> 
+    <event type="node-enter"> 
+      <action class="c"/> 
+    </event> 
+    <task name="t"> 
+      <assignment class="c"/> 
+      <event type="task-create"> 
+        <create-timer name="ct" duedate="10 seconds"> 
+          <action class="c"/> 
+        </create-timer> 
+      </event> 
+      <event type="task-end"> 
+        <cancel-timer name="ct"/> 
+      </event> 
+    </task> 
+    <transition to="t"></transition> 
+  </task-node> 
+
+</process-definition>
\ No newline at end of file

Copied: jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTwoStartStates.xml (from rev 2662, jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/files/testTwoStartStates.xml)
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTwoStartStates.xml	                        (rev 0)
+++ jbpm3/trunk/modules/core/src/test/resources/org/jbpm/jpdl/xml/testTwoStartStates.xml	2008-10-29 23:12:03 UTC (rev 2663)
@@ -0,0 +1,8 @@
+<process-definition 
+    xmlns="urn:jbpm.org:jpdl-3.2" 
+    name="two start states">
+
+  <start-state name="start one" />
+  <start-state name="start two" />
+  
+</process-definition>
\ No newline at end of file




More information about the jbpm-commits mailing list