JBoss JBPM SVN: r1665 - in api/trunk/modules: dialects/api10 and 3 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 05:53:58 -0400 (Thu, 17 Jul 2008)
New Revision: 1665
Modified:
api/trunk/modules/api/pom.xml
api/trunk/modules/dialects/api10/pom.xml
api/trunk/modules/dialects/jpdl32/pom.xml
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java
api/trunk/modules/testsuite/pom.xml
Log:
Use API provided jpdl32 handler
Modified: api/trunk/modules/api/pom.xml
===================================================================
--- api/trunk/modules/api/pom.xml 2008-07-17 09:30:00 UTC (rev 1664)
+++ api/trunk/modules/api/pom.xml 2008-07-17 09:53:58 UTC (rev 1665)
@@ -30,10 +30,6 @@
<!-- Compile Dependencies -->
<dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
- </dependency>
- <dependency>
<groupId>org.jboss.microcontainer</groupId>
<artifactId>jboss-kernel</artifactId>
</dependency>
@@ -49,12 +45,6 @@
<scope>provided</scope>
</dependency>
- <!-- Runtime/System Dependencies -->
- <dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-xjc</artifactId>
- <scope>runtime</scope>
- </dependency>
</dependencies>
<!-- Plugins -->
Modified: api/trunk/modules/dialects/api10/pom.xml
===================================================================
--- api/trunk/modules/dialects/api10/pom.xml 2008-07-17 09:30:00 UTC (rev 1664)
+++ api/trunk/modules/dialects/api10/pom.xml 2008-07-17 09:53:58 UTC (rev 1665)
@@ -14,7 +14,7 @@
<modelVersion>4.0.0</modelVersion>
<name>JBoss jBPM - API Dialect API-1.0</name>
<groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api-dialect-jaxb</artifactId>
+ <artifactId>jbpm-api-dialect-api10</artifactId>
<packaging>jar</packaging>
<!-- Parent -->
@@ -33,6 +33,15 @@
<version>${version}</version>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-xjc</artifactId>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
Modified: api/trunk/modules/dialects/jpdl32/pom.xml
===================================================================
--- api/trunk/modules/dialects/jpdl32/pom.xml 2008-07-17 09:30:00 UTC (rev 1664)
+++ api/trunk/modules/dialects/jpdl32/pom.xml 2008-07-17 09:53:58 UTC (rev 1665)
@@ -33,6 +33,15 @@
<version>${version}</version>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-xjc</artifactId>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java 2008-07-17 09:30:00 UTC (rev 1664)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java 2008-07-17 09:53:58 UTC (rev 1665)
@@ -29,6 +29,7 @@
import org.jboss.bpm.dialect.jpdl32.model.JPDL32Action;
import org.jboss.bpm.dialect.jpdl32.model.JPDL32EndState;
import org.jboss.bpm.dialect.jpdl32.model.JPDL32Event;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32Fork;
import org.jboss.bpm.dialect.jpdl32.model.JPDL32ProcessDefinition;
import org.jboss.bpm.dialect.jpdl32.model.JPDL32StartState;
import org.jboss.bpm.dialect.jpdl32.model.JPDL32State;
@@ -59,6 +60,10 @@
{
adaptState(builder, (JPDL32State)jpdlObj);
}
+ else if (jpdlObj instanceof JPDL32Fork)
+ {
+ adaptFork(builder, (JPDL32Fork)jpdlObj);
+ }
else if (jpdlObj instanceof JPDL32EndState)
{
adaptEndState(builder, (JPDL32EndState)jpdlObj);
@@ -113,6 +118,12 @@
}
}
+ private void adaptFork(ProcessBuilder builder, JPDL32Fork jpdlObj)
+ {
+ builder.addParallelGateway(jpdlObj.getName());
+ adaptTransitions(builder, jpdlObj.getScriptOrDescriptionOrEvent());
+ }
+
private void adaptTransitions(ProcessBuilder builder, List<Object> list)
{
for (Object subEl : list)
Modified: api/trunk/modules/testsuite/pom.xml
===================================================================
--- api/trunk/modules/testsuite/pom.xml 2008-07-17 09:30:00 UTC (rev 1664)
+++ api/trunk/modules/testsuite/pom.xml 2008-07-17 09:53:58 UTC (rev 1665)
@@ -56,7 +56,7 @@
</dependency>
<dependency>
<groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api-dialect-jaxb</artifactId>
+ <artifactId>jbpm-api-dialect-api10</artifactId>
<version>${version}</version>
<scope>runtime</scope>
</dependency>
15 years, 11 months
JBoss JBPM SVN: r1664 - in api/trunk: modules/dialects and 1 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 05:30:00 -0400 (Thu, 17 Jul 2008)
New Revision: 1664
Added:
api/trunk/modules/dialects/api10/
api/trunk/modules/dialects/api10/pom.xml
api/trunk/modules/dialects/api10/src/
Removed:
api/trunk/modules/dialects/api10/pom.xml
api/trunk/modules/dialects/api10/src/
api/trunk/modules/dialects/jaxb/
Modified:
api/trunk/pom.xml
Log:
move dialect api10 module
Copied: api/trunk/modules/dialects/api10 (from rev 1662, api/trunk/modules/dialects/jaxb)
Deleted: api/trunk/modules/dialects/api10/pom.xml
===================================================================
--- api/trunk/modules/dialects/jaxb/pom.xml 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/api10/pom.xml 2008-07-17 09:30:00 UTC (rev 1664)
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ====================================================================== -->
-<!-- -->
-<!-- JBoss, the OpenSource J2EE webOS -->
-<!-- -->
-<!-- Distributable under LGPL license. -->
-<!-- See terms of license at http://www.gnu.org. -->
-<!-- -->
-<!-- ====================================================================== -->
-
-<!-- $Id$ -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <name>JBoss jBPM - API Dialect API-1.0</name>
- <groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api-dialect-jaxb</artifactId>
- <packaging>jar</packaging>
-
- <!-- Parent -->
- <parent>
- <groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api-root</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
-
- <!-- Dependencies -->
- <dependencies>
- <dependency>
- <groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api</artifactId>
- <version>${version}</version>
- <scope>compile</scope>
- </dependency>
- </dependencies>
-
-</project>
\ No newline at end of file
Copied: api/trunk/modules/dialects/api10/pom.xml (from rev 1663, api/trunk/modules/dialects/jaxb/pom.xml)
===================================================================
--- api/trunk/modules/dialects/api10/pom.xml (rev 0)
+++ api/trunk/modules/dialects/api10/pom.xml 2008-07-17 09:30:00 UTC (rev 1664)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>JBoss jBPM - API Dialect API-1.0</name>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-dialect-jaxb</artifactId>
+ <packaging>jar</packaging>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-root</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <!-- Dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api</artifactId>
+ <version>${version}</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Copied: api/trunk/modules/dialects/api10/src (from rev 1663, api/trunk/modules/dialects/jaxb/src)
Modified: api/trunk/pom.xml
===================================================================
--- api/trunk/pom.xml 2008-07-17 09:27:02 UTC (rev 1663)
+++ api/trunk/pom.xml 2008-07-17 09:30:00 UTC (rev 1664)
@@ -33,7 +33,7 @@
<modules>
<module>modules/api</module>
<module>modules/impl</module>
- <module>modules/dialects/jaxb</module>
+ <module>modules/dialects/api10</module>
<module>modules/dialects/jpdl32</module>
<module>modules/testsuite</module>
</modules>
15 years, 11 months
JBoss JBPM SVN: r1663 - in api/trunk/modules: dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10 and 5 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 05:27:02 -0400 (Thu, 17 Jul 2008)
New Revision: 1663
Added:
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/DialectHandlerImpl.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessAdapter.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessMarshaller.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBActivity.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBComplexGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEndEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExclusiveGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExecutionHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlow.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowObject.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBInclusiveGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBIntermediateEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBMessageFlow.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBParallelGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBProcess.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSequenceFlow.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSignalHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBStartEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSubProcess.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBTask.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/ObjectFactory.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/package-info.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/
Removed:
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBActivity.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBComplexGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEndEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExclusiveGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExecutionHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlow.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowObject.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBInclusiveGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBIntermediateEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBMessageFlow.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBParallelGateway.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBProcess.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSequenceFlow.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSignalHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBStartEvent.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSubProcess.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBTask.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/ObjectFactory.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/package-info.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/
Modified:
api/trunk/modules/dialects/jpdl32/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/BindingType.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/BooleanType.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/ConfigType.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/Delegation.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Action.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Assignment.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32CancelTimer.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32CreateTimer.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Decision.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32EndState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Event.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ExceptionHandler.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Fork.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Join.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Mail.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32MailNode.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Node.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ProcessDefinition.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ProcessState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Script.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32StartState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32State.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32SuperState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Swimlane.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Task.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32TaskNode.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Timer.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Transition.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Variable.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/ObjectFactory.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/package-info.java
api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
Log:
rename dialect packages
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/DialectHandlerImpl.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/DialectHandlerImpl.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/DialectHandlerImpl.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/DialectHandlerImpl.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,76 @@
+/*
+ * 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.jboss.bpm.dialect.api10;
+
+// $Id$
+
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.StringReader;
+import java.net.URL;
+
+import javax.xml.bind.JAXBException;
+
+import org.jboss.bpm.InvalidProcessException;
+import org.jboss.bpm.client.DialectHandler;
+import org.jboss.bpm.dialect.api10.model.JAXBProcess;
+import org.jboss.bpm.model.Process;
+
+/**
+ * The DialectHandler converts a supported dialect to the internal Process model.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class DialectHandlerImpl implements DialectHandler
+{
+
+ public Process createProcess(String pXML)
+ {
+ try
+ {
+ ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
+ JAXBProcess jaxbProc = unmarschaller.unmarshallProcess(new StringReader(pXML));
+ Process proc = new ProcessAdapter().adaptProcess(jaxbProc);
+ return proc;
+ }
+ catch (JAXBException ex)
+ {
+ throw new InvalidProcessException("Cannot unmarschall: " + pXML, ex);
+ }
+ }
+
+ public Process createProcess(URL pURL) throws IOException
+ {
+ try
+ {
+ ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
+ JAXBProcess jaxbProc = unmarschaller.unmarshallProcess(new InputStreamReader(pURL.openStream()));
+ Process proc = new ProcessAdapter().adaptProcess(jaxbProc);
+ return proc;
+ }
+ catch (JAXBException ex)
+ {
+ throw new InvalidProcessException("Cannot unmarschall: " + pURL, ex);
+ }
+ }
+}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessAdapter.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessAdapter.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessAdapter.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,176 @@
+/*
+ * 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.jboss.bpm.dialect.api10;
+
+// $Id$
+
+import org.jboss.bpm.InvalidProcessException;
+import org.jboss.bpm.NotImplementedException;
+import org.jboss.bpm.dialect.api10.model.JAXBComplexGateway;
+import org.jboss.bpm.dialect.api10.model.JAXBEndEvent;
+import org.jboss.bpm.dialect.api10.model.JAXBExclusiveGateway;
+import org.jboss.bpm.dialect.api10.model.JAXBFlow;
+import org.jboss.bpm.dialect.api10.model.JAXBFlowObject;
+import org.jboss.bpm.dialect.api10.model.JAXBHandler;
+import org.jboss.bpm.dialect.api10.model.JAXBInclusiveGateway;
+import org.jboss.bpm.dialect.api10.model.JAXBIntermediateEvent;
+import org.jboss.bpm.dialect.api10.model.JAXBParallelGateway;
+import org.jboss.bpm.dialect.api10.model.JAXBProcess;
+import org.jboss.bpm.dialect.api10.model.JAXBStartEvent;
+import org.jboss.bpm.dialect.api10.model.JAXBSubProcess;
+import org.jboss.bpm.dialect.api10.model.JAXBTask;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+
+/**
+ * Adapt the JAXBProcess to the API Process
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class ProcessAdapter
+{
+ public Process adaptProcess(JAXBProcess jaxbProc)
+ {
+ ProcessBuilder builder = ProcessBuilderFactory.newInstance().newProcessBuilder(jaxbProc.getName());
+ for (JAXBFlowObject jaxbFlowObject : jaxbProc.getFlowObjects())
+ {
+ if (jaxbFlowObject instanceof JAXBStartEvent)
+ {
+ adaptStartEvent(builder, (JAXBStartEvent)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBIntermediateEvent)
+ {
+ adaptIntermediateEvent(builder, (JAXBIntermediateEvent)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBEndEvent)
+ {
+ adaptEndEvent(builder, (JAXBEndEvent)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBSubProcess)
+ {
+ adaptSubProcess(builder, (JAXBSubProcess)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBTask)
+ {
+ adaptTask(builder, (JAXBTask)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBExclusiveGateway)
+ {
+ adaptExclusiveGateway(builder, (JAXBExclusiveGateway)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBInclusiveGateway)
+ {
+ adaptInclusiveGateway(builder, (JAXBInclusiveGateway)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBComplexGateway)
+ {
+ adaptComplexGateway(builder, (JAXBComplexGateway)jaxbFlowObject);
+ }
+ else if (jaxbFlowObject instanceof JAXBParallelGateway)
+ {
+ adaptParallelGateway(builder, (JAXBParallelGateway)jaxbFlowObject);
+ }
+ else
+ {
+ throw new InvalidProcessException("Unsupported type: " + jaxbFlowObject);
+ }
+ }
+
+ Process proc = builder.getProcess();
+ return proc;
+ }
+
+ private void adaptExclusiveGateway(ProcessBuilder builder, JAXBExclusiveGateway jaxb)
+ {
+ builder.addExclusiveGateway(jaxb.getName());
+ for(JAXBFlow flow : jaxb.getOutFlows())
+ builder.addSequenceFlow(flow.getTargetName());
+ }
+
+ private void adaptInclusiveGateway(ProcessBuilder builder, JAXBInclusiveGateway jaxb)
+ {
+ builder.addInclusiveGateway(jaxb.getName());
+ for(JAXBFlow flow : jaxb.getOutFlows())
+ builder.addSequenceFlow(flow.getTargetName());
+ }
+
+ private void adaptComplexGateway(ProcessBuilder builder, JAXBComplexGateway jaxb)
+ {
+ builder.addComplexGateway(jaxb.getName());
+ for(JAXBFlow flow : jaxb.getOutFlows())
+ builder.addSequenceFlow(flow.getTargetName());
+ }
+
+ private void adaptParallelGateway(ProcessBuilder builder, JAXBParallelGateway jaxb)
+ {
+ builder.addParallelGateway(jaxb.getName());
+ for(JAXBFlow flow : jaxb.getOutFlows())
+ builder.addSequenceFlow(flow.getTargetName());
+ }
+
+ private void adaptTask(ProcessBuilder builder, JAXBTask jaxb)
+ {
+ String targetName = jaxb.getOutFlow().getTargetName();
+ builder.addTask(jaxb.getName()).addSequenceFlow(targetName);
+
+ JAXBHandler jaxbHandler = jaxb.getExecutionHandler();
+ if (jaxbHandler != null)
+ builder.addExecutionHandler(loadHandler(jaxbHandler.getClassName()));
+ }
+
+ private void adaptStartEvent(ProcessBuilder builder, JAXBStartEvent jaxb)
+ {
+ String targetName = jaxb.getOutFlow().getTargetName();
+ builder.addStartEvent().addSequenceFlow(targetName);
+ }
+
+ private void adaptIntermediateEvent(ProcessBuilder builder, JAXBIntermediateEvent jaxb)
+ {
+ String targetName = jaxb.getOutFlow().getTargetName();
+ builder.addItermediateEvent(jaxb.getName()).addSequenceFlow(targetName);
+ }
+
+ private void adaptEndEvent(ProcessBuilder builder, JAXBEndEvent jaxb)
+ {
+ builder.addEndEvent(jaxb.getName());
+ }
+
+ private void adaptSubProcess(ProcessBuilder builder, JAXBSubProcess jaxb)
+ {
+ throw new NotImplementedException();
+ }
+
+ private Class<?> loadHandler(String className)
+ {
+ try
+ {
+ ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
+ return ctxLoader.loadClass(className);
+ }
+ catch (ClassNotFoundException e)
+ {
+ throw new IllegalStateException("Cannot load handler class: " + className);
+ }
+ }
+}
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessMarshaller.java (from rev 1661, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessMarshaller.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessMarshaller.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessMarshaller.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,62 @@
+/*
+ * 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.jboss.bpm.dialect.api10;
+
+// $Id$
+
+import java.io.IOException;
+import java.io.Writer;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Marshaller;
+
+import org.jboss.bpm.dialect.api10.model.JAXBProcess;
+import org.jboss.bpm.dialect.api10.model.ObjectFactory;
+
+
+/**
+ * A JAXB marshaller for a Process
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ProcessMarshaller
+{
+ public void marshallProcess(JAXBProcess proc, Writer out) throws JAXBException, IOException
+ {
+ JAXBContext jaxbContext = JAXBContext.newInstance(ObjectFactory.class);
+ Marshaller marshaller = jaxbContext.createMarshaller();
+ marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
+ marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
+
+ marshaller.marshal(proc, out);
+
+ // Add xmlns:xsi to the top level element and remove it from all others
+ // StringWriter strwr = new StringWriter();
+ // marshaller.marshal(proc, strwr);
+ // String str = strwr.toString();
+ // String xsi = " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"";
+ // str = new StringBuilder(str.replace(xsi, "")).insert(str.indexOf(">"), xsi).toString();
+ // out.write(str);
+ }
+}
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java (from rev 1661, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessUnmarshaller.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,52 @@
+/*
+ * 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.jboss.bpm.dialect.api10;
+
+// $Id$
+
+import java.io.Reader;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+
+import org.jboss.bpm.dialect.api10.model.JAXBProcess;
+import org.jboss.bpm.dialect.api10.model.ObjectFactory;
+
+
+/**
+ * A JAXB unmarshaller for a Process
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ProcessUnmarshaller
+{
+ public JAXBProcess unmarshallProcess(Reader xml) throws JAXBException
+ {
+ JAXBContext jaxbContext = JAXBContext.newInstance(ObjectFactory.class);
+ Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
+ unmarshaller.setProperty("com.sun.xml.bind.ObjectFactory",new ObjectFactory());
+ JAXBProcess proc = (JAXBProcess)unmarshaller.unmarshal(xml);
+ return proc;
+ }
+}
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model (from rev 1661, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model)
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBActivity.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBActivity.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBActivity.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,60 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * An activity is a generic term for work that a company or organization performs via business processes.
- * An activity can be atomic or non-atomic (compound).
- * The types of activities that are a part of a Process Model are: Process, Sub-Process, and Task.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="Activity")
-public class JAXBActivity extends JAXBFlowObject
-{
- private String name;
-
- /**
- * Get the name
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * Set the name.
- * Note, this MUST NOT leak into the public API.
- */
- @XmlAttribute(required = true)
- public void setName(String name)
- {
- this.name = name;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBActivity.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBActivity.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBActivity.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBActivity.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,60 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * An activity is a generic term for work that a company or organization performs via business processes.
+ * An activity can be atomic or non-atomic (compound).
+ * The types of activities that are a part of a Process Model are: Process, Sub-Process, and Task.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="Activity")
+public class JAXBActivity extends JAXBFlowObject
+{
+ private String name;
+
+ /**
+ * Get the name
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the name.
+ * Note, this MUST NOT leak into the public API.
+ */
+ @XmlAttribute(required = true)
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBComplexGateway.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBComplexGateway.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBComplexGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,42 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlType;
-
-
-// $Id$
-
-/**
- * A Complex Gateway handles situations that are not easily handled through the other types of Gateways.
- *
- * Complex Gateways can also be used to combine a set of linked simple Gateways into a single,
- * more compact situation. Modelers can provide complex expressions that determine the merging and/or
- * splitting behavior of the Gateway.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="ComplexGateway")
-public class JAXBComplexGateway extends JAXBGateway
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBComplexGateway.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBComplexGateway.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBComplexGateway.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBComplexGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,42 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlType;
+
+
+// $Id$
+
+/**
+ * A Complex Gateway handles situations that are not easily handled through the other types of Gateways.
+ *
+ * Complex Gateways can also be used to combine a set of linked simple Gateways into a single,
+ * more compact situation. Modelers can provide complex expressions that determine the merging and/or
+ * splitting behavior of the Gateway.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="ComplexGateway")
+public class JAXBComplexGateway extends JAXBGateway
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEndEvent.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBEndEvent.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEndEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,60 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-// $Id$
-
-/**
- * As the name implies, the End Event indicates where a Process will end.
- *
- * In terms of Sequence Flow, the End Event ends the flow of the Process, and thus, will not have any outgoing Sequence Flow. An End Event can have a specific Result
- * that will appear as a marker within the center of the End Event shape. End Event Results are Message, Error, Compensation, Link, and Multiple.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "EndEvent")
-public class JAXBEndEvent extends JAXBEvent
-{
- private String name;
-
- /**
- * Get the name
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * Set the name.
- * Note, this MUST NOT leak into the public API.
- */
- @XmlAttribute(required = true)
- public void setName(String name)
- {
- this.name = name;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEndEvent.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBEndEvent.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEndEvent.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEndEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,60 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+// $Id$
+
+/**
+ * As the name implies, the End Event indicates where a Process will end.
+ *
+ * In terms of Sequence Flow, the End Event ends the flow of the Process, and thus, will not have any outgoing Sequence Flow. An End Event can have a specific Result
+ * that will appear as a marker within the center of the End Event shape. End Event Results are Message, Error, Compensation, Link, and Multiple.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "EndEvent")
+public class JAXBEndEvent extends JAXBEvent
+{
+ private String name;
+
+ /**
+ * Get the name
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the name.
+ * Note, this MUST NOT leak into the public API.
+ */
+ @XmlAttribute(required = true)
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEvent.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBEvent.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,92 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * An Event is something that “happens” during the course of a business process. These Events affect the flow of the Process and usually have a cause or an impact.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "AbstractEvent")
-public class JAXBEvent extends JAXBFlowObject
-{
- private JAXBExecutionHandler executionHandler;
- private JAXBFlowHandler flowHandler;
- private JAXBSignalHandler signalHandler;
-
- /**
- * Get the ExecutionHandler for this Event
- */
- public JAXBExecutionHandler getExecutionHandler()
- {
- return executionHandler;
- }
-
- /**
- * Set the ExecutionHandler for this Event
- */
- @XmlElement(name = "execution-handler", required = false)
- public void setExecutionHandler(JAXBExecutionHandler executionHandler)
- {
- this.executionHandler = executionHandler;
- }
-
- /**
- * Get the FlowHandler for this Event
- */
- public JAXBFlowHandler getFlowHandler()
- {
- return flowHandler;
- }
-
- /**
- * Set the FlowHandler for this Event
- */
- @XmlElement(name = "flow-handler", required = false)
- public void setFlowHandler(JAXBFlowHandler flowHandler)
- {
- this.flowHandler = flowHandler;
- }
-
- /**
- * Get the SignalHandler for this Event
- */
- public JAXBSignalHandler getSignalHandler()
- {
- return signalHandler;
- }
-
- /**
- * Set the SignalHandler for this Event
- */
- @XmlElement(name = "signal-handler", required = false)
- public void setSignalHandler(JAXBSignalHandler signalHandler)
- {
- this.signalHandler = signalHandler;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEvent.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBEvent.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEvent.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,92 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * An Event is something that “happens” during the course of a business process. These Events affect the flow of the Process and usually have a cause or an impact.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "AbstractEvent")
+public class JAXBEvent extends JAXBFlowObject
+{
+ private JAXBExecutionHandler executionHandler;
+ private JAXBFlowHandler flowHandler;
+ private JAXBSignalHandler signalHandler;
+
+ /**
+ * Get the ExecutionHandler for this Event
+ */
+ public JAXBExecutionHandler getExecutionHandler()
+ {
+ return executionHandler;
+ }
+
+ /**
+ * Set the ExecutionHandler for this Event
+ */
+ @XmlElement(name = "execution-handler", required = false)
+ public void setExecutionHandler(JAXBExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ /**
+ * Get the FlowHandler for this Event
+ */
+ public JAXBFlowHandler getFlowHandler()
+ {
+ return flowHandler;
+ }
+
+ /**
+ * Set the FlowHandler for this Event
+ */
+ @XmlElement(name = "flow-handler", required = false)
+ public void setFlowHandler(JAXBFlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ /**
+ * Get the SignalHandler for this Event
+ */
+ public JAXBSignalHandler getSignalHandler()
+ {
+ return signalHandler;
+ }
+
+ /**
+ * Set the SignalHandler for this Event
+ */
+ @XmlElement(name = "signal-handler", required = false)
+ public void setSignalHandler(JAXBSignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExclusiveGateway.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBExclusiveGateway.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExclusiveGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * A point in the workflow process where, based on a decision or workflow control data, one of several branches is chosen.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="ExclusiveGateway")
-public class JAXBExclusiveGateway extends JAXBGateway
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExclusiveGateway.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBExclusiveGateway.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExclusiveGateway.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExclusiveGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,38 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * A point in the workflow process where, based on a decision or workflow control data, one of several branches is chosen.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="ExclusiveGateway")
+public class JAXBExclusiveGateway extends JAXBGateway
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExecutionHandler.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBExecutionHandler.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExecutionHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * Implement to make the FlowObject executable
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "ExecutionHandler")
-public class JAXBExecutionHandler extends JAXBHandler
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExecutionHandler.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBExecutionHandler.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExecutionHandler.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBExecutionHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,38 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * Implement to make the FlowObject executable
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "ExecutionHandler")
+public class JAXBExecutionHandler extends JAXBHandler
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlow.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBFlow.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlow.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,68 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-// $Id$
-
-/**
- * A Flow is a graphical line connecting two objects in a BPD.
- *
- * There are two types of Flow: Sequence Flow and Message Flow, each with their own line style. Flow is also used in a generic sense (and lowercase) to describe how
- * Tokens will traverse Sequence Flow from the Start Event to an End Event.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "Flow")
-public class JAXBFlow
-{
- private String name;
- private String targetName;
-
- public String getName()
- {
- return name;
- }
-
- @XmlAttribute(required = false)
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String getTargetName()
- {
- return targetName;
- }
-
- /**
- * Set the target name Note, this MUST NOT leak into the public API.
- */
- @XmlAttribute(name = "to", required = true)
- public void setTargetName(String targetName)
- {
- this.targetName = targetName;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlow.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBFlow.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlow.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlow.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,68 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+// $Id$
+
+/**
+ * A Flow is a graphical line connecting two objects in a BPD.
+ *
+ * There are two types of Flow: Sequence Flow and Message Flow, each with their own line style. Flow is also used in a generic sense (and lowercase) to describe how
+ * Tokens will traverse Sequence Flow from the Start Event to an End Event.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "Flow")
+public class JAXBFlow
+{
+ private String name;
+ private String targetName;
+
+ public String getName()
+ {
+ return name;
+ }
+
+ @XmlAttribute(required = false)
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String getTargetName()
+ {
+ return targetName;
+ }
+
+ /**
+ * Set the target name Note, this MUST NOT leak into the public API.
+ */
+ @XmlAttribute(name = "to", required = true)
+ public void setTargetName(String targetName)
+ {
+ this.targetName = targetName;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowHandler.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBFlowHandler.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * Implement to handle the outgoing Flows for an FlowObject
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "FlowHandler")
-public class JAXBFlowHandler extends JAXBHandler
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowHandler.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBFlowHandler.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowHandler.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,38 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * Implement to handle the outgoing Flows for an FlowObject
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "FlowHandler")
+public class JAXBFlowHandler extends JAXBHandler
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowObject.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBFlowObject.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowObject.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id: $
-
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * A Flow Object is one of the set of following graphical objects: Event, Activity, and Gateway.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "FlowObject")
-public class JAXBFlowObject
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowObject.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBFlowObject.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowObject.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBFlowObject.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,38 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id: $
+
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * A Flow Object is one of the set of following graphical objects: Event, Activity, and Gateway.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "FlowObject")
+public class JAXBFlowObject
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBGateway.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBGateway.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,130 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * Gateways are modelling elements that are used to control how Sequence Flow interact as they converge and diverge within a Process. If the flow does not need to be
- * controlled, then a Gateway is not needed.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "Gateway")
-public class JAXBGateway extends JAXBFlowObject
-{
- private String name;
- private JAXBExecutionHandler executionHandler;
- private JAXBFlowHandler flowHandler;
- private JAXBSignalHandler signalHandler;
-
- @XmlElements( {
- @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
- @XmlElement(name = "message", type = JAXBMessageFlow.class)
- })
- private List<JAXBFlow> outFlows = new ArrayList<JAXBFlow>();
-
- public String getName()
- {
- return name;
- }
-
- /**
- * Set the name.
- * Note, this MUST NOT leak into the public API.
- */
- @XmlAttribute(required = true)
- public void setName(String name)
- {
- this.name = name;
- }
-
- public List<JAXBFlow> getOutFlows()
- {
- return outFlows;
- }
-
- public void setOutFlow(List<JAXBFlow> outFlow)
- {
- this.outFlows = outFlow;
- }
-
- /**
- * Get the ExecutionHandler for this Event
- */
- public JAXBExecutionHandler getExecutionHandler()
- {
- return executionHandler;
- }
-
- /**
- * Set the ExecutionHandler for this Event
- */
- @XmlElement(name = "execution-handler", required = false)
- public void setExecutionHandler(JAXBExecutionHandler executionHandler)
- {
- this.executionHandler = executionHandler;
- }
-
- /**
- * Get the FlowHandler for this Event
- */
- public JAXBFlowHandler getFlowHandler()
- {
- return flowHandler;
- }
-
- /**
- * Set the FlowHandler for this Event
- */
- @XmlElement(name = "flow-handler", required = false)
- public void setFlowHandler(JAXBFlowHandler flowHandler)
- {
- this.flowHandler = flowHandler;
- }
-
- /**
- * Get the SignalHandler for this Event
- */
- public JAXBSignalHandler getSignalHandler()
- {
- return signalHandler;
- }
-
- /**
- * Set the SignalHandler for this Event
- */
- @XmlElement(name = "signal-handler", required = false)
- public void setSignalHandler(JAXBSignalHandler signalHandler)
- {
- this.signalHandler = signalHandler;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBGateway.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBGateway.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBGateway.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,130 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * Gateways are modelling elements that are used to control how Sequence Flow interact as they converge and diverge within a Process. If the flow does not need to be
+ * controlled, then a Gateway is not needed.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "Gateway")
+public class JAXBGateway extends JAXBFlowObject
+{
+ private String name;
+ private JAXBExecutionHandler executionHandler;
+ private JAXBFlowHandler flowHandler;
+ private JAXBSignalHandler signalHandler;
+
+ @XmlElements( {
+ @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
+ @XmlElement(name = "message", type = JAXBMessageFlow.class)
+ })
+ private List<JAXBFlow> outFlows = new ArrayList<JAXBFlow>();
+
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the name.
+ * Note, this MUST NOT leak into the public API.
+ */
+ @XmlAttribute(required = true)
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public List<JAXBFlow> getOutFlows()
+ {
+ return outFlows;
+ }
+
+ public void setOutFlow(List<JAXBFlow> outFlow)
+ {
+ this.outFlows = outFlow;
+ }
+
+ /**
+ * Get the ExecutionHandler for this Event
+ */
+ public JAXBExecutionHandler getExecutionHandler()
+ {
+ return executionHandler;
+ }
+
+ /**
+ * Set the ExecutionHandler for this Event
+ */
+ @XmlElement(name = "execution-handler", required = false)
+ public void setExecutionHandler(JAXBExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ /**
+ * Get the FlowHandler for this Event
+ */
+ public JAXBFlowHandler getFlowHandler()
+ {
+ return flowHandler;
+ }
+
+ /**
+ * Set the FlowHandler for this Event
+ */
+ @XmlElement(name = "flow-handler", required = false)
+ public void setFlowHandler(JAXBFlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ /**
+ * Get the SignalHandler for this Event
+ */
+ public JAXBSignalHandler getSignalHandler()
+ {
+ return signalHandler;
+ }
+
+ /**
+ * Set the SignalHandler for this Event
+ */
+ @XmlElement(name = "signal-handler", required = false)
+ public void setSignalHandler(JAXBSignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBHandler.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBHandler.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,62 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * Implement to handle the outgoing Flows for an FlowObject
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "Handler")
-public abstract class JAXBHandler
-{
- private String className;
- private String beanRef;
-
- public String getClassName()
- {
- return className;
- }
-
- @XmlAttribute(name = "class", required = false)
- public void setClassName(String className)
- {
- this.className = className;
- }
-
- public String getBeanRef()
- {
- return beanRef;
- }
-
- @XmlAttribute(name = "bean", required = false)
- public void setBeanRef(String beanRef)
- {
- this.beanRef = beanRef;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBHandler.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBHandler.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBHandler.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,62 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * Implement to handle the outgoing Flows for an FlowObject
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "Handler")
+public abstract class JAXBHandler
+{
+ private String className;
+ private String beanRef;
+
+ public String getClassName()
+ {
+ return className;
+ }
+
+ @XmlAttribute(name = "class", required = false)
+ public void setClassName(String className)
+ {
+ this.className = className;
+ }
+
+ public String getBeanRef()
+ {
+ return beanRef;
+ }
+
+ @XmlAttribute(name = "bean", required = false)
+ public void setBeanRef(String beanRef)
+ {
+ this.beanRef = beanRef;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBInclusiveGateway.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBInclusiveGateway.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBInclusiveGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,40 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlType;
-
-
-// $Id$
-
-/**
- * This Decision represents a branching point where Alternatives are based on conditional expressions contained within outgoing Sequence Flow.
- * However, in this case, the True evaluation of one condition expression does not exclude the evaluation of other condition expressions.
- * All Sequence Flow with a True evaluation will be traversed by a Token.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="InclusiveGateway")
-public class JAXBInclusiveGateway extends JAXBGateway
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBInclusiveGateway.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBInclusiveGateway.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBInclusiveGateway.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBInclusiveGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,40 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlType;
+
+
+// $Id$
+
+/**
+ * This Decision represents a branching point where Alternatives are based on conditional expressions contained within outgoing Sequence Flow.
+ * However, in this case, the True evaluation of one condition expression does not exclude the evaluation of other condition expressions.
+ * All Sequence Flow with a True evaluation will be traversed by a Token.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="InclusiveGateway")
+public class JAXBInclusiveGateway extends JAXBGateway
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBIntermediateEvent.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBIntermediateEvent.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBIntermediateEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,82 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-
-// $Id$
-
-/**
- * An Intermediate Event is an Event that occurs after a Process has been started.
- *
- * It will affect the Flow of the Process, but will not start or (directly) terminate the Process.
- * An Intermediate Event will show where messages or delays are expected within the Process,
- * disrupt the Normal Flow through exception handling, or show the extra flow required for compensating a transaction.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="ItermediateEvent")
-public class JAXBIntermediateEvent extends JAXBEvent
-{
- private String name;
-
- @XmlElements( {
- @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
- @XmlElement(name = "message", type = JAXBMessageFlow.class)
- })
- private JAXBFlow outFlow;
-
- public String getName()
- {
- return name;
- }
-
- /**
- * Set the name.
- * Note, this MUST NOT leak into the public API.
- */
- @XmlAttribute(required = true)
- public void setName(String name)
- {
- if (this.name != null)
- throw new IllegalStateException("Cannot rename: " + name);
-
- this.name = name;
- }
-
- public JAXBFlow getOutFlow()
- {
- return outFlow;
- }
-
- @XmlTransient
- public void setOutFlow(JAXBFlow outFlow)
- {
- this.outFlow = outFlow;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBIntermediateEvent.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBIntermediateEvent.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBIntermediateEvent.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBIntermediateEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,82 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlTransient;
+import javax.xml.bind.annotation.XmlType;
+
+
+// $Id$
+
+/**
+ * An Intermediate Event is an Event that occurs after a Process has been started.
+ *
+ * It will affect the Flow of the Process, but will not start or (directly) terminate the Process.
+ * An Intermediate Event will show where messages or delays are expected within the Process,
+ * disrupt the Normal Flow through exception handling, or show the extra flow required for compensating a transaction.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="ItermediateEvent")
+public class JAXBIntermediateEvent extends JAXBEvent
+{
+ private String name;
+
+ @XmlElements( {
+ @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
+ @XmlElement(name = "message", type = JAXBMessageFlow.class)
+ })
+ private JAXBFlow outFlow;
+
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the name.
+ * Note, this MUST NOT leak into the public API.
+ */
+ @XmlAttribute(required = true)
+ public void setName(String name)
+ {
+ if (this.name != null)
+ throw new IllegalStateException("Cannot rename: " + name);
+
+ this.name = name;
+ }
+
+ public JAXBFlow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ @XmlTransient
+ public void setOutFlow(JAXBFlow outFlow)
+ {
+ this.outFlow = outFlow;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBMessageFlow.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBMessageFlow.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBMessageFlow.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,39 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * A Sequence Flow is a solid graphical line that is used to show the order that Activities will be performed in a Process.
- * Each Flow has only one source and only one target.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="MessageFlow")
-public class JAXBMessageFlow extends JAXBFlow
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBMessageFlow.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBMessageFlow.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBMessageFlow.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBMessageFlow.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,39 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * A Sequence Flow is a solid graphical line that is used to show the order that Activities will be performed in a Process.
+ * Each Flow has only one source and only one target.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="MessageFlow")
+public class JAXBMessageFlow extends JAXBFlow
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBParallelGateway.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBParallelGateway.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBParallelGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlType;
-
-
-// $Id$
-
-/**
- * Parallel Gateway is required when two or more Activities need to be executed in parallel.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="ParallelGateway")
-public class JAXBParallelGateway extends JAXBGateway
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBParallelGateway.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBParallelGateway.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBParallelGateway.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBParallelGateway.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,38 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlType;
+
+
+// $Id$
+
+/**
+ * Parallel Gateway is required when two or more Activities need to be executed in parallel.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="ParallelGateway")
+public class JAXBParallelGateway extends JAXBGateway
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBProcess.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBProcess.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBProcess.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,64 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A Process is any Activity performed within a company or organization.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "Process")
-@XmlRootElement(name = "process")
-public class JAXBProcess extends JAXBActivity
-{
- @XmlElements( {
- @XmlElement(name = "start", type = JAXBStartEvent.class),
- @XmlElement(name = "event", type = JAXBIntermediateEvent.class),
- @XmlElement(name = "task", type = JAXBTask.class),
- @XmlElement(name = "exclusive-gateway", type = JAXBExclusiveGateway.class),
- @XmlElement(name = "inclusive-gateway", type = JAXBInclusiveGateway.class),
- @XmlElement(name = "complex-gateway", type = JAXBComplexGateway.class),
- @XmlElement(name = "parallel-gateway", type = JAXBParallelGateway.class),
- @XmlElement(name = "sub-process", type = JAXBSubProcess.class),
- @XmlElement(name = "end", type = JAXBEndEvent.class)
- })
- private List<JAXBFlowObject> flowObjects = new ArrayList<JAXBFlowObject>();
-
- /**
- * Get the list of flow objects
- */
- public List<JAXBFlowObject> getFlowObjects()
- {
- return flowObjects;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBProcess.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBProcess.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBProcess.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBProcess.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,64 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * A Process is any Activity performed within a company or organization.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "Process")
+@XmlRootElement(name = "process")
+public class JAXBProcess extends JAXBActivity
+{
+ @XmlElements( {
+ @XmlElement(name = "start", type = JAXBStartEvent.class),
+ @XmlElement(name = "event", type = JAXBIntermediateEvent.class),
+ @XmlElement(name = "task", type = JAXBTask.class),
+ @XmlElement(name = "exclusive-gateway", type = JAXBExclusiveGateway.class),
+ @XmlElement(name = "inclusive-gateway", type = JAXBInclusiveGateway.class),
+ @XmlElement(name = "complex-gateway", type = JAXBComplexGateway.class),
+ @XmlElement(name = "parallel-gateway", type = JAXBParallelGateway.class),
+ @XmlElement(name = "sub-process", type = JAXBSubProcess.class),
+ @XmlElement(name = "end", type = JAXBEndEvent.class)
+ })
+ private List<JAXBFlowObject> flowObjects = new ArrayList<JAXBFlowObject>();
+
+ /**
+ * Get the list of flow objects
+ */
+ public List<JAXBFlowObject> getFlowObjects()
+ {
+ return flowObjects;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSequenceFlow.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBSequenceFlow.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSequenceFlow.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,39 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * A Sequence Flow is a solid graphical line that is used to show the order that Activities will be performed in a Process.
- * Each Flow has only one source and only one target.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name="SequenceFlow")
-public class JAXBSequenceFlow extends JAXBFlow
-{
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSequenceFlow.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBSequenceFlow.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSequenceFlow.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSequenceFlow.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,39 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * A Sequence Flow is a solid graphical line that is used to show the order that Activities will be performed in a Process.
+ * Each Flow has only one source and only one target.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name="SequenceFlow")
+public class JAXBSequenceFlow extends JAXBFlow
+{
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSignalHandler.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBSignalHandler.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSignalHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,39 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlType;
-
-
-
-//$Id$
-
-/**
- * Implement to get signals on enter and exit.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "SignalHandler")
-public class JAXBSignalHandler extends JAXBHandler
-{
-}
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSignalHandler.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBSignalHandler.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSignalHandler.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSignalHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,39 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlType;
+
+
+
+//$Id$
+
+/**
+ * Implement to get signals on enter and exit.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "SignalHandler")
+public class JAXBSignalHandler extends JAXBHandler
+{
+}
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBStartEvent.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBStartEvent.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBStartEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,56 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A Start Event indicates where a particular Process will start. In terms of Sequence Flow, the Start Event starts the Flow of the Process, and thus, will not have any
- * incoming Sequence Flow. A Start Event can have a Trigger that indicates how the Process starts: Message, Timer, Rule, Link, or Multiple.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "AbstractStartEvent")
-public class JAXBStartEvent extends JAXBEvent
-{
- @XmlElements( {
- @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
- @XmlElement(name = "message", type = JAXBMessageFlow.class) })
- private JAXBFlow outFlow;
-
- public JAXBFlow getOutFlow()
- {
- return outFlow;
- }
-
- @XmlTransient
- public void setOutFlow(JAXBFlow outFlow)
- {
- this.outFlow = outFlow;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBStartEvent.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBStartEvent.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBStartEvent.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBStartEvent.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,56 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlTransient;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * A Start Event indicates where a particular Process will start. In terms of Sequence Flow, the Start Event starts the Flow of the Process, and thus, will not have any
+ * incoming Sequence Flow. A Start Event can have a Trigger that indicates how the Process starts: Message, Timer, Rule, Link, or Multiple.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "AbstractStartEvent")
+public class JAXBStartEvent extends JAXBEvent
+{
+ @XmlElements( {
+ @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
+ @XmlElement(name = "message", type = JAXBMessageFlow.class) })
+ private JAXBFlow outFlow;
+
+ public JAXBFlow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ @XmlTransient
+ public void setOutFlow(JAXBFlow outFlow)
+ {
+ this.outFlow = outFlow;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSubProcess.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBSubProcess.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSubProcess.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,110 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A Sub-Process is Process that is included within another Process.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "SubProcess")
-public class JAXBSubProcess extends JAXBProcess
-{
- private JAXBExecutionHandler executionHandler;
- private JAXBFlowHandler flowHandler;
- private JAXBSignalHandler signalHandler;
-
- @XmlElements( {
- @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
- @XmlElement(name = "message", type = JAXBMessageFlow.class) })
- private JAXBFlow outFlow;
-
- public JAXBFlow getOutFlow()
- {
- return outFlow;
- }
-
- @XmlTransient
- public void setOutFlow(JAXBFlow outFlow)
- {
- this.outFlow = outFlow;
- }
-
- /**
- * Get the ExecutionHandler for this Event
- */
- public JAXBExecutionHandler getExecutionHandler()
- {
- return executionHandler;
- }
-
- /**
- * Set the ExecutionHandler for this Event
- */
- @XmlElement(name = "execution-handler", required = false)
- public void setExecutionHandler(JAXBExecutionHandler executionHandler)
- {
- this.executionHandler = executionHandler;
- }
-
- /**
- * Get the FlowHandler for this Event
- */
- public JAXBFlowHandler getFlowHandler()
- {
- return flowHandler;
- }
-
- /**
- * Set the FlowHandler for this Event
- */
- @XmlElement(name = "flow-handler", required = false)
- public void setFlowHandler(JAXBFlowHandler flowHandler)
- {
- this.flowHandler = flowHandler;
- }
-
- /**
- * Get the SignalHandler for this Event
- */
- public JAXBSignalHandler getSignalHandler()
- {
- return signalHandler;
- }
-
- /**
- * Set the SignalHandler for this Event
- */
- @XmlElement(name = "signal-handler", required = false)
- public void setSignalHandler(JAXBSignalHandler signalHandler)
- {
- this.signalHandler = signalHandler;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSubProcess.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBSubProcess.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSubProcess.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBSubProcess.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,110 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+//$Id$
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlTransient;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * A Sub-Process is Process that is included within another Process.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "SubProcess")
+public class JAXBSubProcess extends JAXBProcess
+{
+ private JAXBExecutionHandler executionHandler;
+ private JAXBFlowHandler flowHandler;
+ private JAXBSignalHandler signalHandler;
+
+ @XmlElements( {
+ @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
+ @XmlElement(name = "message", type = JAXBMessageFlow.class) })
+ private JAXBFlow outFlow;
+
+ public JAXBFlow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ @XmlTransient
+ public void setOutFlow(JAXBFlow outFlow)
+ {
+ this.outFlow = outFlow;
+ }
+
+ /**
+ * Get the ExecutionHandler for this Event
+ */
+ public JAXBExecutionHandler getExecutionHandler()
+ {
+ return executionHandler;
+ }
+
+ /**
+ * Set the ExecutionHandler for this Event
+ */
+ @XmlElement(name = "execution-handler", required = false)
+ public void setExecutionHandler(JAXBExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ /**
+ * Get the FlowHandler for this Event
+ */
+ public JAXBFlowHandler getFlowHandler()
+ {
+ return flowHandler;
+ }
+
+ /**
+ * Set the FlowHandler for this Event
+ */
+ @XmlElement(name = "flow-handler", required = false)
+ public void setFlowHandler(JAXBFlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ /**
+ * Get the SignalHandler for this Event
+ */
+ public JAXBSignalHandler getSignalHandler()
+ {
+ return signalHandler;
+ }
+
+ /**
+ * Set the SignalHandler for this Event
+ */
+ @XmlElement(name = "signal-handler", required = false)
+ public void setSignalHandler(JAXBSignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBTask.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBTask.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBTask.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,113 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-//$Id$
-
-/**
- * A Task is an Atomic Activity that is included within a Process.
- *
- * A Task is used when the work in the Process is not broken down to a finer level of Process Model detail. Generally, an end-user and/or an application are used to
- * perform the Task when it is executed.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-@XmlType(name = "Task")
-public class JAXBTask extends JAXBActivity
-{
- private JAXBExecutionHandler executionHandler;
- private JAXBFlowHandler flowHandler;
- private JAXBSignalHandler signalHandler;
-
- @XmlElements( {
- @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
- @XmlElement(name = "message", type = JAXBMessageFlow.class) })
- private JAXBFlow outFlow;
-
- public JAXBFlow getOutFlow()
- {
- return outFlow;
- }
-
- @XmlTransient
- public void setOutFlow(JAXBFlow outFlow)
- {
- this.outFlow = outFlow;
- }
-
- /**
- * Get the ExecutionHandler for this Event
- */
- public JAXBExecutionHandler getExecutionHandler()
- {
- return executionHandler;
- }
-
- /**
- * Set the ExecutionHandler for this Event
- */
- @XmlElement(name = "execution-handler", required = false)
- public void setExecutionHandler(JAXBExecutionHandler executionHandler)
- {
- this.executionHandler = executionHandler;
- }
-
- /**
- * Get the FlowHandler for this Event
- */
- public JAXBFlowHandler getFlowHandler()
- {
- return flowHandler;
- }
-
- /**
- * Set the FlowHandler for this Event
- */
- @XmlElement(name = "flow-handler", required = false)
- public void setFlowHandler(JAXBFlowHandler flowHandler)
- {
- this.flowHandler = flowHandler;
- }
-
- /**
- * Get the SignalHandler for this Event
- */
- public JAXBSignalHandler getSignalHandler()
- {
- return signalHandler;
- }
-
- /**
- * Set the SignalHandler for this Event
- */
- @XmlElement(name = "signal-handler", required = false)
- public void setSignalHandler(JAXBSignalHandler signalHandler)
- {
- this.signalHandler = signalHandler;
- }
-}
\ No newline at end of file
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBTask.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/JAXBTask.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBTask.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/JAXBTask.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,113 @@
+/*
+ * 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.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlTransient;
+import javax.xml.bind.annotation.XmlType;
+
+//$Id$
+
+/**
+ * A Task is an Atomic Activity that is included within a Process.
+ *
+ * A Task is used when the work in the Process is not broken down to a finer level of Process Model detail. Generally, an end-user and/or an application are used to
+ * perform the Task when it is executed.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+@XmlType(name = "Task")
+public class JAXBTask extends JAXBActivity
+{
+ private JAXBExecutionHandler executionHandler;
+ private JAXBFlowHandler flowHandler;
+ private JAXBSignalHandler signalHandler;
+
+ @XmlElements( {
+ @XmlElement(name = "sequence", type = JAXBSequenceFlow.class),
+ @XmlElement(name = "message", type = JAXBMessageFlow.class) })
+ private JAXBFlow outFlow;
+
+ public JAXBFlow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ @XmlTransient
+ public void setOutFlow(JAXBFlow outFlow)
+ {
+ this.outFlow = outFlow;
+ }
+
+ /**
+ * Get the ExecutionHandler for this Event
+ */
+ public JAXBExecutionHandler getExecutionHandler()
+ {
+ return executionHandler;
+ }
+
+ /**
+ * Set the ExecutionHandler for this Event
+ */
+ @XmlElement(name = "execution-handler", required = false)
+ public void setExecutionHandler(JAXBExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ /**
+ * Get the FlowHandler for this Event
+ */
+ public JAXBFlowHandler getFlowHandler()
+ {
+ return flowHandler;
+ }
+
+ /**
+ * Set the FlowHandler for this Event
+ */
+ @XmlElement(name = "flow-handler", required = false)
+ public void setFlowHandler(JAXBFlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ /**
+ * Get the SignalHandler for this Event
+ */
+ public JAXBSignalHandler getSignalHandler()
+ {
+ return signalHandler;
+ }
+
+ /**
+ * Set the SignalHandler for this Event
+ */
+ @XmlElement(name = "signal-handler", required = false)
+ public void setSignalHandler(JAXBSignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+}
\ No newline at end of file
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/ObjectFactory.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/ObjectFactory.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/ObjectFactory.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,131 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2008.07.11 at 09:21:08 AM CEST
-//
-
-package org.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlRegistry;
-
-
-/**
- * This object contains factory methods for each Java content interface and Java element interface generated in the api.bpm.jboss.org package.
- * <p>
- * An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist
- * of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of
- * these are provided in this class.
- *
- */
-@XmlRegistry
-public class ObjectFactory
-{
- /**
- * Create an instance of {@link ExclusiveGatewayImpl }
- *
- */
- public JAXBExclusiveGateway createExclusiveGateway()
- {
- return new JAXBExclusiveGateway();
- }
-
- /**
- * Create an instance of {@link TaskImpl }
- *
- */
- public JAXBTask createTask()
- {
- return new JAXBTask();
- }
-
- /**
- * Create an instance of {@link ProcessImpl }
- *
- */
- public JAXBProcess createProcess()
- {
- return new JAXBProcess();
- }
-
- /**
- * Create an instance of {@link ParallelGatewayImpl }
- *
- */
- public JAXBParallelGateway createParallelGateway()
- {
- return new JAXBParallelGateway();
- }
-
- /**
- * Create an instance of {@link MessageFlowImpl }
- *
- */
- public JAXBMessageFlow createMessageFlow()
- {
- return new JAXBMessageFlow();
- }
-
- /**
- * Create an instance of {@link EndEventImpl }
- *
- */
- public JAXBEndEvent createEndEvent()
- {
- return new JAXBEndEvent();
- }
-
- /**
- * Create an instance of {@link SubProcessImpl }
- *
- */
- public JAXBSubProcess createSubProcess()
- {
- return new JAXBSubProcess();
- }
-
- /**
- * Create an instance of {@link SequenceFlowImpl }
- *
- */
- public JAXBSequenceFlow createSequenceFlow()
- {
- return new JAXBSequenceFlow();
- }
-
- /**
- * Create an instance of {@link ComplexGatewayImpl }
- *
- */
- public JAXBComplexGateway createComplexGateway()
- {
- return new JAXBComplexGateway();
- }
-
- /**
- * Create an instance of {@link InclusiveGatewayImpl }
- *
- */
- public JAXBInclusiveGateway createInclusiveGateway()
- {
- return new JAXBInclusiveGateway();
- }
-
- /**
- * Create an instance of {@link IntermediateEventImpl }
- *
- */
- public JAXBIntermediateEvent createItermediateEvent()
- {
- return new JAXBIntermediateEvent();
- }
-
- /**
- * Create an instance of {@link StartEventImpl }
- *
- */
- public JAXBStartEvent createStartEvent()
- {
- return new JAXBStartEvent();
- }
-}
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/ObjectFactory.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/ObjectFactory.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/ObjectFactory.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/ObjectFactory.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,131 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.11 at 09:21:08 AM CEST
+//
+
+package org.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each Java content interface and Java element interface generated in the api.bpm.jboss.org package.
+ * <p>
+ * An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist
+ * of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of
+ * these are provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory
+{
+ /**
+ * Create an instance of {@link ExclusiveGatewayImpl }
+ *
+ */
+ public JAXBExclusiveGateway createExclusiveGateway()
+ {
+ return new JAXBExclusiveGateway();
+ }
+
+ /**
+ * Create an instance of {@link TaskImpl }
+ *
+ */
+ public JAXBTask createTask()
+ {
+ return new JAXBTask();
+ }
+
+ /**
+ * Create an instance of {@link ProcessImpl }
+ *
+ */
+ public JAXBProcess createProcess()
+ {
+ return new JAXBProcess();
+ }
+
+ /**
+ * Create an instance of {@link ParallelGatewayImpl }
+ *
+ */
+ public JAXBParallelGateway createParallelGateway()
+ {
+ return new JAXBParallelGateway();
+ }
+
+ /**
+ * Create an instance of {@link MessageFlowImpl }
+ *
+ */
+ public JAXBMessageFlow createMessageFlow()
+ {
+ return new JAXBMessageFlow();
+ }
+
+ /**
+ * Create an instance of {@link EndEventImpl }
+ *
+ */
+ public JAXBEndEvent createEndEvent()
+ {
+ return new JAXBEndEvent();
+ }
+
+ /**
+ * Create an instance of {@link SubProcessImpl }
+ *
+ */
+ public JAXBSubProcess createSubProcess()
+ {
+ return new JAXBSubProcess();
+ }
+
+ /**
+ * Create an instance of {@link SequenceFlowImpl }
+ *
+ */
+ public JAXBSequenceFlow createSequenceFlow()
+ {
+ return new JAXBSequenceFlow();
+ }
+
+ /**
+ * Create an instance of {@link ComplexGatewayImpl }
+ *
+ */
+ public JAXBComplexGateway createComplexGateway()
+ {
+ return new JAXBComplexGateway();
+ }
+
+ /**
+ * Create an instance of {@link InclusiveGatewayImpl }
+ *
+ */
+ public JAXBInclusiveGateway createInclusiveGateway()
+ {
+ return new JAXBInclusiveGateway();
+ }
+
+ /**
+ * Create an instance of {@link IntermediateEventImpl }
+ *
+ */
+ public JAXBIntermediateEvent createItermediateEvent()
+ {
+ return new JAXBIntermediateEvent();
+ }
+
+ /**
+ * Create an instance of {@link StartEventImpl }
+ *
+ */
+ public JAXBStartEvent createStartEvent()
+ {
+ return new JAXBStartEvent();
+ }
+}
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/package-info.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/package-info.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/package-info.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -1,26 +0,0 @@
-/*
- * 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.
- */
-@XmlSchema(namespace="urn:api.bpm.jboss:jpdl-0.1")
-package org.jboss.bpm.dialect.jaxb.model;
-
-import javax.xml.bind.annotation.XmlSchema;
-
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/package-info.java (from rev 1662, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/model/package-info.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/package-info.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/api10/model/package-info.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -0,0 +1,26 @@
+/*
+ * 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.
+ */
+@XmlSchema(namespace="urn:api.bpm.jboss:jpdl-0.1")
+package org.jboss.bpm.dialect.api10.model;
+
+import javax.xml.bind.annotation.XmlSchema;
+
Property changes on: api/trunk/modules/dialects/jpdl32
___________________________________________________________________
Name: svn:ignore
+ target
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -32,7 +32,7 @@
import org.jboss.bpm.InvalidProcessException;
import org.jboss.bpm.client.DialectHandler;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32ProcessDefinition;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32ProcessDefinition;
import org.jboss.bpm.model.Process;
/**
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -26,13 +26,13 @@
import java.util.List;
import org.jboss.bpm.InvalidProcessException;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32Action;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32EndState;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32Event;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32ProcessDefinition;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32StartState;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32State;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32Transition;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32Action;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32EndState;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32Event;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32ProcessDefinition;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32StartState;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32State;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32Transition;
import org.jboss.bpm.model.Process;
import org.jboss.bpm.model.ProcessBuilder;
import org.jboss.bpm.model.ProcessBuilderFactory;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -29,8 +29,8 @@
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
-import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32ProcessDefinition;
-import org.jboss.bpm.dialect.jpdl32.jaxb.ObjectFactory;
+import org.jboss.bpm.dialect.jpdl32.model.JPDL32ProcessDefinition;
+import org.jboss.bpm.dialect.jpdl32.model.ObjectFactory;
/**
* A JAXB unmarshaller for a Process
Copied: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model (from rev 1662, api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb)
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/BindingType.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BindingType.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/BindingType.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/BooleanType.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BooleanType.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/BooleanType.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/ConfigType.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ConfigType.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/ConfigType.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/Delegation.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/Delegation.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/Delegation.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Action.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Action.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Action.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Assignment.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Assignment.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Assignment.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32CancelTimer.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CancelTimer.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32CancelTimer.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32CreateTimer.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CreateTimer.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32CreateTimer.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Decision.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Decision.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Decision.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32EndState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32EndState.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32EndState.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Event.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Event.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Event.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ExceptionHandler.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ExceptionHandler.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ExceptionHandler.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Fork.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Fork.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Fork.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Join.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Join.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Join.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Mail.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Mail.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Mail.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32MailNode.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32MailNode.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32MailNode.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Node.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Node.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Node.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ProcessDefinition.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessDefinition.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ProcessDefinition.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ProcessState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessState.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32ProcessState.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.math.BigInteger;
import java.util.ArrayList;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Script.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Script.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Script.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32StartState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32StartState.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32StartState.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32State.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32State.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32State.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32SuperState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32SuperState.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32SuperState.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Swimlane.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Swimlane.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Swimlane.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Task.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Task.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Task.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32TaskNode.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32TaskNode.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32TaskNode.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Timer.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Timer.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Timer.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Transition.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Transition.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Transition.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Variable.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Variable.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/JPDL32Variable.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import java.util.ArrayList;
import java.util.List;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/ObjectFactory.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ObjectFactory.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/ObjectFactory.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,7 +6,7 @@
//
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
Modified: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/package-info.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/package-info.java 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/model/package-info.java 2008-07-17 09:27:02 UTC (rev 1663)
@@ -6,4 +6,4 @@
//
@javax.xml.bind.annotation.XmlSchema(namespace = "urn:jbpm.org:jpdl-3.2", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
-package org.jboss.bpm.dialect.jpdl32.jaxb;
+package org.jboss.bpm.dialect.jpdl32.model;
Modified: api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
===================================================================
--- api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-17 09:21:11 UTC (rev 1662)
+++ api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-17 09:27:02 UTC (rev 1663)
@@ -23,7 +23,7 @@
</map>
</property>
</bean>
- <bean name="jBPMDialectHandlerAPI10" class="org.jboss.bpm.dialect.jaxb.DialectHandlerImpl"/>
+ <bean name="jBPMDialectHandlerAPI10" class="org.jboss.bpm.dialect.api10.DialectHandlerImpl"/>
<bean name="jBPMDialectHandlerJPDL32" class="org.jboss.bpm.dialect.jpdl32.DialectHandlerImpl"/>
<!-- The ExecutionManager -->
15 years, 11 months
JBoss JBPM SVN: r1662 - in api/trunk: modules/api/src/main/java/org/jboss/bpm/client and 20 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 05:21:11 -0400 (Thu, 17 Jul 2008)
New Revision: 1662
Added:
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/DialectHandler.java
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/DialectHandlerImpl.java
api/trunk/modules/dialects/jpdl32/
api/trunk/modules/dialects/jpdl32/pom.xml
api/trunk/modules/dialects/jpdl32/src/
api/trunk/modules/dialects/jpdl32/src/main/
api/trunk/modules/dialects/jpdl32/src/main/java/
api/trunk/modules/dialects/jpdl32/src/main/java/org/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BindingType.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BooleanType.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ConfigType.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/Delegation.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Action.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Assignment.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CancelTimer.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CreateTimer.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Decision.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32EndState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Event.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ExceptionHandler.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Fork.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Join.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Mail.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32MailNode.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Node.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessDefinition.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Script.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32StartState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32State.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32SuperState.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Swimlane.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Task.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32TaskNode.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Timer.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Transition.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Variable.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ObjectFactory.java
api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/package-info.java
api/trunk/modules/dialects/jpdl32/src/main/resources/
api/trunk/modules/dialects/jpdl32/src/main/resources/jaxb-bindings.xml
api/trunk/modules/dialects/jpdl32/src/main/resources/jpdl-3.2.xsd
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/ProcessManagerImpl.java
Removed:
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessManagerImpl.java
api/trunk/modules/dialects/jaxb/src/test/
Modified:
api/trunk/.classpath
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java
api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java
api/trunk/modules/dialects/jaxb/pom.xml
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java
api/trunk/modules/testsuite/pom.xml
api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
api/trunk/pom.xml
Log:
Add jpdl-3.2 dialect
Modified: api/trunk/.classpath
===================================================================
--- api/trunk/.classpath 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/.classpath 2008-07-17 09:21:11 UTC (rev 1662)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="modules/api/target/classes" path="modules/api/src/main/java"/>
+ <classpathentry kind="src" path="modules/dialects/jpdl32/src/main/java"/>
<classpathentry kind="src" path="modules/impl/src/main/java"/>
<classpathentry kind="src" output="modules/dialects/jaxb/target/classes" path="modules/dialects/jaxb/src/main/java"/>
<classpathentry kind="src" output="modules/testsuite/target/test-classes" path="modules/testsuite/src/test/java"/>
Added: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/DialectHandler.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/DialectHandler.java (rev 0)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/DialectHandler.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,49 @@
+/*
+ * 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.jboss.bpm.client;
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.jboss.bpm.model.Process;
+
+// $Id$
+
+/**
+ * The DialectHandler converts a supported dialect to the internal Process model.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public interface DialectHandler
+{
+ /**
+ * Create a {@link Process} from a descriptor.
+ */
+ Process createProcess(String pXML);
+
+ /**
+ * Create a {@link Process} from a descriptor URL.
+ */
+ Process createProcess(URL pURL) throws IOException;
+
+}
Property changes on: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/DialectHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -26,7 +26,9 @@
import java.io.IOException;
import java.net.URL;
import java.util.Collections;
+import java.util.HashMap;
import java.util.HashSet;
+import java.util.Map;
import java.util.Set;
import org.apache.commons.logging.Log;
@@ -47,6 +49,8 @@
// Injected through the MC
protected ProcessEngine engine;
+ // The map of registerd dialect handlers
+ protected Map<String, DialectHandler> dialectHandlers = new HashMap<String, DialectHandler>();
// The set of process definitions
private Set<Process> procs = new HashSet<Process>();
@@ -83,7 +87,7 @@
if (engine.isPrepareForShutdown())
throw new EngineShutdownException("Cannot create new Process while engine is shutting down");
- Process proc = createProcessOverride(procDescriptor);
+ Process proc = getDialectHandler().createProcess(procDescriptor);
registerProcess(proc);
return proc;
}
@@ -96,22 +100,12 @@
if (engine.isPrepareForShutdown())
throw new EngineShutdownException("Cannot create new Process while engine is shutting down");
- Process proc = createProcessOverride(procURL);
+ Process proc = getDialectHandler().createProcess(procURL);
registerProcess(proc);
return proc;
}
/**
- * Override to implement Process creation
- */
- protected abstract Process createProcessOverride(String pXML);
-
- /**
- * Override to implement Process creation
- */
- protected abstract Process createProcessOverride(URL pURL) throws IOException;
-
- /**
* Get the set of registered Processes
*/
public Set<Process> getProcesses()
@@ -153,4 +147,15 @@
{
procs.remove(proc.getName());
}
+
+ // Get the handler for the current dialect
+ private DialectHandler getDialectHandler()
+ {
+ String dialect = System.getProperty("jbpm.dialect", "api10");
+ DialectHandler dialectHandler = dialectHandlers.get(dialect);
+ if (dialectHandler == null)
+ throw new IllegalStateException("No dialect handler registered for: " + dialect);
+
+ return dialectHandler;
+ }
}
\ No newline at end of file
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -111,63 +111,4 @@
* Add an {@link SignalHandler} with a given Class
*/
ProcessBuilder addSignalHandler(Class<?> clazz);
-
- // ==============
-
- /**
- * Create a {@link Process}.
- */
- Process createProcess(String name);
-
- /**
- * Create a {@link SubProcess} with a given name
- */
- SubProcess createSubProcess(String name);
-
- /**
- * Create a {@link StartEvent}
- */
- StartEvent createStartEvent();
-
- /**
- * Create an {@link IntermediateEvent} with a given name
- */
- IntermediateEvent createIntermediateEvent(String name);
-
- /**
- * Create an {@link EndEvent} with a given name
- */
- EndEvent createEndEvent(String name);
-
- /**
- * Create a {@link Task} with a given name
- */
- Task createTask(String name);
-
- /**
- * Create an {@link ExclusiveGateway} with a given name
- */
- ExclusiveGateway createExclusiveGateway(String name);
-
- /**
- * Create an {@link InclusiveGateway} with a given name
- */
- InclusiveGateway createInclusiveGateway(String name);
-
- /**
- * Create a {@link ComplexGateway} with a given name
- */
- ComplexGateway createComplexGateway(String name);
-
- /**
- * Create a {@link ParallelGateway} with a given name
- */
- ParallelGateway createParallelGateway(String name);
-
- /**
- * Add a {@link FlowObject} create by one of the create methods.
- * @param fo
- * @return
- */
- FlowObject addFlowObject(FlowObject fo);
}
\ No newline at end of file
Modified: api/trunk/modules/dialects/jaxb/pom.xml
===================================================================
--- api/trunk/modules/dialects/jaxb/pom.xml 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/pom.xml 2008-07-17 09:21:11 UTC (rev 1662)
@@ -12,7 +12,7 @@
<!-- $Id$ -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <name>JBoss jBPM - API Dialect JAXB</name>
+ <name>JBoss jBPM - API Dialect API-1.0</name>
<groupId>org.jboss.jbpm</groupId>
<artifactId>jbpm-api-dialect-jaxb</artifactId>
<packaging>jar</packaging>
Copied: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/DialectHandlerImpl.java (from rev 1661, api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessManagerImpl.java)
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/DialectHandlerImpl.java (rev 0)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/DialectHandlerImpl.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,76 @@
+/*
+ * 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.jboss.bpm.dialect.jaxb;
+
+// $Id$
+
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.StringReader;
+import java.net.URL;
+
+import javax.xml.bind.JAXBException;
+
+import org.jboss.bpm.InvalidProcessException;
+import org.jboss.bpm.client.DialectHandler;
+import org.jboss.bpm.dialect.jaxb.model.JAXBProcess;
+import org.jboss.bpm.model.Process;
+
+/**
+ * The DialectHandler converts a supported dialect to the internal Process model.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class DialectHandlerImpl implements DialectHandler
+{
+
+ public Process createProcess(String pXML)
+ {
+ try
+ {
+ ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
+ JAXBProcess jaxbProc = unmarschaller.unmarshallProcess(new StringReader(pXML));
+ Process proc = new ProcessAdapter().adaptProcess(jaxbProc);
+ return proc;
+ }
+ catch (JAXBException ex)
+ {
+ throw new InvalidProcessException("Cannot unmarschall: " + pXML, ex);
+ }
+ }
+
+ public Process createProcess(URL pURL) throws IOException
+ {
+ try
+ {
+ ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
+ JAXBProcess jaxbProc = unmarschaller.unmarshallProcess(new InputStreamReader(pURL.openStream()));
+ Process proc = new ProcessAdapter().adaptProcess(jaxbProc);
+ return proc;
+ }
+ catch (JAXBException ex)
+ {
+ throw new InvalidProcessException("Cannot unmarschall: " + pURL, ex);
+ }
+ }
+}
\ No newline at end of file
Modified: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -30,7 +30,6 @@
import org.jboss.bpm.dialect.jaxb.model.JAXBExclusiveGateway;
import org.jboss.bpm.dialect.jaxb.model.JAXBFlow;
import org.jboss.bpm.dialect.jaxb.model.JAXBFlowObject;
-import org.jboss.bpm.dialect.jaxb.model.JAXBGateway;
import org.jboss.bpm.dialect.jaxb.model.JAXBHandler;
import org.jboss.bpm.dialect.jaxb.model.JAXBInclusiveGateway;
import org.jboss.bpm.dialect.jaxb.model.JAXBIntermediateEvent;
@@ -39,17 +38,9 @@
import org.jboss.bpm.dialect.jaxb.model.JAXBStartEvent;
import org.jboss.bpm.dialect.jaxb.model.JAXBSubProcess;
import org.jboss.bpm.dialect.jaxb.model.JAXBTask;
-import org.jboss.bpm.model.EndEvent;
-import org.jboss.bpm.model.Event;
-import org.jboss.bpm.model.FlowObject;
-import org.jboss.bpm.model.Gateway;
-import org.jboss.bpm.model.IntermediateEvent;
import org.jboss.bpm.model.Process;
import org.jboss.bpm.model.ProcessBuilder;
import org.jboss.bpm.model.ProcessBuilderFactory;
-import org.jboss.bpm.model.StartEvent;
-import org.jboss.bpm.model.SubProcess;
-import org.jboss.bpm.model.Task;
/**
* Adapt the JAXBProcess to the API Process
@@ -59,112 +50,113 @@
*/
public class ProcessAdapter
{
- private ProcessBuilder builder;
-
public Process adaptProcess(JAXBProcess jaxbProc)
{
- builder = ProcessBuilderFactory.newInstance().newProcessBuilder(jaxbProc.getName());
+ ProcessBuilder builder = ProcessBuilderFactory.newInstance().newProcessBuilder(jaxbProc.getName());
for (JAXBFlowObject jaxbFlowObject : jaxbProc.getFlowObjects())
{
- FlowObject apiFlowObject;
if (jaxbFlowObject instanceof JAXBStartEvent)
{
- StartEvent event = builder.createStartEvent();
- apiFlowObject = adaptStartEvent(event, (JAXBStartEvent)jaxbFlowObject);
+ adaptStartEvent(builder, (JAXBStartEvent)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBIntermediateEvent)
{
- IntermediateEvent event = builder.createIntermediateEvent(((JAXBIntermediateEvent)jaxbFlowObject).getName());
- apiFlowObject = adaptIntermediateEvent(event, (JAXBIntermediateEvent)jaxbFlowObject);
+ adaptIntermediateEvent(builder, (JAXBIntermediateEvent)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBEndEvent)
{
- EndEvent event = builder.createEndEvent(((JAXBEndEvent)jaxbFlowObject).getName());
- apiFlowObject = adaptEndEvent(event, (JAXBEndEvent)jaxbFlowObject);
+ adaptEndEvent(builder, (JAXBEndEvent)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBSubProcess)
{
- SubProcess subproc = builder.createSubProcess(((JAXBSubProcess)jaxbFlowObject).getName());
- apiFlowObject = adaptSubProcess(subproc, (JAXBSubProcess)jaxbFlowObject);
+ adaptSubProcess(builder, (JAXBSubProcess)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBTask)
{
- Task task = builder.createTask(((JAXBTask)jaxbFlowObject).getName());
- apiFlowObject = adaptTask(task, (JAXBTask)jaxbFlowObject);
+ adaptTask(builder, (JAXBTask)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBExclusiveGateway)
{
- Gateway gateway = builder.createExclusiveGateway(((JAXBGateway)jaxbFlowObject).getName());
- apiFlowObject = adaptGateway(gateway, (JAXBGateway)jaxbFlowObject);
+ adaptExclusiveGateway(builder, (JAXBExclusiveGateway)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBInclusiveGateway)
{
- Gateway gateway = builder.createInclusiveGateway(((JAXBGateway)jaxbFlowObject).getName());
- apiFlowObject = adaptGateway(gateway, (JAXBGateway)jaxbFlowObject);
+ adaptInclusiveGateway(builder, (JAXBInclusiveGateway)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBComplexGateway)
{
- Gateway gateway = builder.createComplexGateway(((JAXBGateway)jaxbFlowObject).getName());
- apiFlowObject = adaptGateway(gateway, (JAXBGateway)jaxbFlowObject);
+ adaptComplexGateway(builder, (JAXBComplexGateway)jaxbFlowObject);
}
else if (jaxbFlowObject instanceof JAXBParallelGateway)
{
- Gateway gateway = builder.createParallelGateway(((JAXBGateway)jaxbFlowObject).getName());
- apiFlowObject = adaptGateway(gateway, (JAXBGateway)jaxbFlowObject);
+ adaptParallelGateway(builder, (JAXBParallelGateway)jaxbFlowObject);
}
else
{
throw new InvalidProcessException("Unsupported type: " + jaxbFlowObject);
}
- builder.addFlowObject(apiFlowObject);
}
Process proc = builder.getProcess();
return proc;
}
- private Gateway adaptGateway(Gateway gateway, JAXBGateway jaxb)
+ private void adaptExclusiveGateway(ProcessBuilder builder, JAXBExclusiveGateway jaxb)
{
+ builder.addExclusiveGateway(jaxb.getName());
for(JAXBFlow flow : jaxb.getOutFlows())
- {
builder.addSequenceFlow(flow.getTargetName());
- }
- return gateway;
}
- private Task adaptTask(Task task, JAXBTask jaxb)
+ private void adaptInclusiveGateway(ProcessBuilder builder, JAXBInclusiveGateway jaxb)
{
+ builder.addInclusiveGateway(jaxb.getName());
+ for(JAXBFlow flow : jaxb.getOutFlows())
+ builder.addSequenceFlow(flow.getTargetName());
+ }
+
+ private void adaptComplexGateway(ProcessBuilder builder, JAXBComplexGateway jaxb)
+ {
+ builder.addComplexGateway(jaxb.getName());
+ for(JAXBFlow flow : jaxb.getOutFlows())
+ builder.addSequenceFlow(flow.getTargetName());
+ }
+
+ private void adaptParallelGateway(ProcessBuilder builder, JAXBParallelGateway jaxb)
+ {
+ builder.addParallelGateway(jaxb.getName());
+ for(JAXBFlow flow : jaxb.getOutFlows())
+ builder.addSequenceFlow(flow.getTargetName());
+ }
+
+ private void adaptTask(ProcessBuilder builder, JAXBTask jaxb)
+ {
String targetName = jaxb.getOutFlow().getTargetName();
- builder.addSequenceFlow(targetName);
+ builder.addTask(jaxb.getName()).addSequenceFlow(targetName);
JAXBHandler jaxbHandler = jaxb.getExecutionHandler();
if (jaxbHandler != null)
- {
builder.addExecutionHandler(loadHandler(jaxbHandler.getClassName()));
- }
- return task;
}
- private Event adaptStartEvent(StartEvent event, JAXBStartEvent jaxb)
+ private void adaptStartEvent(ProcessBuilder builder, JAXBStartEvent jaxb)
{
String targetName = jaxb.getOutFlow().getTargetName();
- builder.addSequenceFlow(targetName);
- return event;
+ builder.addStartEvent().addSequenceFlow(targetName);
}
- private Event adaptIntermediateEvent(IntermediateEvent event, JAXBIntermediateEvent jaxb)
+ private void adaptIntermediateEvent(ProcessBuilder builder, JAXBIntermediateEvent jaxb)
{
String targetName = jaxb.getOutFlow().getTargetName();
- builder.addSequenceFlow(targetName);
- return event;
+ builder.addItermediateEvent(jaxb.getName()).addSequenceFlow(targetName);
}
- private Event adaptEndEvent(EndEvent event, JAXBEndEvent jaxb)
+ private void adaptEndEvent(ProcessBuilder builder, JAXBEndEvent jaxb)
{
- return event;
+ builder.addEndEvent(jaxb.getName());
}
- private SubProcess adaptSubProcess(SubProcess subproc, JAXBSubProcess jaxb)
+ private void adaptSubProcess(ProcessBuilder builder, JAXBSubProcess jaxb)
{
throw new NotImplementedException();
}
Deleted: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessManagerImpl.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessManagerImpl.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessManagerImpl.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -1,88 +0,0 @@
-/*
- * 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.jboss.bpm.dialect.jaxb;
-
-// $Id$
-
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.StringReader;
-import java.net.URL;
-
-import javax.xml.bind.JAXBException;
-
-import org.jboss.bpm.InvalidProcessException;
-import org.jboss.bpm.client.ProcessEngine;
-import org.jboss.bpm.client.ProcessManager;
-import org.jboss.bpm.dialect.jaxb.model.JAXBProcess;
-import org.jboss.bpm.model.Process;
-
-/**
- * The process manager is the entry point to create, find and otherwise manage processes.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class ProcessManagerImpl extends ProcessManager
-{
- public void setProcessEngine(ProcessEngine engine)
- {
- this.engine = engine;
- }
-
- /**
- * Override to implement process definition creation
- */
- public Process createProcessOverride(String pXML)
- {
- try
- {
- ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
- JAXBProcess jaxbProc = unmarschaller.unmarshallProcess(new StringReader(pXML));
- Process proc = new ProcessAdapter().adaptProcess(jaxbProc);
- return proc;
- }
- catch (JAXBException ex)
- {
- throw new InvalidProcessException("Cannot unmarschall: " + pXML, ex);
- }
- }
-
- /**
- * Override to implement process definition creation
- */
- public Process createProcessOverride(URL pURL) throws IOException
- {
- try
- {
- ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
- JAXBProcess jaxbProc = unmarschaller.unmarshallProcess(new InputStreamReader(pURL.openStream()));
- Process proc = new ProcessAdapter().adaptProcess(jaxbProc);
- return proc;
- }
- catch (JAXBException ex)
- {
- throw new InvalidProcessException("Cannot unmarschall: " + pURL, ex);
- }
- }
-
-}
\ No newline at end of file
Added: api/trunk/modules/dialects/jpdl32/pom.xml
===================================================================
--- api/trunk/modules/dialects/jpdl32/pom.xml (rev 0)
+++ api/trunk/modules/dialects/jpdl32/pom.xml 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>JBoss jBPM - API Dialect jPDL-3.2</name>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-dialect-jpdl32</artifactId>
+ <packaging>jar</packaging>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-root</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <!-- Dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api</artifactId>
+ <version>${version}</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Property changes on: api/trunk/modules/dialects/jpdl32/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,76 @@
+/*
+ * 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.jboss.bpm.dialect.jpdl32;
+
+// $Id$
+
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.StringReader;
+import java.net.URL;
+
+import javax.xml.bind.JAXBException;
+
+import org.jboss.bpm.InvalidProcessException;
+import org.jboss.bpm.client.DialectHandler;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32ProcessDefinition;
+import org.jboss.bpm.model.Process;
+
+/**
+ * The DialectHandler converts a supported dialect to the internal Process model.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class DialectHandlerImpl implements DialectHandler
+{
+
+ public Process createProcess(String pXML)
+ {
+ try
+ {
+ ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
+ JPDL32ProcessDefinition jaxbProc = unmarschaller.unmarshallProcess(new StringReader(pXML));
+ Process proc = new ProcessDefinitionAdapter().adaptProcessDefinition(jaxbProc);
+ return proc;
+ }
+ catch (JAXBException ex)
+ {
+ throw new InvalidProcessException("Cannot unmarschall: " + pXML, ex);
+ }
+ }
+
+ public Process createProcess(URL pURL) throws IOException
+ {
+ try
+ {
+ ProcessUnmarshaller unmarschaller = new ProcessUnmarshaller();
+ JPDL32ProcessDefinition jaxbProc = unmarschaller.unmarshallProcess(new InputStreamReader(pURL.openStream()));
+ Process proc = new ProcessDefinitionAdapter().adaptProcessDefinition(jaxbProc);
+ return proc;
+ }
+ catch (JAXBException ex)
+ {
+ throw new InvalidProcessException("Cannot unmarschall: " + pURL, ex);
+ }
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/DialectHandlerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,141 @@
+/*
+ * 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.jboss.bpm.dialect.jpdl32;
+
+// $Id$
+
+import java.util.List;
+
+import org.jboss.bpm.InvalidProcessException;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32Action;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32EndState;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32Event;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32ProcessDefinition;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32StartState;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32State;
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32Transition;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+import org.jboss.bpm.runtime.ExecutionHandler;
+
+/**
+ * Adapt the jpdl-3.2 ProcessDefinition to the API Process
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class ProcessDefinitionAdapter
+{
+ public Process adaptProcessDefinition(JPDL32ProcessDefinition jpdlProcDef)
+ {
+ ProcessBuilder builder = ProcessBuilderFactory.newInstance().newProcessBuilder(jpdlProcDef.getName());
+ for (Object jpdlObj : jpdlProcDef.getDescriptionOrSwimlaneOrStartState())
+ {
+ if (jpdlObj instanceof JPDL32StartState)
+ {
+ adaptStartState(builder, (JPDL32StartState)jpdlObj);
+ }
+ else if (jpdlObj instanceof JPDL32State)
+ {
+ adaptState(builder, (JPDL32State)jpdlObj);
+ }
+ else if (jpdlObj instanceof JPDL32EndState)
+ {
+ adaptEndState(builder, (JPDL32EndState)jpdlObj);
+ }
+ else
+ {
+ throw new InvalidProcessException("Unsupported type: " + jpdlObj);
+ }
+ }
+
+ Process proc = builder.getProcess();
+ return proc;
+ }
+
+ private void adaptStartState(ProcessBuilder builder, JPDL32StartState jpdlStart)
+ {
+ builder.addStartEvent();
+ adaptTransitions(builder, jpdlStart.getDescriptionOrTaskOrTransition());
+ }
+
+ private void adaptEndState(ProcessBuilder builder, JPDL32EndState jpdlEnd)
+ {
+ builder.addEndEvent(jpdlEnd.getName());
+ }
+
+ private void adaptState(ProcessBuilder builder, JPDL32State jpdlState)
+ {
+ builder.addTask(jpdlState.getName());
+ adaptTransitions(builder, jpdlState.getDescriptionOrEventOrExceptionHandler());
+
+ for (Object jpdlObj : jpdlState.getDescriptionOrEventOrExceptionHandler())
+ {
+ if (jpdlObj instanceof JPDL32Event)
+ {
+ JPDL32Event jpdlEvent = (JPDL32Event)jpdlObj;
+ if (jpdlEvent.getType().equals("node-enter"))
+ {
+ for (Object jpdlAux : jpdlEvent.getActionOrScriptOrCreateTimer())
+ {
+ if (jpdlAux instanceof JPDL32Action)
+ {
+ JPDL32Action jpdlAction = (JPDL32Action)jpdlAux;
+ Class<?> handler = loadHandler(jpdlAction.getClazz());
+ if (ExecutionHandler.class.isAssignableFrom(handler) == false)
+ throw new InvalidProcessException("Node action is not of type ExecutionHandler");
+
+ builder.addExecutionHandler(handler);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ private void adaptTransitions(ProcessBuilder builder, List<Object> list)
+ {
+ for (Object subEl : list)
+ {
+ if (subEl instanceof JPDL32Transition)
+ {
+ JPDL32Transition trans = (JPDL32Transition)subEl;
+ String targetName = trans.getTo();
+ builder.addSequenceFlow(targetName);
+ }
+ }
+ }
+
+ private Class<?> loadHandler(String className)
+ {
+ try
+ {
+ ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
+ return ctxLoader.loadClass(className);
+ }
+ catch (ClassNotFoundException e)
+ {
+ throw new IllegalStateException("Cannot load handler class: " + className);
+ }
+ }
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessDefinitionAdapter.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,51 @@
+/*
+ * 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.jboss.bpm.dialect.jpdl32;
+
+// $Id$
+
+import java.io.Reader;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+
+import org.jboss.bpm.dialect.jpdl32.jaxb.JPDL32ProcessDefinition;
+import org.jboss.bpm.dialect.jpdl32.jaxb.ObjectFactory;
+
+/**
+ * A JAXB unmarshaller for a Process
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ProcessUnmarshaller
+{
+ public JPDL32ProcessDefinition unmarshallProcess(Reader xml) throws JAXBException
+ {
+ JAXBContext jaxbContext = JAXBContext.newInstance(ObjectFactory.class);
+ Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
+ unmarshaller.setProperty("com.sun.xml.bind.ObjectFactory",new ObjectFactory());
+ JPDL32ProcessDefinition proc = (JPDL32ProcessDefinition)unmarshaller.unmarshal(xml);
+ return proc;
+ }
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/ProcessUnmarshaller.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BindingType.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BindingType.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BindingType.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,58 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for bindingType.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="bindingType">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="late"/>
+ * <enumeration value="early"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+@XmlType(name = "bindingType")
+@XmlEnum
+public enum BindingType {
+
+ @XmlEnumValue("late")
+ LATE("late"),
+ @XmlEnumValue("early")
+ EARLY("early");
+ private final String value;
+
+ BindingType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static BindingType fromValue(String v) {
+ for (BindingType c: BindingType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BindingType.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BooleanType.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BooleanType.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BooleanType.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,70 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for booleanType.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="booleanType">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="yes"/>
+ * <enumeration value="no"/>
+ * <enumeration value="true"/>
+ * <enumeration value="false"/>
+ * <enumeration value="on"/>
+ * <enumeration value="off"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+@XmlType(name = "booleanType")
+@XmlEnum
+public enum BooleanType {
+
+ @XmlEnumValue("yes")
+ YES("yes"),
+ @XmlEnumValue("no")
+ NO("no"),
+ @XmlEnumValue("true")
+ TRUE("true"),
+ @XmlEnumValue("false")
+ FALSE("false"),
+ @XmlEnumValue("on")
+ ON("on"),
+ @XmlEnumValue("off")
+ OFF("off");
+ private final String value;
+
+ BooleanType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static BooleanType fromValue(String v) {
+ for (BooleanType c: BooleanType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/BooleanType.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ConfigType.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ConfigType.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ConfigType.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,64 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for configType.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="configType">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="field"/>
+ * <enumeration value="bean"/>
+ * <enumeration value="constructor"/>
+ * <enumeration value="configuration-property"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+@XmlType(name = "configType")
+@XmlEnum
+public enum ConfigType {
+
+ @XmlEnumValue("field")
+ FIELD("field"),
+ @XmlEnumValue("bean")
+ BEAN("bean"),
+ @XmlEnumValue("constructor")
+ CONSTRUCTOR("constructor"),
+ @XmlEnumValue("configuration-property")
+ CONFIGURATION_PROPERTY("configuration-property");
+ private final String value;
+
+ ConfigType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static ConfigType fromValue(String v) {
+ for (ConfigType c: ConfigType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ConfigType.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/Delegation.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/Delegation.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/Delegation.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,144 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for delegation complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="delegation">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="config-type" type="{http://www.w3.org/2001/XMLSchema}string" default="field" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "delegation", propOrder = {
+ "content"
+})
+@XmlSeeAlso({
+ JPDL32Assignment.class
+})
+public class Delegation {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute(name = "class")
+ protected String clazz;
+ @XmlAttribute(name = "config-type")
+ protected String configType;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ * {@link String }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the clazz property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getClazz() {
+ return clazz;
+ }
+
+ /**
+ * Sets the value of the clazz property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setClazz(String value) {
+ this.clazz = value;
+ }
+
+ /**
+ * Gets the value of the configType property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getConfigType() {
+ if (configType == null) {
+ return "field";
+ } else {
+ return configType;
+ }
+ }
+
+ /**
+ * Sets the value of the configType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setConfigType(String value) {
+ this.configType = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/Delegation.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Action.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Action.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Action.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,281 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="config-type" type="{http://www.w3.org/2001/XMLSchema}string" default="field" />
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="ref-name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="accept-propagated-events" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="true" />
+ * <attribute name="expression" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "content"
+})
+@XmlRootElement(name = "action")
+public class JPDL32Action {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute(name = "class")
+ protected String clazz;
+ @XmlAttribute(name = "config-type")
+ protected String configType;
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute(name = "ref-name")
+ protected String refName;
+ @XmlAttribute(name = "accept-propagated-events")
+ protected BooleanType acceptPropagatedEvents;
+ @XmlAttribute
+ protected String expression;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ * {@link String }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the clazz property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getClazz() {
+ return clazz;
+ }
+
+ /**
+ * Sets the value of the clazz property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setClazz(String value) {
+ this.clazz = value;
+ }
+
+ /**
+ * Gets the value of the configType property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getConfigType() {
+ if (configType == null) {
+ return "field";
+ } else {
+ return configType;
+ }
+ }
+
+ /**
+ * Sets the value of the configType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setConfigType(String value) {
+ this.configType = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the refName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRefName() {
+ return refName;
+ }
+
+ /**
+ * Sets the value of the refName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRefName(String value) {
+ this.refName = value;
+ }
+
+ /**
+ * Gets the value of the acceptPropagatedEvents property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getAcceptPropagatedEvents() {
+ if (acceptPropagatedEvents == null) {
+ return BooleanType.TRUE;
+ } else {
+ return acceptPropagatedEvents;
+ }
+ }
+
+ /**
+ * Sets the value of the acceptPropagatedEvents property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setAcceptPropagatedEvents(BooleanType value) {
+ this.acceptPropagatedEvents = value;
+ }
+
+ /**
+ * Gets the value of the expression property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getExpression() {
+ return expression;
+ }
+
+ /**
+ * Sets the value of the expression property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpression(String value) {
+ this.expression = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ return async;
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Action.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Assignment.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Assignment.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Assignment.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,123 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <extension base="{urn:jbpm.org:jpdl-3.2}delegation">
+ * <attribute name="expression" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="actor-id" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="pooled-actors" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "assignment")
+public class JPDL32Assignment
+ extends Delegation
+{
+
+ @XmlAttribute
+ protected String expression;
+ @XmlAttribute(name = "actor-id")
+ protected String actorId;
+ @XmlAttribute(name = "pooled-actors")
+ protected String pooledActors;
+
+ /**
+ * Gets the value of the expression property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getExpression() {
+ return expression;
+ }
+
+ /**
+ * Sets the value of the expression property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpression(String value) {
+ this.expression = value;
+ }
+
+ /**
+ * Gets the value of the actorId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getActorId() {
+ return actorId;
+ }
+
+ /**
+ * Sets the value of the actorId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setActorId(String value) {
+ this.actorId = value;
+ }
+
+ /**
+ * Gets the value of the pooledActors property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getPooledActors() {
+ return pooledActors;
+ }
+
+ /**
+ * Sets the value of the pooledActors property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setPooledActors(String value) {
+ this.pooledActors = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Assignment.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CancelTimer.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CancelTimer.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CancelTimer.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,67 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "cancel-timer")
+public class JPDL32CancelTimer {
+
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CancelTimer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CreateTimer.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CreateTimer.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CreateTimer.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,205 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}action"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}script"/>
+ * </choice>
+ * <attribute name="duedate" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="repeat" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="transition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "action",
+ "script"
+})
+@XmlRootElement(name = "create-timer")
+public class JPDL32CreateTimer {
+
+ protected JPDL32Action action;
+ protected JPDL32Script script;
+ @XmlAttribute(required = true)
+ protected String duedate;
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute
+ protected String repeat;
+ @XmlAttribute
+ protected String transition;
+
+ /**
+ * Gets the value of the action property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Action }
+ *
+ */
+ public JPDL32Action getAction() {
+ return action;
+ }
+
+ /**
+ * Sets the value of the action property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Action }
+ *
+ */
+ public void setAction(JPDL32Action value) {
+ this.action = value;
+ }
+
+ /**
+ * Gets the value of the script property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Script }
+ *
+ */
+ public JPDL32Script getScript() {
+ return script;
+ }
+
+ /**
+ * Sets the value of the script property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Script }
+ *
+ */
+ public void setScript(JPDL32Script value) {
+ this.script = value;
+ }
+
+ /**
+ * Gets the value of the duedate property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDuedate() {
+ return duedate;
+ }
+
+ /**
+ * Sets the value of the duedate property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDuedate(String value) {
+ this.duedate = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the repeat property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRepeat() {
+ return repeat;
+ }
+
+ /**
+ * Sets the value of the repeat property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRepeat(String value) {
+ this.repeat = value;
+ }
+
+ /**
+ * Gets the value of the transition property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTransition() {
+ return transition;
+ }
+
+ /**
+ * Sets the value of the transition property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTransition(String value) {
+ this.transition = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32CreateTimer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Decision.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Decision.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Decision.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,179 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}description"/>
+ * <element name="handler" type="{urn:jbpm.org:jpdl-3.2}delegation"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}event"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}exception-handler"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}transition"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="expression" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrHandlerOrEvent"
+})
+@XmlRootElement(name = "decision")
+public class JPDL32Decision {
+
+ @XmlElements({
+ @XmlElement(name = "handler", type = Delegation.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "description", type = String.class)
+ })
+ protected List<Object> descriptionOrHandlerOrEvent;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String expression;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the descriptionOrHandlerOrEvent property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrHandlerOrEvent property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrHandlerOrEvent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Delegation }
+ * {@link JPDL32Event }
+ * {@link JPDL32Transition }
+ * {@link JPDL32ExceptionHandler }
+ * {@link String }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrHandlerOrEvent() {
+ if (descriptionOrHandlerOrEvent == null) {
+ descriptionOrHandlerOrEvent = new ArrayList<Object>();
+ }
+ return this.descriptionOrHandlerOrEvent;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the expression property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getExpression() {
+ return expression;
+ }
+
+ /**
+ * Sets the value of the expression property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpression(String value) {
+ this.expression = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Decision.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32EndState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32EndState.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32EndState.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,146 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}description"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}event"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}exception-handler"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="end-complete-process" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrEventOrExceptionHandler"
+})
+@XmlRootElement(name = "end-state")
+public class JPDL32EndState {
+
+ @XmlElements({
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class)
+ })
+ protected List<Object> descriptionOrEventOrExceptionHandler;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute(name = "end-complete-process")
+ protected BooleanType endCompleteProcess;
+
+ /**
+ * Gets the value of the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrEventOrExceptionHandler().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ * {@link JPDL32Event }
+ * {@link JPDL32ExceptionHandler }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrEventOrExceptionHandler() {
+ if (descriptionOrEventOrExceptionHandler == null) {
+ descriptionOrEventOrExceptionHandler = new ArrayList<Object>();
+ }
+ return this.descriptionOrEventOrExceptionHandler;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the endCompleteProcess property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getEndCompleteProcess() {
+ if (endCompleteProcess == null) {
+ return BooleanType.FALSE;
+ } else {
+ return endCompleteProcess;
+ }
+ }
+
+ /**
+ * Sets the value of the endCompleteProcess property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setEndCompleteProcess(BooleanType value) {
+ this.endCompleteProcess = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32EndState.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Event.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Event.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Event.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,145 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{urn:jbpm.org:jpdl-3.2}action-elements"/>
+ * </choice>
+ * <attribute name="type" use="required">
+ * <simpleType>
+ * <union>
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * </restriction>
+ * </simpleType>
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="node-enter"/>
+ * <enumeration value="node-leave"/>
+ * <enumeration value="process-start"/>
+ * <enumeration value="process-end"/>
+ * <enumeration value="task-create"/>
+ * <enumeration value="task-assign"/>
+ * <enumeration value="task-start"/>
+ * <enumeration value="task-end"/>
+ * <enumeration value="before-signal"/>
+ * <enumeration value="after-signal"/>
+ * <enumeration value="superstate-enter"/>
+ * <enumeration value="superstate-leave"/>
+ * <enumeration value="timer-create"/>
+ * <enumeration value="subprocess-created"/>
+ * <enumeration value="subprocess-end"/>
+ * </restriction>
+ * </simpleType>
+ * </union>
+ * </simpleType>
+ * </attribute>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "actionOrScriptOrCreateTimer"
+})
+@XmlRootElement(name = "event")
+public class JPDL32Event {
+
+ @XmlElements({
+ @XmlElement(name = "mail", type = JPDL32Mail.class),
+ @XmlElement(name = "create-timer", type = JPDL32CreateTimer.class),
+ @XmlElement(name = "action", type = JPDL32Action.class),
+ @XmlElement(name = "cancel-timer", type = JPDL32CancelTimer.class),
+ @XmlElement(name = "script", type = JPDL32Script.class)
+ })
+ protected List<Object> actionOrScriptOrCreateTimer;
+ @XmlAttribute(required = true)
+ protected String type;
+
+ /**
+ * Gets the value of the actionOrScriptOrCreateTimer property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the actionOrScriptOrCreateTimer property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getActionOrScriptOrCreateTimer().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32Mail }
+ * {@link JPDL32CreateTimer }
+ * {@link JPDL32Action }
+ * {@link JPDL32CancelTimer }
+ * {@link JPDL32Script }
+ *
+ *
+ */
+ public List<Object> getActionOrScriptOrCreateTimer() {
+ if (actionOrScriptOrCreateTimer == null) {
+ actionOrScriptOrCreateTimer = new ArrayList<Object>();
+ }
+ return this.actionOrScriptOrCreateTimer;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Event.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ExceptionHandler.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ExceptionHandler.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ExceptionHandler.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,112 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}action"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}script"/>
+ * </choice>
+ * <attribute name="exception-class" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "actionOrScript"
+})
+@XmlRootElement(name = "exception-handler")
+public class JPDL32ExceptionHandler {
+
+ @XmlElements({
+ @XmlElement(name = "action", type = JPDL32Action.class),
+ @XmlElement(name = "script", type = JPDL32Script.class)
+ })
+ protected List<Object> actionOrScript;
+ @XmlAttribute(name = "exception-class")
+ protected String exceptionClass;
+
+ /**
+ * Gets the value of the actionOrScript property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the actionOrScript property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getActionOrScript().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32Action }
+ * {@link JPDL32Script }
+ *
+ *
+ */
+ public List<Object> getActionOrScript() {
+ if (actionOrScript == null) {
+ actionOrScript = new ArrayList<Object>();
+ }
+ return this.actionOrScript;
+ }
+
+ /**
+ * Gets the value of the exceptionClass property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getExceptionClass() {
+ return exceptionClass;
+ }
+
+ /**
+ * Sets the value of the exceptionClass property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExceptionClass(String value) {
+ this.exceptionClass = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ExceptionHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Fork.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Fork.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Fork.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,151 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}script"/>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "scriptOrDescriptionOrEvent"
+})
+@XmlRootElement(name = "fork")
+public class JPDL32Fork {
+
+ @XmlElements({
+ @XmlElement(name = "timer", type = JPDL32Timer.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "script", type = JPDL32Script.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "event", type = JPDL32Event.class)
+ })
+ protected List<Object> scriptOrDescriptionOrEvent;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the scriptOrDescriptionOrEvent property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the scriptOrDescriptionOrEvent property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getScriptOrDescriptionOrEvent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32Timer }
+ * {@link String }
+ * {@link JPDL32Transition }
+ * {@link JPDL32Script }
+ * {@link JPDL32ExceptionHandler }
+ * {@link JPDL32Event }
+ *
+ *
+ */
+ public List<Object> getScriptOrDescriptionOrEvent() {
+ if (scriptOrDescriptionOrEvent == null) {
+ scriptOrDescriptionOrEvent = new ArrayList<Object>();
+ }
+ return this.scriptOrDescriptionOrEvent;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Fork.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Join.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Join.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Join.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,148 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrEventOrExceptionHandler"
+})
+@XmlRootElement(name = "join")
+public class JPDL32Join {
+
+ @XmlElements({
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "timer", type = JPDL32Timer.class)
+ })
+ protected List<Object> descriptionOrEventOrExceptionHandler;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrEventOrExceptionHandler().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32Transition }
+ * {@link JPDL32Event }
+ * {@link JPDL32ExceptionHandler }
+ * {@link String }
+ * {@link JPDL32Timer }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrEventOrExceptionHandler() {
+ if (descriptionOrEventOrExceptionHandler == null) {
+ descriptionOrEventOrExceptionHandler = new ArrayList<Object>();
+ }
+ return this.descriptionOrEventOrExceptionHandler;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Join.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Mail.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Mail.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Mail.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,279 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlElementRefs;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}subject"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}text"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * <attribute name="template" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="actors" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="to" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="subject" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "subjectOrText"
+})
+@XmlRootElement(name = "mail")
+public class JPDL32Mail {
+
+ @XmlElementRefs({
+ @XmlElementRef(name = "subject", namespace = "urn:jbpm.org:jpdl-3.2", type = JAXBElement.class),
+ @XmlElementRef(name = "text", namespace = "urn:jbpm.org:jpdl-3.2", type = JAXBElement.class)
+ })
+ protected List<JAXBElement<String>> subjectOrText;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+ @XmlAttribute
+ protected String template;
+ @XmlAttribute
+ protected String actors;
+ @XmlAttribute
+ protected String to;
+ @XmlAttribute
+ protected String subject;
+ @XmlAttribute
+ protected String text;
+
+ /**
+ * Gets the value of the subjectOrText property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the subjectOrText property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getSubjectOrText().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ *
+ */
+ public List<JAXBElement<String>> getSubjectOrText() {
+ if (subjectOrText == null) {
+ subjectOrText = new ArrayList<JAXBElement<String>>();
+ }
+ return this.subjectOrText;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+ /**
+ * Gets the value of the template property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTemplate() {
+ return template;
+ }
+
+ /**
+ * Sets the value of the template property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTemplate(String value) {
+ this.template = value;
+ }
+
+ /**
+ * Gets the value of the actors property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getActors() {
+ return actors;
+ }
+
+ /**
+ * Sets the value of the actors property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setActors(String value) {
+ this.actors = value;
+ }
+
+ /**
+ * Gets the value of the to property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTo() {
+ return to;
+ }
+
+ /**
+ * Sets the value of the to property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTo(String value) {
+ this.to = value;
+ }
+
+ /**
+ * Gets the value of the subject property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSubject() {
+ return subject;
+ }
+
+ /**
+ * Sets the value of the subject property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSubject(String value) {
+ this.subject = value;
+ }
+
+ /**
+ * Gets the value of the text property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * Sets the value of the text property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setText(String value) {
+ this.text = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Mail.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32MailNode.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32MailNode.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32MailNode.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,290 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlElementRefs;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}subject"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}text"/>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * <attribute name="template" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="actors" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="to" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="subject" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "subjectOrTextOrDescription"
+})
+@XmlRootElement(name = "mail-node")
+public class JPDL32MailNode {
+
+ @XmlElementRefs({
+ @XmlElementRef(name = "subject", namespace = "urn:jbpm.org:jpdl-3.2", type = JAXBElement.class),
+ @XmlElementRef(name = "description", namespace = "urn:jbpm.org:jpdl-3.2", type = JAXBElement.class),
+ @XmlElementRef(name = "transition", namespace = "urn:jbpm.org:jpdl-3.2", type = JPDL32Transition.class),
+ @XmlElementRef(name = "text", namespace = "urn:jbpm.org:jpdl-3.2", type = JAXBElement.class),
+ @XmlElementRef(name = "event", namespace = "urn:jbpm.org:jpdl-3.2", type = JPDL32Event.class),
+ @XmlElementRef(name = "timer", namespace = "urn:jbpm.org:jpdl-3.2", type = JPDL32Timer.class),
+ @XmlElementRef(name = "exception-handler", namespace = "urn:jbpm.org:jpdl-3.2", type = JPDL32ExceptionHandler.class)
+ })
+ protected List<Object> subjectOrTextOrDescription;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+ @XmlAttribute
+ protected String template;
+ @XmlAttribute
+ protected String actors;
+ @XmlAttribute
+ protected String to;
+ @XmlAttribute
+ protected String subject;
+ @XmlAttribute
+ protected String text;
+
+ /**
+ * Gets the value of the subjectOrTextOrDescription property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the subjectOrTextOrDescription property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getSubjectOrTextOrDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ * {@link JPDL32Transition }
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ * {@link JPDL32Event }
+ * {@link JPDL32Timer }
+ * {@link JPDL32ExceptionHandler }
+ *
+ *
+ */
+ public List<Object> getSubjectOrTextOrDescription() {
+ if (subjectOrTextOrDescription == null) {
+ subjectOrTextOrDescription = new ArrayList<Object>();
+ }
+ return this.subjectOrTextOrDescription;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+ /**
+ * Gets the value of the template property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTemplate() {
+ return template;
+ }
+
+ /**
+ * Sets the value of the template property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTemplate(String value) {
+ this.template = value;
+ }
+
+ /**
+ * Gets the value of the actors property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getActors() {
+ return actors;
+ }
+
+ /**
+ * Sets the value of the actors property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setActors(String value) {
+ this.actors = value;
+ }
+
+ /**
+ * Gets the value of the to property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTo() {
+ return to;
+ }
+
+ /**
+ * Sets the value of the to property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTo(String value) {
+ this.to = value;
+ }
+
+ /**
+ * Gets the value of the subject property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSubject() {
+ return subject;
+ }
+
+ /**
+ * Sets the value of the subject property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSubject(String value) {
+ this.subject = value;
+ }
+
+ /**
+ * Gets the value of the text property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * Sets the value of the text property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setText(String value) {
+ this.text = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32MailNode.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Node.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Node.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Node.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,285 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <choice minOccurs="0">
+ * <group ref="{urn:jbpm.org:jpdl-3.2}action-elements"/>
+ * </choice>
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "action",
+ "script",
+ "createTimer",
+ "cancelTimer",
+ "mail",
+ "descriptionOrEventOrExceptionHandler"
+})
+@XmlRootElement(name = "node")
+public class JPDL32Node {
+
+ protected JPDL32Action action;
+ protected JPDL32Script script;
+ @XmlElement(name = "create-timer")
+ protected JPDL32CreateTimer createTimer;
+ @XmlElement(name = "cancel-timer")
+ protected JPDL32CancelTimer cancelTimer;
+ protected JPDL32Mail mail;
+ @XmlElements({
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "timer", type = JPDL32Timer.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class)
+ })
+ protected List<Object> descriptionOrEventOrExceptionHandler;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the action property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Action }
+ *
+ */
+ public JPDL32Action getAction() {
+ return action;
+ }
+
+ /**
+ * Sets the value of the action property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Action }
+ *
+ */
+ public void setAction(JPDL32Action value) {
+ this.action = value;
+ }
+
+ /**
+ * Gets the value of the script property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Script }
+ *
+ */
+ public JPDL32Script getScript() {
+ return script;
+ }
+
+ /**
+ * Sets the value of the script property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Script }
+ *
+ */
+ public void setScript(JPDL32Script value) {
+ this.script = value;
+ }
+
+ /**
+ * Gets the value of the createTimer property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32CreateTimer }
+ *
+ */
+ public JPDL32CreateTimer getCreateTimer() {
+ return createTimer;
+ }
+
+ /**
+ * Sets the value of the createTimer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32CreateTimer }
+ *
+ */
+ public void setCreateTimer(JPDL32CreateTimer value) {
+ this.createTimer = value;
+ }
+
+ /**
+ * Gets the value of the cancelTimer property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32CancelTimer }
+ *
+ */
+ public JPDL32CancelTimer getCancelTimer() {
+ return cancelTimer;
+ }
+
+ /**
+ * Sets the value of the cancelTimer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32CancelTimer }
+ *
+ */
+ public void setCancelTimer(JPDL32CancelTimer value) {
+ this.cancelTimer = value;
+ }
+
+ /**
+ * Gets the value of the mail property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Mail }
+ *
+ */
+ public JPDL32Mail getMail() {
+ return mail;
+ }
+
+ /**
+ * Sets the value of the mail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Mail }
+ *
+ */
+ public void setMail(JPDL32Mail value) {
+ this.mail = value;
+ }
+
+ /**
+ * Gets the value of the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrEventOrExceptionHandler().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32Transition }
+ * {@link JPDL32Event }
+ * {@link String }
+ * {@link JPDL32Timer }
+ * {@link JPDL32ExceptionHandler }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrEventOrExceptionHandler() {
+ if (descriptionOrEventOrExceptionHandler == null) {
+ descriptionOrEventOrExceptionHandler = new ArrayList<Object>();
+ }
+ return this.descriptionOrEventOrExceptionHandler;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Node.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessDefinition.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessDefinition.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessDefinition.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,156 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}description"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}swimlane"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}start-state"/>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-elements"/>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}action-elements"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}event"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}exception-handler"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}task"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrSwimlaneOrStartState"
+})
+@XmlRootElement(name = "process-definition")
+public class JPDL32ProcessDefinition {
+
+ @XmlElements({
+ @XmlElement(name = "decision", type = JPDL32Decision.class),
+ @XmlElement(name = "task", type = JPDL32Task.class),
+ @XmlElement(name = "mail", type = JPDL32Mail.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "action", type = JPDL32Action.class),
+ @XmlElement(name = "create-timer", type = JPDL32CreateTimer.class),
+ @XmlElement(name = "state", type = JPDL32State.class),
+ @XmlElement(name = "task-node", type = JPDL32TaskNode.class),
+ @XmlElement(name = "super-state", type = JPDL32SuperState.class),
+ @XmlElement(name = "join", type = JPDL32Join.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "end-state", type = JPDL32EndState.class),
+ @XmlElement(name = "swimlane", type = JPDL32Swimlane.class),
+ @XmlElement(name = "cancel-timer", type = JPDL32CancelTimer.class),
+ @XmlElement(name = "script", type = JPDL32Script.class),
+ @XmlElement(name = "node", type = JPDL32Node.class),
+ @XmlElement(name = "fork", type = JPDL32Fork.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "start-state", type = JPDL32StartState.class),
+ @XmlElement(name = "process-state", type = JPDL32ProcessState.class),
+ @XmlElement(name = "mail-node", type = JPDL32MailNode.class)
+ })
+ protected List<Object> descriptionOrSwimlaneOrStartState;
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the descriptionOrSwimlaneOrStartState property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrSwimlaneOrStartState property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrSwimlaneOrStartState().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32Decision }
+ * {@link JPDL32Task }
+ * {@link JPDL32Mail }
+ * {@link JPDL32ExceptionHandler }
+ * {@link JPDL32Action }
+ * {@link JPDL32CreateTimer }
+ * {@link JPDL32State }
+ * {@link JPDL32TaskNode }
+ * {@link JPDL32SuperState }
+ * {@link JPDL32Join }
+ * {@link JPDL32Event }
+ * {@link JPDL32EndState }
+ * {@link JPDL32Swimlane }
+ * {@link JPDL32CancelTimer }
+ * {@link JPDL32Script }
+ * {@link JPDL32Node }
+ * {@link JPDL32Fork }
+ * {@link String }
+ * {@link JPDL32StartState }
+ * {@link JPDL32ProcessState }
+ * {@link JPDL32MailNode }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrSwimlaneOrStartState() {
+ if (descriptionOrSwimlaneOrStartState == null) {
+ descriptionOrSwimlaneOrStartState = new ArrayList<Object>();
+ }
+ return this.descriptionOrSwimlaneOrStartState;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessDefinition.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessState.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessState.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,297 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element name="sub-process">
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ * <attribute name="binding" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}variable"/>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * <attribute name="binding" type="{urn:jbpm.org:jpdl-3.2}bindingType" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "subProcessOrVariableOrDescription"
+})
+@XmlRootElement(name = "process-state")
+public class JPDL32ProcessState {
+
+ @XmlElements({
+ @XmlElement(name = "sub-process", type = JPDL32ProcessState.SubProcess.class),
+ @XmlElement(name = "timer", type = JPDL32Timer.class),
+ @XmlElement(name = "variable", type = JPDL32Variable.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "description", type = String.class)
+ })
+ protected List<Object> subProcessOrVariableOrDescription;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+ @XmlAttribute
+ protected BindingType binding;
+
+ /**
+ * Gets the value of the subProcessOrVariableOrDescription property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the subProcessOrVariableOrDescription property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getSubProcessOrVariableOrDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32ProcessState.SubProcess }
+ * {@link JPDL32Timer }
+ * {@link JPDL32Variable }
+ * {@link JPDL32Event }
+ * {@link JPDL32Transition }
+ * {@link JPDL32ExceptionHandler }
+ * {@link String }
+ *
+ *
+ */
+ public List<Object> getSubProcessOrVariableOrDescription() {
+ if (subProcessOrVariableOrDescription == null) {
+ subProcessOrVariableOrDescription = new ArrayList<Object>();
+ }
+ return this.subProcessOrVariableOrDescription;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+ /**
+ * Gets the value of the binding property.
+ *
+ * @return
+ * possible object is
+ * {@link BindingType }
+ *
+ */
+ public BindingType getBinding() {
+ return binding;
+ }
+
+ /**
+ * Sets the value of the binding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BindingType }
+ *
+ */
+ public void setBinding(BindingType value) {
+ this.binding = value;
+ }
+
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ * <attribute name="binding" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "")
+ public static class SubProcess {
+
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected BigInteger version;
+ @XmlAttribute
+ protected String binding;
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the version property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getVersion() {
+ return version;
+ }
+
+ /**
+ * Sets the value of the version property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setVersion(BigInteger value) {
+ this.version = value;
+ }
+
+ /**
+ * Gets the value of the binding property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getBinding() {
+ return binding;
+ }
+
+ /**
+ * Sets the value of the binding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setBinding(String value) {
+ this.binding = value;
+ }
+
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32ProcessState.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Script.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Script.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Script.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,142 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="accept-propagated-events" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="true" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "content"
+})
+@XmlRootElement(name = "script")
+public class JPDL32Script {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute(name = "accept-propagated-events")
+ protected BooleanType acceptPropagatedEvents;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ * {@link String }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the acceptPropagatedEvents property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getAcceptPropagatedEvents() {
+ if (acceptPropagatedEvents == null) {
+ return BooleanType.TRUE;
+ } else {
+ return acceptPropagatedEvents;
+ }
+ }
+
+ /**
+ * Sets the value of the acceptPropagatedEvents property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setAcceptPropagatedEvents(BooleanType value) {
+ this.acceptPropagatedEvents = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Script.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32StartState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32StartState.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32StartState.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,121 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}description"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}task"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}transition"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}event"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}exception-handler"/>
+ * </choice>
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrTaskOrTransition"
+})
+@XmlRootElement(name = "start-state")
+public class JPDL32StartState {
+
+ @XmlElements({
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "task", type = JPDL32Task.class),
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "description", type = String.class)
+ })
+ protected List<Object> descriptionOrTaskOrTransition;
+ @XmlAttribute
+ protected String name;
+
+ /**
+ * Gets the value of the descriptionOrTaskOrTransition property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrTaskOrTransition property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrTaskOrTransition().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32ExceptionHandler }
+ * {@link JPDL32Event }
+ * {@link JPDL32Task }
+ * {@link JPDL32Transition }
+ * {@link String }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrTaskOrTransition() {
+ if (descriptionOrTaskOrTransition == null) {
+ descriptionOrTaskOrTransition = new ArrayList<Object>();
+ }
+ return this.descriptionOrTaskOrTransition;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32StartState.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32State.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32State.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32State.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,148 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrEventOrExceptionHandler"
+})
+@XmlRootElement(name = "state")
+public class JPDL32State {
+
+ @XmlElements({
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "timer", type = JPDL32Timer.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "event", type = JPDL32Event.class)
+ })
+ protected List<Object> descriptionOrEventOrExceptionHandler;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrEventOrExceptionHandler property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrEventOrExceptionHandler().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ * {@link JPDL32Transition }
+ * {@link JPDL32Timer }
+ * {@link JPDL32ExceptionHandler }
+ * {@link JPDL32Event }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrEventOrExceptionHandler() {
+ if (descriptionOrEventOrExceptionHandler == null) {
+ descriptionOrEventOrExceptionHandler = new ArrayList<Object>();
+ }
+ return this.descriptionOrEventOrExceptionHandler;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32State.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32SuperState.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32SuperState.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32SuperState.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,169 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-elements"/>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "nodeOrStateOrTaskNode"
+})
+@XmlRootElement(name = "super-state")
+public class JPDL32SuperState {
+
+ @XmlElements({
+ @XmlElement(name = "end-state", type = JPDL32EndState.class),
+ @XmlElement(name = "state", type = JPDL32State.class),
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "process-state", type = JPDL32ProcessState.class),
+ @XmlElement(name = "task-node", type = JPDL32TaskNode.class),
+ @XmlElement(name = "node", type = JPDL32Node.class),
+ @XmlElement(name = "join", type = JPDL32Join.class),
+ @XmlElement(name = "mail-node", type = JPDL32MailNode.class),
+ @XmlElement(name = "timer", type = JPDL32Timer.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "decision", type = JPDL32Decision.class),
+ @XmlElement(name = "fork", type = JPDL32Fork.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "super-state", type = JPDL32SuperState.class)
+ })
+ protected List<Object> nodeOrStateOrTaskNode;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the nodeOrStateOrTaskNode property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the nodeOrStateOrTaskNode property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getNodeOrStateOrTaskNode().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32EndState }
+ * {@link JPDL32State }
+ * {@link JPDL32Transition }
+ * {@link JPDL32ExceptionHandler }
+ * {@link JPDL32ProcessState }
+ * {@link JPDL32TaskNode }
+ * {@link JPDL32Node }
+ * {@link JPDL32Join }
+ * {@link JPDL32MailNode }
+ * {@link JPDL32Timer }
+ * {@link JPDL32Event }
+ * {@link JPDL32Decision }
+ * {@link JPDL32Fork }
+ * {@link String }
+ * {@link JPDL32SuperState }
+ *
+ *
+ */
+ public List<Object> getNodeOrStateOrTaskNode() {
+ if (nodeOrStateOrTaskNode == null) {
+ nodeOrStateOrTaskNode = new ArrayList<Object>();
+ }
+ return this.nodeOrStateOrTaskNode;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32SuperState.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Swimlane.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Swimlane.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Swimlane.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,97 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}assignment"/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "assignment"
+})
+@XmlRootElement(name = "swimlane")
+public class JPDL32Swimlane {
+
+ protected JPDL32Assignment assignment;
+ @XmlAttribute(required = true)
+ protected String name;
+
+ /**
+ * Gets the value of the assignment property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Assignment }
+ *
+ */
+ public JPDL32Assignment getAssignment() {
+ return assignment;
+ }
+
+ /**
+ * Sets the value of the assignment property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Assignment }
+ *
+ */
+ public void setAssignment(JPDL32Assignment value) {
+ this.assignment = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Swimlane.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Task.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Task.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Task.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,416 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}description"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}assignment"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}controller"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}event"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}timer"/>
+ * <element name="reminder">
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="duedate" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="repeat" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </choice>
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="blocking" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="false" />
+ * <attribute name="signalling" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="true" />
+ * <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="duedate" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="swimlane" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="priority" type="{urn:jbpm.org:jpdl-3.2}priorityType" default="normal" />
+ * <attribute name="notify" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrAssignmentOrController"
+})
+@XmlRootElement(name = "task")
+public class JPDL32Task {
+
+ @XmlElements({
+ @XmlElement(name = "controller", type = Delegation.class),
+ @XmlElement(name = "assignment", type = JPDL32Assignment.class),
+ @XmlElement(name = "timer", type = JPDL32Timer.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "event", type = JPDL32Event.class),
+ @XmlElement(name = "reminder", type = JPDL32Task.Reminder.class)
+ })
+ protected List<Object> descriptionOrAssignmentOrController;
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute
+ protected BooleanType blocking;
+ @XmlAttribute
+ protected BooleanType signalling;
+ @XmlAttribute
+ protected String description;
+ @XmlAttribute
+ protected String duedate;
+ @XmlAttribute
+ protected String swimlane;
+ @XmlAttribute
+ protected String priority;
+ @XmlAttribute
+ protected BooleanType notify;
+
+ /**
+ * Gets the value of the descriptionOrAssignmentOrController property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrAssignmentOrController property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrAssignmentOrController().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Delegation }
+ * {@link JPDL32Assignment }
+ * {@link JPDL32Timer }
+ * {@link String }
+ * {@link JPDL32Event }
+ * {@link JPDL32Task.Reminder }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrAssignmentOrController() {
+ if (descriptionOrAssignmentOrController == null) {
+ descriptionOrAssignmentOrController = new ArrayList<Object>();
+ }
+ return this.descriptionOrAssignmentOrController;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the blocking property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getBlocking() {
+ if (blocking == null) {
+ return BooleanType.FALSE;
+ } else {
+ return blocking;
+ }
+ }
+
+ /**
+ * Sets the value of the blocking property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setBlocking(BooleanType value) {
+ this.blocking = value;
+ }
+
+ /**
+ * Gets the value of the signalling property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getSignalling() {
+ if (signalling == null) {
+ return BooleanType.TRUE;
+ } else {
+ return signalling;
+ }
+ }
+
+ /**
+ * Sets the value of the signalling property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setSignalling(BooleanType value) {
+ this.signalling = value;
+ }
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDescription(String value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the duedate property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDuedate() {
+ return duedate;
+ }
+
+ /**
+ * Sets the value of the duedate property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDuedate(String value) {
+ this.duedate = value;
+ }
+
+ /**
+ * Gets the value of the swimlane property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSwimlane() {
+ return swimlane;
+ }
+
+ /**
+ * Sets the value of the swimlane property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSwimlane(String value) {
+ this.swimlane = value;
+ }
+
+ /**
+ * Gets the value of the priority property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getPriority() {
+ if (priority == null) {
+ return "normal";
+ } else {
+ return priority;
+ }
+ }
+
+ /**
+ * Sets the value of the priority property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setPriority(String value) {
+ this.priority = value;
+ }
+
+ /**
+ * Gets the value of the notify property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getNotify() {
+ if (notify == null) {
+ return BooleanType.FALSE;
+ } else {
+ return notify;
+ }
+ }
+
+ /**
+ * Sets the value of the notify property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setNotify(BooleanType value) {
+ this.notify = value;
+ }
+
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="duedate" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="repeat" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "")
+ public static class Reminder {
+
+ @XmlAttribute(required = true)
+ protected String duedate;
+ @XmlAttribute
+ protected String repeat;
+
+ /**
+ * Gets the value of the duedate property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDuedate() {
+ return duedate;
+ }
+
+ /**
+ * Sets the value of the duedate property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDuedate(String value) {
+ this.duedate = value;
+ }
+
+ /**
+ * Gets the value of the repeat property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRepeat() {
+ return repeat;
+ }
+
+ /**
+ * Sets the value of the repeat property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRepeat(String value) {
+ this.repeat = value;
+ }
+
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Task.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32TaskNode.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32TaskNode.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32TaskNode.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,255 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}task"/>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}node-content-elements"/>
+ * </choice>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="create-tasks" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="true" />
+ * <attribute name="end-tasks" type="{urn:jbpm.org:jpdl-3.2}booleanType" default="false" />
+ * <attribute name="signal" default="last">
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="unsynchronized"/>
+ * <enumeration value="never"/>
+ * <enumeration value="first"/>
+ * <enumeration value="first-wait"/>
+ * <enumeration value="last"/>
+ * <enumeration value="last-wait"/>
+ * </restriction>
+ * </simpleType>
+ * </attribute>
+ * <attribute name="async" type="{http://www.w3.org/2001/XMLSchema}string" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "taskOrDescriptionOrEvent"
+})
+@XmlRootElement(name = "task-node")
+public class JPDL32TaskNode {
+
+ @XmlElements({
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "timer", type = JPDL32Timer.class),
+ @XmlElement(name = "task", type = JPDL32Task.class),
+ @XmlElement(name = "transition", type = JPDL32Transition.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "event", type = JPDL32Event.class)
+ })
+ protected List<Object> taskOrDescriptionOrEvent;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute(name = "create-tasks")
+ protected BooleanType createTasks;
+ @XmlAttribute(name = "end-tasks")
+ protected BooleanType endTasks;
+ @XmlAttribute
+ protected String signal;
+ @XmlAttribute
+ protected String async;
+
+ /**
+ * Gets the value of the taskOrDescriptionOrEvent property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the taskOrDescriptionOrEvent property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getTaskOrDescriptionOrEvent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32ExceptionHandler }
+ * {@link JPDL32Timer }
+ * {@link JPDL32Task }
+ * {@link JPDL32Transition }
+ * {@link String }
+ * {@link JPDL32Event }
+ *
+ *
+ */
+ public List<Object> getTaskOrDescriptionOrEvent() {
+ if (taskOrDescriptionOrEvent == null) {
+ taskOrDescriptionOrEvent = new ArrayList<Object>();
+ }
+ return this.taskOrDescriptionOrEvent;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the createTasks property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getCreateTasks() {
+ if (createTasks == null) {
+ return BooleanType.TRUE;
+ } else {
+ return createTasks;
+ }
+ }
+
+ /**
+ * Sets the value of the createTasks property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setCreateTasks(BooleanType value) {
+ this.createTasks = value;
+ }
+
+ /**
+ * Gets the value of the endTasks property.
+ *
+ * @return
+ * possible object is
+ * {@link BooleanType }
+ *
+ */
+ public BooleanType getEndTasks() {
+ if (endTasks == null) {
+ return BooleanType.FALSE;
+ } else {
+ return endTasks;
+ }
+ }
+
+ /**
+ * Sets the value of the endTasks property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BooleanType }
+ *
+ */
+ public void setEndTasks(BooleanType value) {
+ this.endTasks = value;
+ }
+
+ /**
+ * Gets the value of the signal property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSignal() {
+ if (signal == null) {
+ return "last";
+ } else {
+ return signal;
+ }
+ }
+
+ /**
+ * Sets the value of the signal property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSignal(String value) {
+ this.signal = value;
+ }
+
+ /**
+ * Gets the value of the async property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAsync() {
+ if (async == null) {
+ return "false";
+ } else {
+ return async;
+ }
+ }
+
+ /**
+ * Sets the value of the async property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAsync(String value) {
+ this.async = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32TaskNode.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Timer.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Timer.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Timer.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,285 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice minOccurs="0">
+ * <group ref="{urn:jbpm.org:jpdl-3.2}action-elements"/>
+ * </choice>
+ * <attribute name="duedate" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="repeat" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="transition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "action",
+ "script",
+ "createTimer",
+ "cancelTimer",
+ "mail"
+})
+@XmlRootElement(name = "timer")
+public class JPDL32Timer {
+
+ protected JPDL32Action action;
+ protected JPDL32Script script;
+ @XmlElement(name = "create-timer")
+ protected JPDL32CreateTimer createTimer;
+ @XmlElement(name = "cancel-timer")
+ protected JPDL32CancelTimer cancelTimer;
+ protected JPDL32Mail mail;
+ @XmlAttribute(required = true)
+ protected String duedate;
+ @XmlAttribute
+ protected String name;
+ @XmlAttribute
+ protected String repeat;
+ @XmlAttribute
+ protected String transition;
+
+ /**
+ * Gets the value of the action property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Action }
+ *
+ */
+ public JPDL32Action getAction() {
+ return action;
+ }
+
+ /**
+ * Sets the value of the action property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Action }
+ *
+ */
+ public void setAction(JPDL32Action value) {
+ this.action = value;
+ }
+
+ /**
+ * Gets the value of the script property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Script }
+ *
+ */
+ public JPDL32Script getScript() {
+ return script;
+ }
+
+ /**
+ * Sets the value of the script property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Script }
+ *
+ */
+ public void setScript(JPDL32Script value) {
+ this.script = value;
+ }
+
+ /**
+ * Gets the value of the createTimer property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32CreateTimer }
+ *
+ */
+ public JPDL32CreateTimer getCreateTimer() {
+ return createTimer;
+ }
+
+ /**
+ * Sets the value of the createTimer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32CreateTimer }
+ *
+ */
+ public void setCreateTimer(JPDL32CreateTimer value) {
+ this.createTimer = value;
+ }
+
+ /**
+ * Gets the value of the cancelTimer property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32CancelTimer }
+ *
+ */
+ public JPDL32CancelTimer getCancelTimer() {
+ return cancelTimer;
+ }
+
+ /**
+ * Sets the value of the cancelTimer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32CancelTimer }
+ *
+ */
+ public void setCancelTimer(JPDL32CancelTimer value) {
+ this.cancelTimer = value;
+ }
+
+ /**
+ * Gets the value of the mail property.
+ *
+ * @return
+ * possible object is
+ * {@link JPDL32Mail }
+ *
+ */
+ public JPDL32Mail getMail() {
+ return mail;
+ }
+
+ /**
+ * Sets the value of the mail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JPDL32Mail }
+ *
+ */
+ public void setMail(JPDL32Mail value) {
+ this.mail = value;
+ }
+
+ /**
+ * Gets the value of the duedate property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDuedate() {
+ return duedate;
+ }
+
+ /**
+ * Sets the value of the duedate property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDuedate(String value) {
+ this.duedate = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the repeat property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRepeat() {
+ return repeat;
+ }
+
+ /**
+ * Sets the value of the repeat property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRepeat(String value) {
+ this.repeat = value;
+ }
+
+ /**
+ * Gets the value of the transition property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTransition() {
+ return transition;
+ }
+
+ /**
+ * Sets the value of the transition property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTransition(String value) {
+ this.transition = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Timer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Transition.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Transition.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Transition.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,257 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlMixed;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <element ref="{urn:jbpm.org:jpdl-3.2}description"/>
+ * <element name="condition">
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence maxOccurs="unbounded" minOccurs="0">
+ * <any/>
+ * </sequence>
+ * <attribute name="expression" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * <group ref="{urn:jbpm.org:jpdl-3.2}action-elements"/>
+ * <element ref="{urn:jbpm.org:jpdl-3.2}exception-handler"/>
+ * </choice>
+ * <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "descriptionOrConditionOrAction"
+})
+@XmlRootElement(name = "transition")
+public class JPDL32Transition {
+
+ @XmlElements({
+ @XmlElement(name = "exception-handler", type = JPDL32ExceptionHandler.class),
+ @XmlElement(name = "script", type = JPDL32Script.class),
+ @XmlElement(name = "action", type = JPDL32Action.class),
+ @XmlElement(name = "condition", type = JPDL32Transition.Condition.class),
+ @XmlElement(name = "cancel-timer", type = JPDL32CancelTimer.class),
+ @XmlElement(name = "mail", type = JPDL32Mail.class),
+ @XmlElement(name = "description", type = String.class),
+ @XmlElement(name = "create-timer", type = JPDL32CreateTimer.class)
+ })
+ protected List<Object> descriptionOrConditionOrAction;
+ @XmlAttribute(required = true)
+ protected String to;
+ @XmlAttribute
+ protected String name;
+
+ /**
+ * Gets the value of the descriptionOrConditionOrAction property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the descriptionOrConditionOrAction property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescriptionOrConditionOrAction().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JPDL32ExceptionHandler }
+ * {@link JPDL32Script }
+ * {@link JPDL32Action }
+ * {@link JPDL32Transition.Condition }
+ * {@link JPDL32CancelTimer }
+ * {@link JPDL32Mail }
+ * {@link String }
+ * {@link JPDL32CreateTimer }
+ *
+ *
+ */
+ public List<Object> getDescriptionOrConditionOrAction() {
+ if (descriptionOrConditionOrAction == null) {
+ descriptionOrConditionOrAction = new ArrayList<Object>();
+ }
+ return this.descriptionOrConditionOrAction;
+ }
+
+ /**
+ * Gets the value of the to property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTo() {
+ return to;
+ }
+
+ /**
+ * Sets the value of the to property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTo(String value) {
+ this.to = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence maxOccurs="unbounded" minOccurs="0">
+ * <any/>
+ * </sequence>
+ * <attribute name="expression" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "", propOrder = {
+ "content"
+ })
+ public static class Condition {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+ @XmlAttribute
+ protected String expression;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ * {@link String }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ /**
+ * Gets the value of the expression property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getExpression() {
+ return expression;
+ }
+
+ /**
+ * Sets the value of the expression property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setExpression(String value) {
+ this.expression = value;
+ }
+
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Transition.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Variable.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Variable.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Variable.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,166 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" default="read,write" />
+ * <attribute name="mapped-name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "any"
+})
+@XmlRootElement(name = "variable")
+public class JPDL32Variable {
+
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+ @XmlAttribute(required = true)
+ protected String name;
+ @XmlAttribute
+ protected String access;
+ @XmlAttribute(name = "mapped-name")
+ protected String mappedName;
+
+ /**
+ * Gets the value of the any property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the access property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAccess() {
+ if (access == null) {
+ return "read,write";
+ } else {
+ return access;
+ }
+ }
+
+ /**
+ * Sets the value of the access property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAccess(String value) {
+ this.access = value;
+ }
+
+ /**
+ * Gets the value of the mappedName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMappedName() {
+ return mappedName;
+ }
+
+ /**
+ * Sets the value of the mappedName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMappedName(String value) {
+ this.mappedName = value;
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/JPDL32Variable.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ObjectFactory.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ObjectFactory.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ObjectFactory.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,344 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+
+package org.jboss.bpm.dialect.jpdl32.jaxb;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.bpm.dialect.jpdl32.jaxb package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _Controller_QNAME = new QName("urn:jbpm.org:jpdl-3.2", "controller");
+ private final static QName _Text_QNAME = new QName("urn:jbpm.org:jpdl-3.2", "text");
+ private final static QName _Template_QNAME = new QName("urn:jbpm.org:jpdl-3.2", "template");
+ private final static QName _To_QNAME = new QName("urn:jbpm.org:jpdl-3.2", "to");
+ private final static QName _Description_QNAME = new QName("urn:jbpm.org:jpdl-3.2", "description");
+ private final static QName _Subject_QNAME = new QName("urn:jbpm.org:jpdl-3.2", "subject");
+ private final static QName _Recipients_QNAME = new QName("urn:jbpm.org:jpdl-3.2", "recipients");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.bpm.dialect.jpdl32.jaxb
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link JPDL32State }
+ *
+ */
+ public JPDL32State createJPDL32State() {
+ return new JPDL32State();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Transition }
+ *
+ */
+ public JPDL32Transition createJPDL32Transition() {
+ return new JPDL32Transition();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32TaskNode }
+ *
+ */
+ public JPDL32TaskNode createJPDL32TaskNode() {
+ return new JPDL32TaskNode();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Decision }
+ *
+ */
+ public JPDL32Decision createJPDL32Decision() {
+ return new JPDL32Decision();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Fork }
+ *
+ */
+ public JPDL32Fork createJPDL32Fork() {
+ return new JPDL32Fork();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Event }
+ *
+ */
+ public JPDL32Event createJPDL32Event() {
+ return new JPDL32Event();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32SuperState }
+ *
+ */
+ public JPDL32SuperState createJPDL32SuperState() {
+ return new JPDL32SuperState();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32StartState }
+ *
+ */
+ public JPDL32StartState createJPDL32StartState() {
+ return new JPDL32StartState();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Variable }
+ *
+ */
+ public JPDL32Variable createJPDL32Variable() {
+ return new JPDL32Variable();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Join }
+ *
+ */
+ public JPDL32Join createJPDL32Join() {
+ return new JPDL32Join();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32CreateTimer }
+ *
+ */
+ public JPDL32CreateTimer createJPDL32CreateTimer() {
+ return new JPDL32CreateTimer();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32ProcessState.SubProcess }
+ *
+ */
+ public JPDL32ProcessState.SubProcess createJPDL32ProcessStateSubProcess() {
+ return new JPDL32ProcessState.SubProcess();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Timer }
+ *
+ */
+ public JPDL32Timer createJPDL32Timer() {
+ return new JPDL32Timer();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Swimlane }
+ *
+ */
+ public JPDL32Swimlane createJPDL32Swimlane() {
+ return new JPDL32Swimlane();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Transition.Condition }
+ *
+ */
+ public JPDL32Transition.Condition createJPDL32TransitionCondition() {
+ return new JPDL32Transition.Condition();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32CancelTimer }
+ *
+ */
+ public JPDL32CancelTimer createJPDL32CancelTimer() {
+ return new JPDL32CancelTimer();
+ }
+
+ /**
+ * Create an instance of {@link Delegation }
+ *
+ */
+ public Delegation createDelegation() {
+ return new Delegation();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Task.Reminder }
+ *
+ */
+ public JPDL32Task.Reminder createJPDL32TaskReminder() {
+ return new JPDL32Task.Reminder();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Assignment }
+ *
+ */
+ public JPDL32Assignment createJPDL32Assignment() {
+ return new JPDL32Assignment();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Action }
+ *
+ */
+ public JPDL32Action createJPDL32Action() {
+ return new JPDL32Action();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32EndState }
+ *
+ */
+ public JPDL32EndState createJPDL32EndState() {
+ return new JPDL32EndState();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32ExceptionHandler }
+ *
+ */
+ public JPDL32ExceptionHandler createJPDL32ExceptionHandler() {
+ return new JPDL32ExceptionHandler();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32MailNode }
+ *
+ */
+ public JPDL32MailNode createJPDL32MailNode() {
+ return new JPDL32MailNode();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32ProcessState }
+ *
+ */
+ public JPDL32ProcessState createJPDL32ProcessState() {
+ return new JPDL32ProcessState();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Node }
+ *
+ */
+ public JPDL32Node createJPDL32Node() {
+ return new JPDL32Node();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32ProcessDefinition }
+ *
+ */
+ public JPDL32ProcessDefinition createJPDL32ProcessDefinition() {
+ return new JPDL32ProcessDefinition();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Script }
+ *
+ */
+ public JPDL32Script createJPDL32Script() {
+ return new JPDL32Script();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Mail }
+ *
+ */
+ public JPDL32Mail createJPDL32Mail() {
+ return new JPDL32Mail();
+ }
+
+ /**
+ * Create an instance of {@link JPDL32Task }
+ *
+ */
+ public JPDL32Task createJPDL32Task() {
+ return new JPDL32Task();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Delegation }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:jbpm.org:jpdl-3.2", name = "controller")
+ public JAXBElement<Delegation> createController(Delegation value) {
+ return new JAXBElement<Delegation>(_Controller_QNAME, Delegation.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:jbpm.org:jpdl-3.2", name = "text")
+ public JAXBElement<String> createText(String value) {
+ return new JAXBElement<String>(_Text_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:jbpm.org:jpdl-3.2", name = "template")
+ public JAXBElement<String> createTemplate(String value) {
+ return new JAXBElement<String>(_Template_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:jbpm.org:jpdl-3.2", name = "to")
+ public JAXBElement<String> createTo(String value) {
+ return new JAXBElement<String>(_To_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:jbpm.org:jpdl-3.2", name = "description")
+ public JAXBElement<String> createDescription(String value) {
+ return new JAXBElement<String>(_Description_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:jbpm.org:jpdl-3.2", name = "subject")
+ public JAXBElement<String> createSubject(String value) {
+ return new JAXBElement<String>(_Subject_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "urn:jbpm.org:jpdl-3.2", name = "recipients")
+ public JAXBElement<String> createRecipients(String value) {
+ return new JAXBElement<String>(_Recipients_QNAME, String.class, null, value);
+ }
+
+}
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/package-info.java
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/package-info.java (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/package-info.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.07.17 at 09:51:16 AM CEST
+//
+
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "urn:jbpm.org:jpdl-3.2", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.bpm.dialect.jpdl32.jaxb;
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/java/org/jboss/bpm/dialect/jpdl32/jaxb/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/resources/jaxb-bindings.xml
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/resources/jaxb-bindings.xml (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/resources/jaxb-bindings.xml 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,10 @@
+<jxb:bindings version='1.0' xmlns:jxb='http://java.sun.com/xml/ns/jaxb' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <jxb:bindings schemaLocation="jpdl-3.2.xsd" node="/xsd:schema">
+ <jxb:schemaBindings>
+ <jxb:package name="org.jboss.bpm.dialect.jpdl32.model" />
+ <jxb:nameXmlTransform>
+ <jxb:elementName prefix="JPDL32" />
+ </jxb:nameXmlTransform>
+ </jxb:schemaBindings>
+ </jxb:bindings>
+</jxb:bindings>
\ No newline at end of file
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/resources/jaxb-bindings.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/dialects/jpdl32/src/main/resources/jpdl-3.2.xsd
===================================================================
--- api/trunk/modules/dialects/jpdl32/src/main/resources/jpdl-3.2.xsd (rev 0)
+++ api/trunk/modules/dialects/jpdl32/src/main/resources/jpdl-3.2.xsd 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,499 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xs:schema xmlns= "urn:jbpm.org:jpdl-3.2"
+ targetNamespace="urn:jbpm.org:jpdl-3.2"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+
+ <!-- PROCESS-DEFINITION -->
+ <!-- ################## -->
+ <xs:element name="process-definition">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="description" />
+ <xs:element ref="swimlane" />
+ <xs:element ref="start-state" />
+ <xs:group ref="node-elements"/>
+ <xs:group ref="action-elements" />
+ <xs:element ref="event" />
+ <xs:element ref="exception-handler" />
+ <xs:element ref="task" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- SWIMLANE -->
+ <!-- ######## -->
+ <xs:element name="swimlane">
+ <xs:complexType>
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element ref="assignment"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- NODES -->
+ <!-- ##### -->
+ <xs:element name="start-state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="description" />
+ <xs:element ref="task"/>
+ <xs:element ref="transition"/>
+ <xs:element ref="event"/>
+ <xs:element ref="exception-handler"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="end-state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="description" />
+ <xs:element ref="event"/>
+ <xs:element ref="exception-handler"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="end-complete-process" type="booleanType" use="optional" default="false"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="decision">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="description" />
+ <xs:element name="handler" type="delegation" />
+ <xs:element ref="event"/>
+ <xs:element ref="exception-handler"/>
+ <xs:element ref="transition"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="expression" type="xs:string" />
+ <xs:attribute name="async" type="xs:string" default="false" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="fork">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="script" />
+ <xs:group ref="node-content-elements" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="join">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="node-content-elements" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="node">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:group ref="action-elements" />
+ </xs:choice>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="node-content-elements" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="process-state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="sub-process">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string"
+ use="required" />
+ <xs:attribute name="version" type="xs:integer" />
+ <xs:attribute name="binding" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element ref="variable" />
+ <xs:group ref="node-content-elements" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required" />
+ <xs:attribute name="async" type="xs:string" default="false" />
+ <xs:attribute name="binding" type="bindingType"></xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="node-content-elements"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="super-state">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="node-elements"/>
+ <xs:group ref="node-content-elements"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="task-node">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="task" />
+ <xs:group ref="node-content-elements" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="create-tasks" type="booleanType" default="true" />
+ <xs:attribute name="end-tasks" type="booleanType" default="false" />
+ <xs:attribute name="signal" default="last">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="unsynchronized"/>
+ <xs:enumeration value="never"/>
+ <xs:enumeration value="first"/>
+ <xs:enumeration value="first-wait"/>
+ <xs:enumeration value="last"/>
+ <xs:enumeration value="last-wait"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="mail-node">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="subject" />
+ <xs:element ref="text" />
+ <xs:group ref="node-content-elements"/>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ <xs:attribute name="template" type="xs:string"/>
+ <xs:attribute name="actors" type="xs:string"/>
+ <xs:attribute name="to" type="xs:string"/>
+ <xs:attribute name="subject" type="xs:string"/>
+ <xs:attribute name="text" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+
+ <!-- TRANSITION -->
+ <!-- ########## -->
+ <xs:element name="transition">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="description" />
+ <xs:element name="condition">
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="expression" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:group ref="action-elements"/>
+ <xs:element ref="exception-handler" />
+ </xs:choice>
+ <xs:attribute name="to" type="xs:string" use="required" />
+ <xs:attribute name="name" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- ACTIONS -->
+ <!-- ####### -->
+ <xs:element name="action">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="config-type" default="field" type="xs:string" />
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="ref-name" type="xs:string" />
+ <xs:attribute name="accept-propagated-events" type="booleanType" default="true" />
+ <xs:attribute name="expression" type="xs:string" />
+ <xs:attribute name="async" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="cancel-timer">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="create-timer">
+ <xs:complexType>
+ <xs:choice minOccurs="0">
+ <xs:element ref="action"/>
+ <xs:element ref="script"/>
+ </xs:choice>
+ <xs:attribute name="duedate" type="xs:string" use="required" />
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="repeat" type="xs:string" />
+ <xs:attribute name="transition" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="script">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="accept-propagated-events" type="booleanType" default="true" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="mail">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="subject" />
+ <xs:element ref="text" />
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="async" type="xs:string" default="false" />
+ <xs:attribute name="template" type="xs:string"/>
+ <xs:attribute name="actors" type="xs:string"/>
+ <xs:attribute name="to" type="xs:string"/>
+ <xs:attribute name="subject" type="xs:string"/>
+ <xs:attribute name="text" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- EVENT -->
+ <!-- ##### -->
+ <xs:element name="event">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="action-elements"/>
+ </xs:choice>
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:string"/>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="node-enter"/>
+ <xs:enumeration value="node-leave"/>
+ <xs:enumeration value="process-start"/>
+ <xs:enumeration value="process-end"/>
+ <xs:enumeration value="task-create"/>
+ <xs:enumeration value="task-assign"/>
+ <xs:enumeration value="task-start"/>
+ <xs:enumeration value="task-end"/>
+ <xs:enumeration value="before-signal"/>
+ <xs:enumeration value="after-signal"/>
+ <xs:enumeration value="superstate-enter"/>
+ <xs:enumeration value="superstate-leave"/>
+ <xs:enumeration value="timer-create"/>
+ <xs:enumeration value="subprocess-created"/>
+ <xs:enumeration value="subprocess-end"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- EXCEPTION-HANDLER -->
+ <!-- ################# -->
+ <xs:element name="exception-handler">
+ <xs:complexType>
+ <xs:choice minOccurs="1" maxOccurs="unbounded">
+ <xs:element ref="action"/>
+ <xs:element ref="script"/>
+ </xs:choice>
+ <xs:attribute name="exception-class" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- TASK -->
+ <!-- #### -->
+ <xs:element name="task">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="description" />
+ <xs:element ref="assignment"/>
+ <xs:element ref="controller"/>
+ <xs:element ref="event"/>
+ <xs:element ref="timer"/>
+ <xs:element name="reminder">
+ <xs:complexType>
+ <xs:attribute name="duedate" type="xs:string" use="required" />
+ <xs:attribute name="repeat" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="blocking" type="booleanType" default="false"/>
+ <xs:attribute name="signalling" type="booleanType" default="true"/>
+ <xs:attribute name="description" type="xs:string" />
+ <xs:attribute name="duedate" type="xs:string" />
+ <xs:attribute name="swimlane" type="xs:string" />
+ <xs:attribute name="priority" type="priorityType" default="normal" />
+ <xs:attribute name="notify" type="booleanType" default="false"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="controller" type="delegation" />
+
+ <xs:element name="assignment">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="delegation">
+ <xs:attribute name="expression" type="xs:string" />
+ <xs:attribute name="actor-id" type="xs:string" />
+ <xs:attribute name="pooled-actors" type="xs:string" />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <!-- TIMER -->
+ <!-- ##### -->
+ <xs:element name="timer">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:group ref="action-elements" />
+ </xs:choice>
+ <xs:attribute name="duedate" type="xs:string" use="required" />
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="repeat" type="xs:string" />
+ <xs:attribute name="transition" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="variable">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="access" type="xs:string" default="read,write"/>
+ <xs:attribute name="mapped-name" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+
+ <!-- MAIL -->
+ <!-- #### -->
+ <xs:element name="to" type="xs:string"/>
+ <xs:element name="recipients" type="xs:string"/>
+ <xs:element name="subject" type="xs:string"/>
+ <xs:element name="text" type="xs:string"/>
+ <xs:element name="template" type="xs:string"/>
+
+ <!-- TYPES AND GROUPS -->
+ <!-- ################ -->
+
+ <xs:element name="description" type="xs:string" />
+
+ <xs:complexType name="delegation" mixed="true">
+ <xs:sequence>
+ <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="config-type" default="field" type="xs:string" />
+ </xs:complexType>
+
+ <xs:simpleType name="configType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="field"/>
+ <xs:enumeration value="bean"/>
+ <xs:enumeration value="constructor"/>
+ <xs:enumeration value="configuration-property"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="booleanType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="yes"/>
+ <xs:enumeration value="no"/>
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ <xs:enumeration value="on"/>
+ <xs:enumeration value="off"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="priorityType">
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="highest"/>
+ <xs:enumeration value="high"/>
+ <xs:enumeration value="normal"/>
+ <xs:enumeration value="low"/>
+ <xs:enumeration value="lowest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:restriction base="xs:int"/>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+
+ <xs:group name="node-elements">
+ <xs:choice>
+ <xs:element ref="node"/>
+ <xs:element ref="state"/>
+ <xs:element ref="task-node"/>
+ <xs:element ref="super-state"/>
+ <xs:element ref="process-state"/>
+ <xs:element ref="fork"/>
+ <xs:element ref="join"/>
+ <xs:element ref="decision"/>
+ <xs:element ref="end-state"/>
+ <xs:element ref="mail-node"/>
+ </xs:choice>
+ </xs:group>
+
+ <xs:group name="action-elements">
+ <xs:choice>
+ <xs:element ref="action"/>
+ <xs:element ref="script"/>
+ <xs:element ref="create-timer"/>
+ <xs:element ref="cancel-timer"/>
+ <xs:element ref="mail"/>
+ </xs:choice>
+ </xs:group>
+
+ <xs:group name="node-content-elements">
+ <xs:choice>
+ <xs:element ref="description" />
+ <xs:element ref="event"/>
+ <xs:element ref="exception-handler"/>
+ <xs:element ref="timer"/>
+ <xs:element ref="transition"/>
+ </xs:choice>
+ </xs:group>
+
+ <xs:simpleType name="bindingType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="late"></xs:enumeration>
+ <xs:enumeration value="early"></xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
Property changes on: api/trunk/modules/dialects/jpdl32/src/main/resources/jpdl-3.2.xsd
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/ProcessManagerImpl.java
===================================================================
--- api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/ProcessManagerImpl.java (rev 0)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/ProcessManagerImpl.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -0,0 +1,49 @@
+/*
+ * 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.jboss.bpm.client.internal;
+
+// $Id$
+
+import java.util.Map;
+
+import org.jboss.bpm.client.DialectHandler;
+import org.jboss.bpm.client.ProcessEngine;
+import org.jboss.bpm.client.ProcessManager;
+
+/**
+ * The process manager is the entry point to create, find and otherwise manage processes.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class ProcessManagerImpl extends ProcessManager
+{
+ public void setProcessEngine(ProcessEngine engine)
+ {
+ this.engine = engine;
+ }
+
+ public void setDialectHandlers(Map<String, DialectHandler> dialectHandlers)
+ {
+ this.dialectHandlers = dialectHandlers;
+ }
+}
Property changes on: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/ProcessManagerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java
===================================================================
--- api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java 2008-07-17 09:21:11 UTC (rev 1662)
@@ -23,18 +23,8 @@
//$Id$
-import org.jboss.bpm.model.ComplexGateway;
-import org.jboss.bpm.model.EndEvent;
-import org.jboss.bpm.model.ExclusiveGateway;
-import org.jboss.bpm.model.FlowObject;
-import org.jboss.bpm.model.InclusiveGateway;
-import org.jboss.bpm.model.IntermediateEvent;
-import org.jboss.bpm.model.ParallelGateway;
import org.jboss.bpm.model.Process;
import org.jboss.bpm.model.ProcessBuilder;
-import org.jboss.bpm.model.StartEvent;
-import org.jboss.bpm.model.SubProcess;
-import org.jboss.bpm.model.Task;
import org.jboss.bpm.runtime.ExecutionHandler;
import org.jboss.bpm.runtime.FlowHandler;
import org.jboss.bpm.runtime.SignalHandler;
@@ -201,72 +191,4 @@
}
return this;
}
-
- // ============================
-
- public Process createProcess(String name)
- {
- proc = new ProcessImpl(name);
- return proc;
- }
-
- public SubProcess createSubProcess(String name)
- {
- flowObject = new SubProcessImpl(name);
- return (SubProcess)flowObject;
- }
-
- public StartEvent createStartEvent()
- {
- flowObject = new StartEventImpl();
- return (StartEvent)flowObject;
- }
-
- public IntermediateEvent createIntermediateEvent(String name)
- {
- flowObject = new IntermediateEventImpl(name);
- return (IntermediateEvent)flowObject;
- }
-
- public EndEvent createEndEvent(String name)
- {
- flowObject = new EndEventImpl(name);
- return (EndEvent)flowObject;
- }
-
- public ExclusiveGateway createExclusiveGateway(String name)
- {
- flowObject = new ExclusiveGatewayImpl(name);
- return (ExclusiveGateway)flowObject;
- }
-
- public InclusiveGateway createInclusiveGateway(String name)
- {
- flowObject = new InclusiveGatewayImpl(name);
- return (InclusiveGateway)flowObject;
- }
-
- public ComplexGateway createComplexGateway(String name)
- {
- flowObject = new ComplexGatewayImpl(name);
- return (ComplexGateway)flowObject;
- }
-
- public ParallelGateway createParallelGateway(String name)
- {
- flowObject = new ParallelGatewayImpl(name);
- return (ParallelGateway)flowObject;
- }
-
- public Task createTask(String name)
- {
- flowObject = new TaskImpl(name);
- return (Task)flowObject;
- }
-
- public FlowObject addFlowObject(FlowObject fo)
- {
- proc.addFlowObject(fo);
- return fo;
- }
}
\ No newline at end of file
Modified: api/trunk/modules/testsuite/pom.xml
===================================================================
--- api/trunk/modules/testsuite/pom.xml 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/testsuite/pom.xml 2008-07-17 09:21:11 UTC (rev 1662)
@@ -31,18 +31,12 @@
<!-- Compile Dependencies -->
<dependency>
<groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api-dialect-jaxb</artifactId>
+ <artifactId>jbpm-api</artifactId>
<version>${version}</version>
</dependency>
<!-- Test Dependencies -->
<dependency>
- <groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api-impl</artifactId>
- <version>${version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
@@ -52,6 +46,26 @@
<artifactId>log4j</artifactId>
<scope>test</scope>
</dependency>
+
+ <!-- Runtime Dependencies -->
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-impl</artifactId>
+ <version>${version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-dialect-jaxb</artifactId>
+ <version>${version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-dialect-jpdl32</artifactId>
+ <version>${version}</version>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
<!-- Plugins -->
Modified: api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
===================================================================
--- api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-17 09:21:11 UTC (rev 1662)
@@ -14,9 +14,17 @@
<bean name="jBPMProcessBuilderFactory" class="org.jboss.bpm.model.internal.ProcessBuilderFactoryImpl"/>
<!-- The ProcessManager -->
- <bean name="jBPMProcessManager" class="org.jboss.bpm.dialect.jaxb.ProcessManagerImpl">
+ <bean name="jBPMProcessManager" class="org.jboss.bpm.client.internal.ProcessManagerImpl">
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
+ <property name="dialectHandlers">
+ <map keyClass="java.lang.String" valueClass="org.jboss.bpm.client.DialectHandler">
+ <entry><key>api10</key><value><inject bean="jBPMDialectHandlerAPI10"/></value></entry>
+ <entry><key>jpdl32</key><value><inject bean="jBPMDialectHandlerJPDL32"/></value></entry>
+ </map>
+ </property>
</bean>
+ <bean name="jBPMDialectHandlerAPI10" class="org.jboss.bpm.dialect.jaxb.DialectHandlerImpl"/>
+ <bean name="jBPMDialectHandlerJPDL32" class="org.jboss.bpm.dialect.jpdl32.DialectHandlerImpl"/>
<!-- The ExecutionManager -->
<bean name="jBPMExecutionManager" class="org.jboss.bpm.client.internal.ExecutionManagerImpl">
Modified: api/trunk/pom.xml
===================================================================
--- api/trunk/pom.xml 2008-07-17 07:01:28 UTC (rev 1661)
+++ api/trunk/pom.xml 2008-07-17 09:21:11 UTC (rev 1662)
@@ -34,6 +34,7 @@
<module>modules/api</module>
<module>modules/impl</module>
<module>modules/dialects/jaxb</module>
+ <module>modules/dialects/jpdl32</module>
<module>modules/testsuite</module>
</modules>
15 years, 11 months
JBoss JBPM SVN: r1661 - in api/trunk: modules/api and 3 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 03:01:28 -0400 (Thu, 17 Jul 2008)
New Revision: 1661
Modified:
api/trunk/modules/api/pom.xml
api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java
api/trunk/modules/impl/
api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
api/trunk/pom.xml
Log:
jBPM3 integration uses API
Modified: api/trunk/modules/api/pom.xml
===================================================================
--- api/trunk/modules/api/pom.xml 2008-07-17 07:01:18 UTC (rev 1660)
+++ api/trunk/modules/api/pom.xml 2008-07-17 07:01:28 UTC (rev 1661)
@@ -12,7 +12,7 @@
<!-- $Id$ -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <name>JBoss jBPM - API Source</name>
+ <name>JBoss jBPM - API</name>
<groupId>org.jboss.jbpm</groupId>
<artifactId>jbpm-api</artifactId>
<packaging>jar</packaging>
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java 2008-07-17 07:01:18 UTC (rev 1660)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java 2008-07-17 07:01:28 UTC (rev 1661)
@@ -50,12 +50,12 @@
/**
* Add a {@link SequenceFlow} with a given name
*/
- ProcessBuilder addSequenceFlow(String name);
+ ProcessBuilder addSequenceFlow(String targetName);
/**
* Add a {@link MessageFlow} with a given name
*/
- ProcessBuilder addMessageFlow(String name);
+ ProcessBuilder addMessageFlow(String targetName);
/**
* Add a {@link StartEvent}
Property changes on: api/trunk/modules/impl
___________________________________________________________________
Name: svn:ignore
+ target
Modified: api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
===================================================================
--- api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-17 07:01:18 UTC (rev 1660)
+++ api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-17 07:01:28 UTC (rev 1661)
@@ -1,30 +1,30 @@
<deployment xmlns="urn:jboss:bean-deployer:2.0">
- <!-- The Kernel Locator -->
+ <!-- The KernelLocator -->
<bean name="KernelLocator" class="org.jboss.kernel.plugins.util.KernelLocator"/>
- <!-- The process engine -->
+ <!-- The ProcessEngine -->
<bean name="jBPMProcessEngine" class="org.jboss.bpm.client.internal.ProcessEngineImpl">
<property name="processManager"><inject bean="jBPMProcessManager"/></property>
<property name="executionManager"><inject bean="jBPMExecutionManager"/></property>
<property name="signalManager"><inject bean="jBPMSignalManager"/></property>
</bean>
- <!-- The process manager -->
+ <!-- The ProcessBuilderFactory -->
+ <bean name="jBPMProcessBuilderFactory" class="org.jboss.bpm.model.internal.ProcessBuilderFactoryImpl"/>
+
+ <!-- The ProcessManager -->
<bean name="jBPMProcessManager" class="org.jboss.bpm.dialect.jaxb.ProcessManagerImpl">
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
</bean>
- <!-- The execution manager -->
+ <!-- The ExecutionManager -->
<bean name="jBPMExecutionManager" class="org.jboss.bpm.client.internal.ExecutionManagerImpl">
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
</bean>
- <!-- The execution manager -->
+ <!-- The SignalManager -->
<bean name="jBPMSignalManager" class="org.jboss.bpm.client.internal.SignalManagerImpl">
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
</bean>
-
- <!-- The process builder -->
- <bean name="jBPMProcessBuilderFactory" class="org.jboss.bpm.model.internal.ProcessBuilderFactoryImpl"/>
</deployment>
\ No newline at end of file
Modified: api/trunk/pom.xml
===================================================================
--- api/trunk/pom.xml 2008-07-17 07:01:18 UTC (rev 1660)
+++ api/trunk/pom.xml 2008-07-17 07:01:28 UTC (rev 1661)
@@ -15,7 +15,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <name>JBoss jBPM - API</name>
+ <name>JBoss jBPM - API Root</name>
<groupId>org.jboss.jbpm</groupId>
<artifactId>jbpm-api-root</artifactId>
<packaging>pom</packaging>
15 years, 11 months
JBoss JBPM SVN: r1660 - in jbpm3/trunk: modules/jpdl/core and 4 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 03:01:18 -0400 (Thu, 17 Jul 2008)
New Revision: 1660
Modified:
jbpm3/trunk/.classpath
jbpm3/trunk/modules/jpdl/core/pom.xml
jbpm3/trunk/modules/jpdl/core/src/main/java/org/jbpm/integration/model/ProcessAdapter.java
jbpm3/trunk/modules/jpdl/core/src/main/resources/jbpm-beans.xml
jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/sequence/basic-sequence-jbpm32.xml
jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/task/basic-task-jbpm32.xml
jbpm3/trunk/pom.xml
Log:
jBPM3 integration uses API
Modified: jbpm3/trunk/.classpath
===================================================================
--- jbpm3/trunk/.classpath 2008-07-17 06:26:45 UTC (rev 1659)
+++ jbpm3/trunk/.classpath 2008-07-17 07:01:18 UTC (rev 1660)
@@ -1,35 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="modules/jpdl/core/target/classes" path="modules/jpdl/core/src/main/java"/>
+ <classpathentry kind="src" path="modules/jpdl/core/src/testsuite/java"/>
<classpathentry kind="src" output="modules/jpdl/core/target/test-classes" path="modules/jpdl/core/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/core/target/classes" path="modules/jpdl/core/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/core/target/test-classes" path="modules/jpdl/core/src/test/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/core/target/test-classes" path="modules/jpdl/core/src/testsuite/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/db/target/classes" path="modules/jpdl/db/src/main/resources"/>
- <classpathentry kind="src" output="modules/jpdl/examples/target/test-classes" path="modules/jpdl/examples/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/examples/target/test-classes" path="modules/jpdl/examples/src/test/resources"/>
- <classpathentry kind="src" output="modules/jpdl/identity/target/classes" path="modules/jpdl/identity/src/main/java"/>
- <classpathentry kind="src" output="modules/jpdl/identity/target/test-classes" path="modules/jpdl/identity/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/identity/target/classes" path="modules/jpdl/identity/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/identity/target/test-classes" path="modules/jpdl/identity/src/test/resources"/>
- <classpathentry kind="src" output="modules/jpdl/simulation/target/classes" path="modules/jpdl/simulation/src/main/java"/>
- <classpathentry kind="src" output="modules/jpdl/simulation/target/test-classes" path="modules/jpdl/simulation/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/simulation/target/classes" path="modules/jpdl/simulation/src/main/resources"/>
- <classpathentry kind="src" output="modules/jpdl/ws/target/classes" path="modules/jpdl/ws/src/main/java"/>
- <classpathentry excluding="**" kind="src" output="modules/jpdl/ws/target/classes" path="modules/jpdl/ws/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/console/target/classes" path="modules/console/src/main/resources"/>
- <classpathentry kind="src" output="modules/enterprise/target/classes" path="modules/enterprise/src/main/java"/>
- <classpathentry kind="src" output="modules/enterprise/target/test-classes" path="modules/enterprise/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="modules/enterprise/target/classes" path="modules/enterprise/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/enterprise/target/test-classes" path="modules/enterprise/src/test/resources"/>
- <classpathentry kind="src" output="modules/jbpm4jsf/target/classes" path="modules/jbpm4jsf/src/main/java"/>
- <classpathentry excluding="**" kind="src" output="modules/jbpm4jsf/target/classes" path="modules/jbpm4jsf/src/main/resources"/>
- <classpathentry kind="src" output="modules/bamconsole/ejb/target/classes" path="modules/bamconsole/ejb/src/main/java"/>
- <classpathentry kind="src" output="modules/bamconsole/ejb/target/test-classes" path="modules/bamconsole/ejb/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="modules/bamconsole/ejb/target/classes" path="modules/bamconsole/ejb/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/bamconsole/ejb/target/test-classes" path="modules/bamconsole/ejb/src/test/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/bamconsole/war/target/classes" path="modules/bamconsole/war/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/bamconsole/ear/target/classes" path="modules/bamconsole/ear/src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
Modified: jbpm3/trunk/modules/jpdl/core/pom.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/pom.xml 2008-07-17 06:26:45 UTC (rev 1659)
+++ jbpm3/trunk/modules/jpdl/core/pom.xml 2008-07-17 07:01:18 UTC (rev 1660)
@@ -30,9 +30,15 @@
<dependency>
<groupId>org.jboss.jbpm</groupId>
<artifactId>jbpm-api</artifactId>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-impl</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
<artifactId>jbpm-api-testsuite</artifactId>
<type>zip</type>
</dependency>
Modified: jbpm3/trunk/modules/jpdl/core/src/main/java/org/jbpm/integration/model/ProcessAdapter.java
===================================================================
--- jbpm3/trunk/modules/jpdl/core/src/main/java/org/jbpm/integration/model/ProcessAdapter.java 2008-07-17 06:26:45 UTC (rev 1659)
+++ jbpm3/trunk/modules/jpdl/core/src/main/java/org/jbpm/integration/model/ProcessAdapter.java 2008-07-17 07:01:18 UTC (rev 1660)
@@ -23,23 +23,13 @@
// $Id$
-import java.util.Iterator;
import java.util.List;
import org.jboss.bpm.InvalidProcessException;
-import org.jboss.bpm.model.ExecutionHandler;
-import org.jboss.bpm.model.Flow;
-import org.jboss.bpm.model.FlowObject;
-import org.jboss.bpm.model.MultipleOutFlowSupport;
import org.jboss.bpm.model.Process;
-import org.jboss.bpm.model.SingleOutFlowSupport;
-import org.jboss.bpm.model.internal.EndEventImpl;
-import org.jboss.bpm.model.internal.ExecutionHandlerImpl;
-import org.jboss.bpm.model.internal.ProcessImpl;
-import org.jboss.bpm.model.internal.SequenceFlowImpl;
-import org.jboss.bpm.model.internal.StartEventImpl;
-import org.jboss.bpm.model.internal.TaskImpl;
-import org.jboss.bpm.model.internal.jaxb.JAXBExecutionHandler;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+import org.jboss.bpm.runtime.ExecutionHandler;
import org.jbpm.graph.def.Action;
import org.jbpm.graph.def.Event;
import org.jbpm.graph.def.Node;
@@ -57,40 +47,40 @@
public class ProcessAdapter
{
+ @SuppressWarnings("unchecked")
public static Process buildProcess(org.jbpm.graph.def.ProcessDefinition oldPD)
{
- ProcessImpl apiProc = new ProcessImpl(oldPD.getName());
+ String procName = oldPD.getName();
+ ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder(procName);
List<org.jbpm.graph.def.Node> oldNodes = oldPD.getNodes();
for (org.jbpm.graph.def.Node oldNode : oldNodes)
{
- FlowObject flowObject = NodeAdapter.adaptNode(apiProc, oldNode);
- apiProc.addFlowObject(flowObject);
+ NodeAdapter.adaptNode(procBuilder, oldNode);
}
- return apiProc;
+ return procBuilder.getProcess();
}
static class NodeAdapter
{
- static FlowObject adaptNode(Process apiProc, Node oldNode)
+ static void adaptNode(ProcessBuilder procBuilder, Node oldNode)
{
- FlowObject flowObject;
if (oldNode instanceof StartState)
{
- flowObject = new StartEventImpl();
- initTranstions(flowObject, oldNode);
+ procBuilder.addStartEvent();
+ initTranstions(procBuilder, oldNode);
}
else if (oldNode instanceof EndState)
{
- flowObject = new EndEventImpl(oldNode.getName());
- initTranstions(flowObject, oldNode);
+ procBuilder.addEndEvent(oldNode.getName());
+ initTranstions(procBuilder, oldNode);
}
else if (oldNode instanceof State)
{
- flowObject = new TaskImpl(oldNode.getName());
+ procBuilder.addTask(oldNode.getName());
Event event = oldNode.getEvent(Event.EVENTTYPE_NODE_ENTER);
if (event != null)
{
- List actions = event.getActions();
+ List<?> actions = event.getActions();
if (actions == null || actions.size() == 0)
throw new InvalidProcessException("Cannot find action on event: " + event);
if (actions.size() > 1)
@@ -101,47 +91,25 @@
if (obj instanceof ExecutionHandler == false)
throw new InvalidProcessException("Node action is not of type ExecutionHandler");
- JAXBExecutionHandler jaxbHandler = new JAXBExecutionHandler();
- jaxbHandler.setClassName(obj.getClass().getName());
- ((TaskImpl)flowObject).setExecutionHandler(new ExecutionHandlerImpl(jaxbHandler));
+ procBuilder.addExecutionHandler(obj.getClass());
}
- initTranstions(flowObject, oldNode);
+ initTranstions(procBuilder, oldNode);
}
else
{
throw new InvalidProcessException("Unsupported node type: " + oldNode);
}
- return flowObject;
}
- private static void initTranstions(FlowObject flowObject, Node oldNode)
+ private static void initTranstions(ProcessBuilder procBuilder, Node oldNode)
{
- if (flowObject instanceof SingleOutFlowSupport)
+ List<?> outTrans = oldNode.getLeavingTransitions();
+ if (outTrans != null && outTrans.size() > 0)
{
- SingleOutFlowSupport sof = (SingleOutFlowSupport)flowObject;
- List outTrans = oldNode.getLeavingTransitions();
- if (outTrans != null && outTrans.size() > 0)
- {
- Transition trans = (Transition)outTrans.get(0);
- Flow flow = new SequenceFlowImpl(trans.getTo().getName());
- sof.setOutFlow(flow);
- }
+ Transition trans = (Transition)outTrans.get(0);
+ String targetName = trans.getTo().getName();
+ procBuilder.addSequenceFlow(targetName);
}
- if (flowObject instanceof MultipleOutFlowSupport)
- {
- MultipleOutFlowSupport mof = (MultipleOutFlowSupport)flowObject;
- List outTrans = oldNode.getLeavingTransitions();
- if (outTrans != null && outTrans.size() > 0)
- {
- Iterator it = outTrans.iterator();
- while (it.hasNext())
- {
- Transition trans = (Transition)it.next();
- Flow flow = new SequenceFlowImpl(trans.getTo().getName());
- mof.addOutFlow(flow);
- }
- }
- }
}
}
}
Modified: jbpm3/trunk/modules/jpdl/core/src/main/resources/jbpm-beans.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/src/main/resources/jbpm-beans.xml 2008-07-17 06:26:45 UTC (rev 1659)
+++ jbpm3/trunk/modules/jpdl/core/src/main/resources/jbpm-beans.xml 2008-07-17 07:01:18 UTC (rev 1660)
@@ -1,29 +1,30 @@
-<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jboss:bean-deployer:2.0 bean-deployer_2_0.xsd"
- xmlns="urn:jboss:bean-deployer:2.0">
-
- <!-- The Kernel Locator -->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!-- The KernelLocator -->
<bean name="KernelLocator" class="org.jboss.kernel.plugins.util.KernelLocator"/>
- <!-- The process engine -->
+ <!-- The ProcessEngine -->
<bean name="jBPMProcessEngine" class="org.jboss.bpm.client.internal.ProcessEngineImpl">
<property name="processManager"><inject bean="jBPMProcessManager"/></property>
<property name="executionManager"><inject bean="jBPMExecutionManager"/></property>
<property name="signalManager"><inject bean="jBPMSignalManager"/></property>
</bean>
- <!-- The process manager -->
+ <!-- The ProcessBuilderFactory -->
+ <bean name="jBPMProcessBuilderFactory" class="org.jboss.bpm.model.internal.ProcessBuilderFactoryImpl"/>
+
+ <!-- The ProcessManager -->
<bean name="jBPMProcessManager" class="org.jbpm.integration.client.ProcessManagerImpl">
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
</bean>
- <!-- The execution manager -->
+ <!-- The ExecutionManager -->
<bean name="jBPMExecutionManager" class="org.jboss.bpm.client.internal.ExecutionManagerImpl">
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
</bean>
- <!-- The execution manager -->
+ <!-- The SignalManager -->
<bean name="jBPMSignalManager" class="org.jboss.bpm.client.internal.SignalManagerImpl">
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
</bean>
-
</deployment>
\ No newline at end of file
Modified: jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/sequence/basic-sequence-jbpm32.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/sequence/basic-sequence-jbpm32.xml 2008-07-17 06:26:45 UTC (rev 1659)
+++ jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/sequence/basic-sequence-jbpm32.xml 2008-07-17 07:01:18 UTC (rev 1660)
@@ -1,4 +1,4 @@
-<process-definition xmlns='urn:jbpm.org:jpdl-3.2' name='basic-sequence'>
+<process-definition xmlns='urn:jbpm.org:jpdl-3.2' name='testBasicSequence'>
<start-state>
<transition to='stateA' />
</start-state>
Modified: jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/task/basic-task-jbpm32.xml
===================================================================
--- jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/task/basic-task-jbpm32.xml 2008-07-17 06:26:45 UTC (rev 1659)
+++ jbpm3/trunk/modules/jpdl/core/src/test/resources/samples/task/basic-task-jbpm32.xml 2008-07-17 07:01:18 UTC (rev 1660)
@@ -1,4 +1,4 @@
-<process-definition xmlns='urn:jbpm.org:jpdl-3.2' name='basic-task'>
+<process-definition xmlns='urn:jbpm.org:jpdl-3.2' name='testBasicTask'>
<start-state>
<transition to='stateA' />
</start-state>
Modified: jbpm3/trunk/pom.xml
===================================================================
--- jbpm3/trunk/pom.xml 2008-07-17 06:26:45 UTC (rev 1659)
+++ jbpm3/trunk/pom.xml 2008-07-17 07:01:18 UTC (rev 1660)
@@ -90,6 +90,11 @@
</dependency>
<dependency>
<groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-impl</artifactId>
+ <version>${jboss.jbpm.api.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
<artifactId>jbpm-api-testsuite</artifactId>
<version>${jboss.jbpm.api.version}</version>
<type>zip</type>
15 years, 11 months
JBoss JBPM SVN: r1659 - api/trunk/modules.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 02:26:45 -0400 (Thu, 17 Jul 2008)
New Revision: 1659
Added:
api/trunk/modules/impl/
Removed:
api/trunk/modules/ri/
Log:
move ri to impl
Copied: api/trunk/modules/impl (from rev 1658, api/trunk/modules/ri)
15 years, 11 months
JBoss JBPM SVN: r1658 - api/trunk/modules.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 02:26:18 -0400 (Thu, 17 Jul 2008)
New Revision: 1658
Removed:
api/trunk/modules/impl/
Log:
move ri to impl
15 years, 11 months
JBoss JBPM SVN: r1657 - in api/trunk/modules: ri and 10 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 02:22:12 -0400 (Thu, 17 Jul 2008)
New Revision: 1657
Added:
api/trunk/modules/ri/
api/trunk/modules/ri/pom.xml
api/trunk/modules/ri/scripts/
api/trunk/modules/ri/src/
api/trunk/modules/ri/src/main/
api/trunk/modules/ri/src/main/java/
api/trunk/modules/ri/src/main/java/org/
api/trunk/modules/ri/src/main/java/org/jboss/
api/trunk/modules/ri/src/main/java/org/jboss/bpm/
api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/
api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/
api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ActivityImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ComplexGatewayImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EndEventImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EventImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExclusiveGatewayImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExecutionHandlerImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowHandlerImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowObjectImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowSchedulerImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/GatewayImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerSetterSupport.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/InclusiveGatewayImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/IntermediateEventImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MessageFlowImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleInFlowSetterSupport.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleOutFlowSetterSupport.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ParallelGatewayImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderFactoryImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/RuntimeProcessImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SequenceFlowImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SignalHandlerImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleInFlowSetterSupport.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleOutFlowSetterSupport.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/StartEventImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SubProcessImpl.java
api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/TaskImpl.java
api/trunk/modules/ri/src/main/resources/
Log:
Add modules impl
Added: api/trunk/modules/ri/pom.xml
===================================================================
--- api/trunk/modules/ri/pom.xml (rev 0)
+++ api/trunk/modules/ri/pom.xml 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>JBoss jBPM - API Impl</name>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-impl</artifactId>
+ <packaging>jar</packaging>
+
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-root</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <!-- Dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api</artifactId>
+ <version>${version}</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Property changes on: api/trunk/modules/ri/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,187 @@
+/*
+ * 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.jboss.bpm.client.internal;
+
+// $Id$
+
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jboss.bpm.NotImplementedException;
+import org.jboss.bpm.client.ExecutionManager;
+import org.jboss.bpm.client.ProcessEngine;
+import org.jboss.bpm.model.EndEvent;
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.Result;
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.model.StartEvent;
+import org.jboss.bpm.model.internal.SequenceFlowImpl;
+import org.jboss.bpm.runtime.Attachments;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.MutableFlowScheduler;
+import org.jboss.bpm.runtime.RuntimeProcess;
+import org.jboss.bpm.runtime.SignalHandler;
+import org.jboss.bpm.runtime.Token;
+import org.jboss.bpm.runtime.FlowScheduler.Tuple;
+
+/**
+ * The process manager is the entry point to create, find and otherwise manage processes.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class ExecutionManagerImpl extends ExecutionManager
+{
+ // provide logging
+ private static final Log log = LogFactory.getLog(ExecutionManager.class);
+
+ public void setProcessEngine(ProcessEngine engine)
+ {
+ this.engine = engine;
+ }
+
+ @Override
+ public Future<Result> startProcess(RuntimeProcess rtProc, Attachments att)
+ {
+ Process proc = rtProc.getProcess();
+ throwSignal(new Signal(proc, Signal.Type.ENTER_PROCESS));
+ MutableFlowScheduler flowScheduler = rtProc.getFlowScheduler();
+ try
+ {
+ Token initalToken = new Token(proc, att);
+ StartEvent start = proc.getStartEvent();
+ Tuple tuple = new Tuple(new InitialFlow(start), initalToken);
+ flowScheduler.scheduleTuple(tuple);
+
+ while (flowScheduler.peekHeadTuple() != null)
+ {
+ // Peek the head flow
+ tuple = flowScheduler.peekHeadTuple();
+ Flow flow = tuple.getFlow();
+ Token token = tuple.getToken();
+
+ // Get the target and its handlers
+ FlowObject target = flow.getTarget();
+ ExecutionHandler exHandler = getExecutionHandler(target);
+ SignalHandler sigHandler = getSignalHandler(target);
+ FlowHandler flowHandler = getFlowHandler(target);
+
+ // Execute the FlowObject's ExecutionHandler
+ try
+ {
+ throwSignal(sigHandler.getEnterSignal());
+ exHandler.execute(token);
+ }
+ finally
+ {
+ throwSignal(sigHandler.getExitSignal());
+ }
+
+ // Remove the head tuple
+ flowScheduler.removeHeadTuple();
+
+ // Transfer the token to the FlowHandler
+ flowHandler.execute(flowScheduler, token);
+ }
+ }
+ finally
+ {
+ throwSignal(new Signal(proc, Signal.Type.EXIT_PROCESS));
+ }
+ return new ResultFuture(proc);
+ }
+
+ /**
+ * The initial flow 'to' the StartEvent
+ */
+ class InitialFlow extends SequenceFlowImpl
+ {
+ InitialFlow(StartEvent start)
+ {
+ super("start");
+ setTarget(start);
+ }
+ }
+
+ /**
+ * A basic implementation of a Future
+ */
+ class ResultFuture implements Future<Result>
+ {
+ private Result result;
+ private Process proc;
+
+ public ResultFuture(Process proc)
+ {
+ this.proc = proc;
+ }
+
+ public boolean cancel(boolean mayInterruptIfRunning)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Result get() throws InterruptedException, ExecutionException
+ {
+ return getResult();
+ }
+
+ public Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
+ {
+ throw new NotImplementedException();
+ }
+
+ public boolean isCancelled()
+ {
+ return false;
+ }
+
+ public boolean isDone()
+ {
+ boolean isDone = getResult() != null;
+ return isDone;
+ }
+
+ private Result getResult()
+ {
+ if (result == null)
+ {
+ for (EndEvent aux : proc.getEndEvents())
+ {
+ result = aux.getResult();
+ if (result != null)
+ {
+ break;
+ }
+ }
+ }
+ return result;
+ }
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,53 @@
+/*
+ * 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.jboss.bpm.client.internal;
+
+//$Id$
+
+import org.jboss.bpm.client.ExecutionManager;
+import org.jboss.bpm.client.ProcessEngine;
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.client.SignalManager;
+
+/**
+ * A process engine with public access
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class ProcessEngineImpl extends ProcessEngine
+{
+ public void setProcessManager(ProcessManager processManager)
+ {
+ this.processManager = processManager;
+ }
+
+ public void setExecutionManager(ExecutionManager executionManager)
+ {
+ this.executionManager = executionManager;
+ }
+
+ public void setSignalManager(SignalManager signalManager)
+ {
+ this.signalManager = signalManager;
+ }
+}
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,48 @@
+/*
+ * 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.jboss.bpm.client.internal;
+
+// $Id$
+
+import org.jboss.bpm.client.ProcessEngine;
+import org.jboss.bpm.client.SignalManager;
+import org.jboss.bpm.model.Signal;
+
+/**
+ * An implementation of a signal manager
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Jun-2008
+ */
+public class SignalManagerImpl extends SignalManager
+{
+ public void setProcessEngine(ProcessEngine engine)
+ {
+ this.engine = engine;
+ }
+
+ @Override
+ public void throwSignal(Signal signal)
+ {
+ super.throwSignal(signal);
+ }
+}
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ActivityImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ActivityImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ActivityImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,54 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.Activity;
+
+/**
+ * An activity is a generic term for work that a company or organization performs via business processes.
+ * An activity can be atomic or non-atomic (compound).
+ * The types of activities that are a part of a Process Model are: Process, Sub-Process, and Task.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public abstract class ActivityImpl extends FlowObjectImpl implements Activity
+{
+ private String name;
+
+ public ActivityImpl(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ActivityImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ComplexGatewayImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ComplexGatewayImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ComplexGatewayImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,46 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.ComplexGateway;
+
+/**
+ * A Complex Gateway handles situations that are not easily handled through the other types of Gateways. Complex Gateways can also be used to combine a set of linked
+ * simple Gateways into a single, more compact situation. Modelers can provide complex expressions that determine the merging and/or splitting behavior of the Gateway.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ComplexGatewayImpl extends GatewayImpl implements ComplexGateway
+{
+ public ComplexGatewayImpl(String name)
+ {
+ super(name);
+ }
+
+ public String toString()
+ {
+ return "ComplexGateway[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ComplexGatewayImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EndEventImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EndEventImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EndEventImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,151 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jboss.bpm.model.EndEvent;
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.Result;
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.runtime.Attachments;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.SignalHandler;
+import org.jboss.bpm.runtime.Token;
+
+/**
+ * As the name implies, the End Event indicates where a Process will end.
+ *
+ * In terms of Sequence Flow, the End Event ends the flow of the Process, and thus, will not have any outgoing Sequence Flow. An End Event can have a specific Result
+ * that will appear as a marker within the center of the End Event shape. End Event Results are Message, Error, Compensation, Link, and Multiple.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class EndEventImpl extends EventImpl implements EndEvent, SingleInFlowSetterSupport
+{
+ // provide logging
+ private static final Log log = LogFactory.getLog(EndEventImpl.class);
+
+ private String name;
+ private Result result;
+ private Flow inFlow;
+
+ public EndEventImpl(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public Flow getInFlow()
+ {
+ return inFlow;
+ }
+
+ /**
+ * Set the in flow
+ */
+ public void setInFlow(Flow inFlow)
+ {
+ this.inFlow = inFlow;
+ }
+
+ public Result getResult()
+ {
+ return result;
+ }
+
+ public ExecutionHandler getExecutionHandler()
+ {
+ ExecutionHandler handler = super.getExecutionHandler();
+ if (handler == null)
+ {
+ handler = new ExecutionHandler()
+ {
+ public void execute(final Token token)
+ {
+ // Provide the result
+ result = new Result()
+ {
+ public Attachments getAttachments()
+ {
+ return token.getExecutionContext();
+ }
+ };
+ }
+ };
+ }
+ return handler;
+ }
+
+ public FlowHandler getFlowHandler()
+ {
+ FlowHandler handler = super.getFlowHandler();
+ if (handler == null)
+ {
+ handler = new FlowHandler()
+ {
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ log.debug("End reached in: " + getName());
+ }
+ };
+ }
+ return handler;
+ }
+
+ public SignalHandler getSignalHandler()
+ {
+ SignalHandler handler = super.getSignalHandler();
+ if (handler == null)
+ {
+ final FlowObject end = this;
+ handler = new SignalHandler()
+ {
+ public Signal getEnterSignal()
+ {
+ return new Signal(end, Signal.Type.ENTER_END_EVENT);
+ }
+
+ public Signal getExitSignal()
+ {
+ return new Signal(end, Signal.Type.EXIT_END_EVENT);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public String toString()
+ {
+ return "EndEvent[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EndEventImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EventImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EventImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EventImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,75 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.jboss.bpm.model.Event;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.SignalHandler;
+
+//$Id$
+
+/**
+ * An Event is something that “happens” during the course of a business process.
+ * <p/>
+ * These Events affect the flow of the Process and usually have a cause or an impact.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public abstract class EventImpl extends FlowObjectImpl implements Event, HandlerSetterSupport
+{
+ private ExecutionHandler executionHandler;
+ private FlowHandler flowHandler;
+ private SignalHandler signalHandler;
+
+ public ExecutionHandler getExecutionHandler()
+ {
+ return executionHandler;
+ }
+
+ public void setExecutionHandler(ExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ public FlowHandler getFlowHandler()
+ {
+ return flowHandler;
+ }
+
+ public void setFlowHandler(FlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ public SignalHandler getSignalHandler()
+ {
+ return signalHandler;
+ }
+
+ public void setSignalHandler(SignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/EventImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExclusiveGatewayImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExclusiveGatewayImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExclusiveGatewayImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,45 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.ExclusiveGateway;
+
+/**
+ * A point in the workflow process where, based on a decision or workflow control data, one of several branches is chosen.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ExclusiveGatewayImpl extends GatewayImpl implements ExclusiveGateway
+{
+ public ExclusiveGatewayImpl(String name)
+ {
+ super(name);
+ }
+
+ public String toString()
+ {
+ return "ExclusiveGateway[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExclusiveGatewayImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExecutionHandlerImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExecutionHandlerImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExecutionHandlerImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,50 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.Token;
+
+/**
+ * Implement to make the FlowObject executable
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ExecutionHandlerImpl extends HandlerImpl implements ExecutionHandler
+{
+ private ExecutionHandler handler;
+
+ /**
+ * Execute this flow object
+ */
+ public void execute(Token token)
+ {
+ if (handler == null)
+ {
+ handler = newInstance(ExecutionHandler.class);
+ }
+ handler.execute(token);
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ExecutionHandlerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowHandlerImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowHandlerImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowHandlerImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,48 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.Token;
+
+/**
+ * Implement to handle the outgoing Flows for an FlowObject
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class FlowHandlerImpl extends HandlerImpl implements FlowHandler
+{
+ private FlowHandler handler;
+
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ if (handler == null)
+ {
+ handler = newInstance(FlowHandler.class);
+ }
+ handler.execute(scheduler, token);
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowHandlerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,82 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+
+/**
+ * A Flow is a graphical line connecting two objects in a BPD. There are two types of Flow: Sequence Flow and Message Flow, each with their own line style. Flow is also
+ * used in a generic sense (and lowercase) to describe how Tokens will traverse Sequence Flow from the Start Event to an End Event.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public abstract class FlowImpl implements Flow
+{
+ private String name;
+ private String targetName;
+ private FlowObject source;
+ private FlowObject target;
+
+ public FlowImpl(String targetName)
+ {
+ this.targetName = targetName;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String getTargetName()
+ {
+ return targetName;
+ }
+
+ public FlowObject getSource()
+ {
+ return source;
+ }
+
+ public void setSource(FlowObject source)
+ {
+ this.source = source;
+ }
+
+ public FlowObject getTarget()
+ {
+ return target;
+ }
+
+ public void setTarget(FlowObject target)
+ {
+ this.target = target;
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowObjectImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowObjectImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowObjectImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,149 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.jboss.bpm.InvalidProcessException;
+import org.jboss.bpm.NameNotUniqueException;
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.MultipleInFlowSupport;
+import org.jboss.bpm.model.MultipleOutFlowSupport;
+import org.jboss.bpm.model.NamedFlowObject;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.SingleInFlowSupport;
+import org.jboss.bpm.model.SingleOutFlowSupport;
+
+//$Id$
+
+/**
+ * A Flow Object is one of the set of following graphical objects: Event, Activity, and Gateway.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public abstract class FlowObjectImpl implements FlowObject
+{
+ private Process process;
+
+
+ public Process getProcess()
+ {
+ return process;
+ }
+
+ public void setProcess(Process process)
+ {
+ this.process = process;
+ }
+
+ /**
+ * Initialize the flow object
+ */
+ protected void initialize(ProcessImpl proc)
+ {
+ setProcess(proc);
+
+ if (this instanceof NamedFlowObject)
+ {
+ // Check required name
+ String name = ((NamedFlowObject)this).getName();
+ if (name == null)
+ throw new InvalidProcessException("Name is required for: " + this);
+
+ // Check name uniqueness
+ for (FlowObject aux : proc.getFlowObjects())
+ {
+ if (aux != this && aux instanceof NamedFlowObject)
+ {
+ String auxName = ((NamedFlowObject)aux).getName();
+ if (name.equals(auxName))
+ throw new NameNotUniqueException("NamedFlowObject: " + this);
+ }
+ }
+ }
+
+ // Initialize in/out flows
+ Flow outFlow = null;
+ if (this instanceof SingleOutFlowSupport)
+ {
+ SingleOutFlowSupport sof = (SingleOutFlowSupport)this;
+ outFlow = sof.getOutFlow();
+ initFlow(proc, (FlowImpl)outFlow);
+ }
+ else if (this instanceof MultipleOutFlowSupport)
+ {
+ MultipleOutFlowSupport mof = (MultipleOutFlowSupport)this;
+ for (Flow flow : mof.getOutFlows())
+ {
+ outFlow = flow;
+ initFlow(proc, (FlowImpl)flow);
+ }
+ }
+
+ Flow inFlow = null;
+ if (this instanceof SingleInFlowSupport)
+ {
+ SingleInFlowSupport sif = (SingleInFlowSupport)this;
+ inFlow = sif.getInFlow();
+ }
+ else if (this instanceof MultipleInFlowSupport)
+ {
+ MultipleInFlowSupport mif = (MultipleInFlowSupport)this;
+ for (Flow flow : mif.getInFlows())
+ {
+ inFlow = flow;
+ }
+ }
+
+ if (inFlow == null && outFlow == null)
+ throw new InvalidProcessException("Unconnected flow object: " + this);
+ }
+
+ private void initFlow(Process proc, FlowImpl flow)
+ {
+ if (flow != null)
+ {
+ String name = flow.getTargetName();
+ FlowObject target = proc.findFlowObject(name);
+ if (target == null)
+ throw new InvalidProcessException("Cannot find target for out flow: " + name);
+
+ if (target instanceof SingleInFlowSetterSupport)
+ {
+ SingleInFlowSetterSupport sif = (SingleInFlowSetterSupport)target;
+ sif.setInFlow(flow);
+ }
+ else if (target instanceof MultipleInFlowSetterSupport)
+ {
+ MultipleInFlowSetterSupport mif = (MultipleInFlowSetterSupport)target;
+ mif.addInFlow(flow);
+ }
+ else
+ {
+ throw new InvalidProcessException("Target does not support in flow: " + target);
+ }
+
+ flow.setSource(this);
+ flow.setTarget(target);
+ }
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowObjectImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowSchedulerImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowSchedulerImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowSchedulerImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,59 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import java.util.Queue;
+import java.util.concurrent.ConcurrentLinkedQueue;
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.MutableFlowScheduler;
+import org.jboss.bpm.runtime.Token;
+
+/**
+ * The {@link FlowHandler} invokes the FlowScheduler to schedule
+ * {@link Flow} objects together with their associated {@link Token}.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class FlowSchedulerImpl implements MutableFlowScheduler
+{
+ private Queue<Tuple> flowQueue = new ConcurrentLinkedQueue<Tuple>();
+
+ public void scheduleTuple(Tuple tuple)
+ {
+ flowQueue.add(tuple);
+ }
+
+ public Tuple peekHeadTuple()
+ {
+ return flowQueue.peek();
+ }
+
+ public Tuple removeHeadTuple()
+ {
+ return flowQueue.remove();
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/FlowSchedulerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/GatewayImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/GatewayImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/GatewayImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,161 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.Gateway;
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.SignalHandler;
+import org.jboss.bpm.runtime.Token;
+import org.jboss.bpm.runtime.FlowScheduler.Tuple;
+
+/**
+ * Gateways are modelling elements that are used to control how Sequence Flow interact as they converge and diverge within a Process. If the flow does not need to be
+ * controlled, then a Gateway is not needed.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class GatewayImpl extends FlowObjectImpl implements Gateway, HandlerSetterSupport, MultipleInFlowSetterSupport, MultipleOutFlowSetterSupport
+{
+ // provide logging
+ private static final Log log = LogFactory.getLog(GatewayImpl.class);
+
+ private String name;
+ protected List<Flow> inFlows = new ArrayList<Flow>();
+ protected List<Flow> outFlows = new ArrayList<Flow>();
+ private ExecutionHandler executionHandler;
+ private FlowHandler flowHandler;
+ private SignalHandler signalHandler;
+
+ public GatewayImpl(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public List<Flow> getOutFlows()
+ {
+ return Collections.unmodifiableList(outFlows);
+ }
+
+ public void addOutFlow(Flow flow)
+ {
+ outFlows.add(flow);
+ }
+
+ public List<Flow> getInFlows()
+ {
+ return Collections.unmodifiableList(inFlows);
+ }
+
+ public void addInFlow(Flow inFlow)
+ {
+ this.inFlows.add(inFlow);
+ }
+
+ public ExecutionHandler getExecutionHandler()
+ {
+ ExecutionHandler handler = executionHandler;
+ if (handler == null)
+ {
+ handler = new ExecutionHandler()
+ {
+ public void execute(Token token)
+ {
+ log.debug("Nothing to do in gateway: " + getName());
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setExecutionHandler(ExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ public FlowHandler getFlowHandler()
+ {
+ FlowHandler handler = flowHandler;
+ if (handler == null && outFlows.size() == 1)
+ {
+ handler = new FlowHandler()
+ {
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ Tuple tuple = new Tuple(outFlows.get(0), token);
+ scheduler.scheduleTuple(tuple);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setFlowHandler(FlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ public SignalHandler getSignalHandler()
+ {
+ SignalHandler handler = signalHandler;
+ if (handler == null)
+ {
+ final FlowObject gateway = this;
+ handler = new SignalHandler()
+ {
+ public Signal getEnterSignal()
+ {
+ return new Signal(gateway, Signal.Type.ENTER_GATEWAY);
+ }
+
+ public Signal getExitSignal()
+ {
+ return new Signal(gateway, Signal.Type.EXIT_GATEWAY);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setSignalHandler(SignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/GatewayImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,84 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.NotImplementedException;
+import org.jboss.bpm.runtime.Handler;
+
+/**
+ * Implement to handle the outgoing Flows for an FlowObject
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public abstract class HandlerImpl implements Handler
+{
+ private String className;
+ private String beanRef;
+
+ public String getClassName()
+ {
+ return className;
+ }
+
+ public void setClassName(String className)
+ {
+ this.className = className;
+ }
+
+ public String getBeanRef()
+ {
+ return beanRef;
+ }
+
+ public void setBeanRef(String beanRef)
+ {
+ this.beanRef = beanRef;
+ }
+
+ @SuppressWarnings("unchecked")
+ protected <T> T newInstance(Class<T> clazz)
+ {
+ try
+ {
+ if (className != null)
+ {
+ ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
+ return (T)ctxLoader.loadClass(className).newInstance();
+ }
+ else if (beanRef != null)
+ {
+ throw new NotImplementedException();
+ }
+ else
+ {
+ throw new IllegalStateException("There is no 'class' nor 'bean' attribute set for this handler");
+ }
+ }
+ catch (Exception ex)
+ {
+ throw new IllegalStateException("Cannot instanciate the handler", ex);
+ }
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerSetterSupport.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerSetterSupport.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerSetterSupport.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,48 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.HandlerSupport;
+import org.jboss.bpm.runtime.SignalHandler;
+
+
+//$Id$
+
+/**
+ * A combined interface for execution aspects
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public interface HandlerSetterSupport extends HandlerSupport
+{
+ /** Set the associated ExecutionHandler */
+ void setExecutionHandler(ExecutionHandler handler);
+
+ /** Set the associated SignalHandler */
+ void setSignalHandler(SignalHandler handler);
+
+ /** Set the associated FlowHandler */
+ void setFlowHandler(FlowHandler handler);
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/HandlerSetterSupport.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/InclusiveGatewayImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/InclusiveGatewayImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/InclusiveGatewayImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,49 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.InclusiveGateway;
+
+
+
+/**
+ * This Decision represents a branching point where Alternatives are based on conditional expressions contained within outgoing Sequence Flow.
+ * However, in this case, the True evaluation of one condition expression does not exclude the evaluation of other condition expressions.
+ * All Sequence Flow with a True evaluation will be traversed by a Token.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class InclusiveGatewayImpl extends GatewayImpl implements InclusiveGateway
+{
+ public InclusiveGatewayImpl(String name)
+ {
+ super(name);
+ }
+
+ public String toString()
+ {
+ return "InclusiveGateway[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/InclusiveGatewayImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/IntermediateEventImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/IntermediateEventImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/IntermediateEventImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,145 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jboss.bpm.model.Event;
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.IntermediateEvent;
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.SignalHandler;
+import org.jboss.bpm.runtime.Token;
+import org.jboss.bpm.runtime.FlowScheduler.Tuple;
+
+/**
+ * An Intermediate Event is an Event that occurs after a Process has been started. It will affect the Flow of the Process, but will not start or (directly) terminate
+ * the Process. An Intermediate Event will show where messages or delays are expected within the Process, disrupt the Normal Flow through exception handling, or show
+ * the extra flow required for compensating a transaction.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class IntermediateEventImpl extends EventImpl implements IntermediateEvent, SingleInFlowSetterSupport, SingleOutFlowSetterSupport
+{
+ // provide logging
+ private static final Log log = LogFactory.getLog(IntermediateEventImpl.class);
+
+ private String name;
+ private Flow inFlow;
+ private Flow outFlow;
+
+ public IntermediateEventImpl(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public Flow getInFlow()
+ {
+ return inFlow;
+ }
+
+ public void setInFlow(Flow inFlow)
+ {
+ this.inFlow = inFlow;
+ }
+
+ public Flow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ public void setOutFlow(Flow flow)
+ {
+ this.outFlow = flow;
+ }
+
+ public ExecutionHandler getExecutionHandler()
+ {
+ ExecutionHandler handler = super.getExecutionHandler();
+ if (handler == null)
+ {
+ handler = new ExecutionHandler()
+ {
+ public void execute(Token token)
+ {
+ log.debug("Nothing to do in event");
+ }
+ };
+ }
+ return handler;
+ }
+
+ public FlowHandler getFlowHandler()
+ {
+ FlowHandler handler = super.getFlowHandler();
+ if (handler == null)
+ {
+ handler = new FlowHandler()
+ {
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ Tuple tuple = new Tuple(getOutFlow(), token);
+ scheduler.scheduleTuple(tuple);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public SignalHandler getSignalHandler()
+ {
+ SignalHandler handler = super.getSignalHandler();
+ if (handler == null)
+ {
+ final Event event = this;
+ handler = new SignalHandler()
+ {
+ public Signal getEnterSignal()
+ {
+ return new Signal(event, Signal.Type.ENTER_EVENT);
+ }
+
+ public Signal getExitSignal()
+ {
+ return new Signal(event, Signal.Type.EXIT_EVENT);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public String toString()
+ {
+ return "ItermediateEvent[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/IntermediateEventImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MessageFlowImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MessageFlowImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MessageFlowImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,42 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.MessageFlow;
+
+/**
+ * A Message Flow is a dashed line that is used to show the flow of messages between two entities that are prepared to send and receive them.
+ * In BPMN, two separate Pools in the Diagram will represent the two entities.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class MessageFlowImpl extends FlowImpl implements MessageFlow
+{
+
+ public MessageFlowImpl(String targetName)
+ {
+ super(targetName);
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MessageFlowImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleInFlowSetterSupport.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleInFlowSetterSupport.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleInFlowSetterSupport.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,43 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.MultipleInFlowSupport;
+
+
+//$Id$
+
+/**
+ * Implementing {@link FlowObject} support multiple incomming {@link Flow}.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public interface MultipleInFlowSetterSupport extends MultipleInFlowSupport
+{
+ /**
+ * Add an incomming Flow
+ */
+ void addInFlow(Flow flow);
+}
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleInFlowSetterSupport.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleOutFlowSetterSupport.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleOutFlowSetterSupport.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleOutFlowSetterSupport.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,43 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.MultipleOutFlowSupport;
+
+//$Id$
+
+/**
+ * Implementing {@link FlowObject} support multiple outgoing {@link Flow}.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public interface MultipleOutFlowSetterSupport extends MultipleOutFlowSupport
+{
+ /**
+ * Add an outgoing Flow
+ */
+ void addOutFlow(Flow flow);
+
+}
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/MultipleOutFlowSetterSupport.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ParallelGatewayImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ParallelGatewayImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ParallelGatewayImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,74 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.ParallelGateway;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.Token;
+import org.jboss.bpm.runtime.FlowScheduler.Tuple;
+
+
+/**
+ * Parallel Gateway is required when two or more Activities need to be executed in parallel.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ParallelGatewayImpl extends GatewayImpl implements ParallelGateway
+{
+ public ParallelGatewayImpl(String name)
+ {
+ super(name);
+ }
+
+ /**
+ * The default FlowHandler adds all out flows to the queue
+ */
+ public FlowHandler getFlowHandler()
+ {
+ FlowHandler handler = super.getFlowHandler();
+ if (handler == null)
+ {
+ handler = new FlowHandler()
+ {
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ for(Flow outFlow : getOutFlows())
+ {
+ Tuple tuple = new Tuple(outFlow, token.createCopy());
+ scheduler.scheduleTuple(tuple);
+ }
+ }
+ };
+ }
+ return handler;
+ }
+
+ public String toString()
+ {
+ return "ParallelGateway[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ParallelGatewayImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderFactoryImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderFactoryImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderFactoryImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,56 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.ComplexGateway;
+import org.jboss.bpm.model.EndEvent;
+import org.jboss.bpm.model.ExclusiveGateway;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.InclusiveGateway;
+import org.jboss.bpm.model.IntermediateEvent;
+import org.jboss.bpm.model.ParallelGateway;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+import org.jboss.bpm.model.StartEvent;
+import org.jboss.bpm.model.SubProcess;
+import org.jboss.bpm.model.Task;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.SignalHandler;
+
+/**
+ * The ProcessBuilder can be used to dynamically build {@link Process}es.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ProcessBuilderFactoryImpl extends ProcessBuilderFactory
+{
+ @Override
+ public ProcessBuilder newProcessBuilder(String procName)
+ {
+ return new ProcessBuilderImpl(procName);
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderFactoryImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,272 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.ComplexGateway;
+import org.jboss.bpm.model.EndEvent;
+import org.jboss.bpm.model.ExclusiveGateway;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.InclusiveGateway;
+import org.jboss.bpm.model.IntermediateEvent;
+import org.jboss.bpm.model.ParallelGateway;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.StartEvent;
+import org.jboss.bpm.model.SubProcess;
+import org.jboss.bpm.model.Task;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.SignalHandler;
+
+/**
+ * The ProcessBuilder can be used to dynamically build a {@link Process}.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ProcessBuilderImpl implements ProcessBuilder
+{
+ private ProcessImpl proc;
+ private FlowObjectImpl flowObject;
+
+ public ProcessBuilderImpl(String procName)
+ {
+ proc = new ProcessImpl(procName);
+ }
+
+ public Process getProcess()
+ {
+ proc.initialize();
+ return proc;
+ }
+
+ public ProcessBuilder addSubProcess(String name)
+ {
+ flowObject = new SubProcessImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addSequenceFlow(String name)
+ {
+ if (flowObject instanceof SingleOutFlowSetterSupport)
+ {
+ SingleOutFlowSetterSupport outFlow = (SingleOutFlowSetterSupport)flowObject;
+ outFlow.setOutFlow(new SequenceFlowImpl(name));
+ }
+ else if (flowObject instanceof MultipleOutFlowSetterSupport)
+ {
+ MultipleOutFlowSetterSupport outFlow = (MultipleOutFlowSetterSupport)flowObject;
+ outFlow.addOutFlow(new SequenceFlowImpl(name));
+ }
+ else
+ {
+ throw new IllegalStateException("Cannot add a sequence flow to: " + flowObject);
+ }
+ return this;
+ }
+
+ public ProcessBuilder addMessageFlow(String name)
+ {
+ if (flowObject instanceof SingleOutFlowSetterSupport)
+ {
+ SingleOutFlowSetterSupport outFlow = (SingleOutFlowSetterSupport)flowObject;
+ outFlow.setOutFlow(new MessageFlowImpl(name));
+ }
+ else if (flowObject instanceof MultipleOutFlowSetterSupport)
+ {
+ MultipleOutFlowSetterSupport outFlow = (MultipleOutFlowSetterSupport)flowObject;
+ outFlow.addOutFlow(new MessageFlowImpl(name));
+ }
+ else
+ {
+ throw new IllegalStateException("Cannot add a message flow to: " + flowObject);
+ }
+ return this;
+ }
+
+ public ProcessBuilder addStartEvent()
+ {
+ flowObject = new StartEventImpl();
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addItermediateEvent(String name)
+ {
+ flowObject = new IntermediateEventImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addEndEvent(String name)
+ {
+ flowObject = new EndEventImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addTask(String name)
+ {
+ flowObject = new TaskImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addExclusiveGateway(String name)
+ {
+ flowObject = new ExclusiveGatewayImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addInclusiveGateway(String name)
+ {
+ flowObject = new InclusiveGatewayImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addComplexGateway(String name)
+ {
+ flowObject = new ComplexGatewayImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addParallelGateway(String name)
+ {
+ flowObject = new ParallelGatewayImpl(name);
+ proc.addFlowObject(flowObject);
+ return this;
+ }
+
+ public ProcessBuilder addExecutionHandler(Class<?> clazz)
+ {
+ return addHandler(clazz);
+ }
+
+ public ProcessBuilder addFlowHandler(Class<?> clazz)
+ {
+ return addHandler(clazz);
+ }
+
+ public ProcessBuilder addSignalHandler(Class<?> clazz)
+ {
+ return addHandler(clazz);
+ }
+
+ private ProcessBuilder addHandler(Class<?> clazz)
+ {
+ if (flowObject instanceof HandlerSetterSupport == false)
+ throw new IllegalStateException("Current flow object does not support handlers: " + flowObject);
+
+ HandlerSetterSupport hs = (HandlerSetterSupport)flowObject;
+ try
+ {
+ Object handler = clazz.newInstance();
+ if (handler instanceof ExecutionHandler)
+ hs.setExecutionHandler((ExecutionHandler)handler);
+ else if (handler instanceof FlowHandler)
+ hs.setFlowHandler((FlowHandler)handler);
+ else if (handler instanceof SignalHandler)
+ hs.setSignalHandler((SignalHandler)handler);
+ else
+ throw new IllegalArgumentException("Given class is not a supported handler");
+ }
+ catch (Exception ex)
+ {
+ throw new IllegalArgumentException("Cannot instanciate handler", ex);
+ }
+ return this;
+ }
+
+ // ============================
+
+ public Process createProcess(String name)
+ {
+ proc = new ProcessImpl(name);
+ return proc;
+ }
+
+ public SubProcess createSubProcess(String name)
+ {
+ flowObject = new SubProcessImpl(name);
+ return (SubProcess)flowObject;
+ }
+
+ public StartEvent createStartEvent()
+ {
+ flowObject = new StartEventImpl();
+ return (StartEvent)flowObject;
+ }
+
+ public IntermediateEvent createIntermediateEvent(String name)
+ {
+ flowObject = new IntermediateEventImpl(name);
+ return (IntermediateEvent)flowObject;
+ }
+
+ public EndEvent createEndEvent(String name)
+ {
+ flowObject = new EndEventImpl(name);
+ return (EndEvent)flowObject;
+ }
+
+ public ExclusiveGateway createExclusiveGateway(String name)
+ {
+ flowObject = new ExclusiveGatewayImpl(name);
+ return (ExclusiveGateway)flowObject;
+ }
+
+ public InclusiveGateway createInclusiveGateway(String name)
+ {
+ flowObject = new InclusiveGatewayImpl(name);
+ return (InclusiveGateway)flowObject;
+ }
+
+ public ComplexGateway createComplexGateway(String name)
+ {
+ flowObject = new ComplexGatewayImpl(name);
+ return (ComplexGateway)flowObject;
+ }
+
+ public ParallelGateway createParallelGateway(String name)
+ {
+ flowObject = new ParallelGatewayImpl(name);
+ return (ParallelGateway)flowObject;
+ }
+
+ public Task createTask(String name)
+ {
+ flowObject = new TaskImpl(name);
+ return (Task)flowObject;
+ }
+
+ public FlowObject addFlowObject(FlowObject fo)
+ {
+ proc.addFlowObject(fo);
+ return fo;
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,175 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.concurrent.Future;
+
+import org.jboss.bpm.InvalidProcessException;
+import org.jboss.bpm.client.ExecutionManager;
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.EndEvent;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.NamedFlowObject;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.Result;
+import org.jboss.bpm.model.StartEvent;
+import org.jboss.bpm.runtime.Attachments;
+
+/**
+ * A Process is any Activity performed within a company or organization.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class ProcessImpl extends ActivityImpl implements Process
+{
+ private List<FlowObject> flowObjects = new ArrayList<FlowObject>();
+ private ProcessState processState = ProcessState.CREATED;
+
+ public ProcessImpl(String name)
+ {
+ super(name);
+ setProcess(this);
+ }
+
+ public void addFlowObject(FlowObject flowObject)
+ {
+ flowObjects.add(flowObject);
+ }
+
+ public StartEventImpl getStartEvent()
+ {
+ StartEventImpl start = null;
+ for (FlowObject aux : flowObjects)
+ {
+ if (aux instanceof StartEvent)
+ {
+ start = (StartEventImpl)aux;
+ break;
+ }
+ }
+ return start;
+ }
+
+ public List<EndEvent> getEndEvents()
+ {
+ List<EndEvent> ends = new ArrayList<EndEvent>();
+ for (FlowObject aux : flowObjects)
+ {
+ if (aux instanceof EndEvent)
+ {
+ ends.add((EndEvent)aux);
+ }
+ }
+ return Collections.unmodifiableList(ends);
+ }
+
+ public List<FlowObject> getFlowObjects()
+ {
+
+ if (processState == ProcessState.CREATED)
+ return flowObjects;
+
+ return Collections.unmodifiableList(flowObjects);
+ }
+
+ public Future<Result> startProcess()
+ {
+ return startProcess(null);
+ }
+
+ public Future<Result> startProcess(Attachments att)
+ {
+ if (processState != ProcessState.INITIALIZED)
+ throw new IllegalStateException("Cannot start process in state: " + processState);
+
+ processState = ProcessState.STARTED;
+ ExecutionManager exm = ExecutionManager.locateExecutionManager();
+ return exm.startProcess(new RuntimeProcessImpl(this), att);
+ }
+
+ public FlowObject findFlowObject(String name)
+ {
+ if (name == null)
+ throw new IllegalArgumentException("Cannot find flow object with name: null");
+
+ FlowObject nfo = null;
+ for (FlowObject aux : flowObjects)
+ {
+ if (aux instanceof NamedFlowObject)
+ {
+ NamedFlowObject auxnfo = (NamedFlowObject)aux;
+ if (name.equals(auxnfo.getName()))
+ {
+ nfo = aux;
+ break;
+ }
+ }
+ }
+ return nfo;
+ }
+
+ public ProcessState getProcessState()
+ {
+ return processState;
+ }
+
+ /**
+ * Set the process state
+ */
+ public void initialize()
+ {
+ if (processState != ProcessState.CREATED)
+ throw new IllegalStateException("Cannot initialize process in state: " + processState);
+
+ // Set the anonymous default name
+ if (getName() == null)
+ {
+ ProcessManager pm = ProcessManager.locateProcessManager();
+ setName("AnonymousProcess#" + pm.getProcesses().size());
+ }
+
+ if (getStartEvent() == null)
+ throw new InvalidProcessException("Process does not have a start event");
+
+ if (getEndEvents().size() == 0)
+ throw new InvalidProcessException("Process does not have end events");
+
+ // Set the associated process
+ for (FlowObject aux : flowObjects)
+ {
+ ((FlowObjectImpl)aux).initialize(this);
+ }
+
+ processState = ProcessState.INITIALIZED;
+ }
+
+ public String toString()
+ {
+ return "Process[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/ProcessImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/RuntimeProcessImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/RuntimeProcessImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/RuntimeProcessImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,56 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.runtime.MutableFlowScheduler;
+import org.jboss.bpm.runtime.RuntimeProcess;
+
+/**
+ * A RuntimeProcess add runtime behaviour to the {@link Process}
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class RuntimeProcessImpl implements RuntimeProcess
+{
+ private Process process;
+ private MutableFlowScheduler scheduler = new FlowSchedulerImpl();
+
+ public RuntimeProcessImpl(Process process)
+ {
+ super();
+ this.process = process;
+ }
+
+ public Process getProcess()
+ {
+ return process;
+ }
+
+ public MutableFlowScheduler getFlowScheduler()
+ {
+ return scheduler;
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/RuntimeProcessImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SequenceFlowImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SequenceFlowImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SequenceFlowImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,41 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.SequenceFlow;
+
+/**
+ * A Sequence Flow is a solid graphical line that is used to show the order that Activities will be performed in a Process. Each Flow has only one source and only one
+ * target.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class SequenceFlowImpl extends FlowImpl implements SequenceFlow
+{
+ public SequenceFlowImpl(String targetName)
+ {
+ super(targetName);
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SequenceFlowImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SignalHandlerImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SignalHandlerImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SignalHandlerImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,56 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.runtime.SignalHandler;
+
+/**
+ * Implement to get signals on enter and exit.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class SignalHandlerImpl extends HandlerImpl implements SignalHandler
+{
+ private SignalHandler handler;
+
+ public Signal getEnterSignal()
+ {
+ if (handler == null)
+ {
+ handler = newInstance(SignalHandler.class);
+ }
+ return handler.getEnterSignal();
+ }
+
+ public Signal getExitSignal()
+ {
+ if (handler == null)
+ {
+ handler = newInstance(SignalHandler.class);
+ }
+ return handler.getExitSignal();
+ }
+}
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SignalHandlerImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleInFlowSetterSupport.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleInFlowSetterSupport.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleInFlowSetterSupport.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,43 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.SingleInFlowSupport;
+
+
+//$Id$
+
+/**
+ * Implementing {@link FlowObject} support a single incomming {@link Flow}.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public interface SingleInFlowSetterSupport extends SingleInFlowSupport
+{
+ /**
+ * Set the incomming Flow
+ */
+ void setInFlow(Flow flow);
+}
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleInFlowSetterSupport.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleOutFlowSetterSupport.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleOutFlowSetterSupport.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleOutFlowSetterSupport.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,43 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.SingleOutFlowSupport;
+
+
+//$Id$
+
+/**
+ * Implementing {@link FlowObject}s support a single outgoing {@link Flow}s.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public interface SingleOutFlowSetterSupport extends SingleOutFlowSupport
+{
+ /**
+ * Set the outgoing Flow
+ */
+ void setOutFlow(Flow flow);
+}
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SingleOutFlowSetterSupport.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/StartEventImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/StartEventImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/StartEventImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,121 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.model.StartEvent;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.SignalHandler;
+import org.jboss.bpm.runtime.Token;
+import org.jboss.bpm.runtime.FlowScheduler.Tuple;
+
+/**
+ * A Start Event indicates where a particular Process will start. In terms of Sequence Flow, the Start Event starts the Flow of the Process, and thus, will not have any
+ * incoming Sequence Flow. A Start Event can have a Trigger that indicates how the Process starts: Message, Timer, Rule, Link, or Multiple.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class StartEventImpl extends EventImpl implements StartEvent, SingleOutFlowSetterSupport
+{
+ // provide logging
+ private static final Log log = LogFactory.getLog(StartEventImpl.class);
+
+ private Flow outFlow;
+
+ public Flow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ public void setOutFlow(Flow flow)
+ {
+ this.outFlow = flow;
+ }
+
+ public ExecutionHandler getExecutionHandler()
+ {
+ ExecutionHandler handler = super.getExecutionHandler();
+ if (handler == null)
+ {
+ handler = new ExecutionHandler()
+ {
+ public void execute(Token token)
+ {
+ log.debug("Nothing to do in start-event");
+ }
+ };
+ }
+ return handler;
+ }
+
+ public FlowHandler getFlowHandler()
+ {
+ FlowHandler handler = super.getFlowHandler();
+ if (handler == null)
+ {
+ handler = new FlowHandler()
+ {
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ Tuple tuple = new Tuple(outFlow, token);
+ scheduler.scheduleTuple(tuple);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public SignalHandler getSignalHandler()
+ {
+ SignalHandler handler = super.getSignalHandler();
+ if (handler == null)
+ {
+ final StartEvent start = this;
+ handler = new SignalHandler()
+ {
+ public Signal getEnterSignal()
+ {
+ return new Signal(start, Signal.Type.ENTER_START_EVENT);
+ }
+
+ public Signal getExitSignal()
+ {
+ return new Signal(start, Signal.Type.EXIT_START_EVENT);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public String toString()
+ {
+ return "StartEvent[]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/StartEventImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SubProcessImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SubProcessImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SubProcessImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,150 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+//$Id$
+
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.FlowObject;
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.model.SubProcess;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.SignalHandler;
+import org.jboss.bpm.runtime.Token;
+import org.jboss.bpm.runtime.FlowScheduler.Tuple;
+
+/**
+ * A Sub-Process is Process that is included within another Process.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class SubProcessImpl extends ProcessImpl implements SubProcess, HandlerSetterSupport, SingleInFlowSetterSupport, SingleOutFlowSetterSupport
+{
+ private Flow inFlow;
+ private Flow outFlow;
+ private ExecutionHandler executionHandler;
+ private FlowHandler flowHandler;
+ private SignalHandler signalHandler;
+
+ public SubProcessImpl(String name)
+ {
+ super(name);
+ }
+
+ public Flow getInFlow()
+ {
+ return inFlow;
+ }
+
+ public void setInFlow(Flow inFlow)
+ {
+ this.inFlow = inFlow;
+ }
+
+ public Flow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ public void setOutFlow(Flow flow)
+ {
+ this.outFlow = flow;
+ }
+
+ public ExecutionHandler getExecutionHandler()
+ {
+ ExecutionHandler handler = executionHandler;
+ if (handler == null)
+ {
+ handler = new ExecutionHandler()
+ {
+ public void execute(Token token)
+ {
+ startProcess(token.getExecutionContext());
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setExecutionHandler(ExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ public FlowHandler getFlowHandler()
+ {
+ FlowHandler handler = flowHandler;
+ if (handler == null)
+ {
+ handler = new FlowHandler()
+ {
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ Tuple tuple = new Tuple(outFlow, token);
+ scheduler.scheduleTuple(tuple);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setFlowHandler(FlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ public SignalHandler getSignalHandler()
+ {
+ SignalHandler handler = signalHandler;
+ if (handler == null)
+ {
+ final FlowObject subproc = this;
+ handler = new SignalHandler()
+ {
+ public Signal getEnterSignal()
+ {
+ return new Signal(subproc, Signal.Type.ENTER_SUB_PROCESS);
+ }
+
+ public Signal getExitSignal()
+ {
+ return new Signal(subproc, Signal.Type.EXIT_SUB_PROCESS);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setSignalHandler(SignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+
+ public String toString()
+ {
+ return "SubProcess[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/SubProcessImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/TaskImpl.java
===================================================================
--- api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/TaskImpl.java (rev 0)
+++ api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/TaskImpl.java 2008-07-17 06:22:12 UTC (rev 1657)
@@ -0,0 +1,163 @@
+/*
+ * 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.jboss.bpm.model.internal;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jboss.bpm.model.Flow;
+import org.jboss.bpm.model.Signal;
+import org.jboss.bpm.model.Task;
+import org.jboss.bpm.runtime.ExecutionHandler;
+import org.jboss.bpm.runtime.FlowHandler;
+import org.jboss.bpm.runtime.FlowScheduler;
+import org.jboss.bpm.runtime.SignalHandler;
+import org.jboss.bpm.runtime.Token;
+import org.jboss.bpm.runtime.FlowScheduler.Tuple;
+
+//$Id$
+
+/**
+ * A Task is an Atomic Activity that is included within a Process.
+ *
+ * A Task is used when the work in the Process is not broken down to a finer level of Process Model detail. Generally, an end-user and/or an application are used to
+ * perform the Task when it is executed.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 08-Jul-2008
+ */
+public class TaskImpl extends ActivityImpl implements Task, HandlerSetterSupport, SingleInFlowSetterSupport, SingleOutFlowSetterSupport
+{
+ // provide logging
+ private static final Log log = LogFactory.getLog(TaskImpl.class);
+
+ private Flow inFlow;
+ private Flow outFlow;
+ private ExecutionHandler executionHandler;
+ private FlowHandler flowHandler;
+ private SignalHandler signalHandler;
+
+ public TaskImpl(String name)
+ {
+ super(name);
+ }
+
+ /**
+ * Get the out flow
+ */
+ public Flow getInFlow()
+ {
+ return inFlow;
+ }
+
+ /**
+ * Set the in flow
+ */
+ public void setInFlow(Flow inFlow)
+ {
+ this.inFlow = inFlow;
+ }
+
+ public Flow getOutFlow()
+ {
+ return outFlow;
+ }
+
+ public void setOutFlow(Flow flow)
+ {
+ this.outFlow = flow;
+ }
+
+ public ExecutionHandler getExecutionHandler()
+ {
+ ExecutionHandler handler = executionHandler;
+ if (handler == null)
+ {
+ handler = new ExecutionHandler()
+ {
+ public void execute(Token token)
+ {
+ log.debug("Nothing to do in task: " + getName());
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setExecutionHandler(ExecutionHandler executionHandler)
+ {
+ this.executionHandler = executionHandler;
+ }
+
+ public FlowHandler getFlowHandler()
+ {
+ FlowHandler handler = flowHandler;
+ if (handler == null)
+ {
+ handler = new FlowHandler()
+ {
+ public void execute(FlowScheduler scheduler, Token token)
+ {
+ Tuple tuple = new Tuple(outFlow, token);
+ scheduler.scheduleTuple(tuple);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setFlowHandler(FlowHandler flowHandler)
+ {
+ this.flowHandler = flowHandler;
+ }
+
+ public SignalHandler getSignalHandler()
+ {
+ SignalHandler handler = signalHandler;
+ if (handler == null)
+ {
+ final Task task = this;
+ handler = new SignalHandler()
+ {
+ public Signal getEnterSignal()
+ {
+ return new Signal(task, Signal.Type.ENTER_TASK);
+ }
+
+ public Signal getExitSignal()
+ {
+ return new Signal(task, Signal.Type.EXIT_TASK);
+ }
+ };
+ }
+ return handler;
+ }
+
+ public void setSignalHandler(SignalHandler signalHandler)
+ {
+ this.signalHandler = signalHandler;
+ }
+
+ public String toString()
+ {
+ return "Task[" + getName() + "]";
+ }
+}
\ No newline at end of file
Property changes on: api/trunk/modules/ri/src/main/java/org/jboss/bpm/model/internal/TaskImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
15 years, 11 months
JBoss JBPM SVN: r1656 - in api/trunk: modules and 21 other directories.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-07-17 02:18:46 -0400 (Thu, 17 Jul 2008)
New Revision: 1656
Added:
api/trunk/modules/impl/
Removed:
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java
api/trunk/modules/api/src/main/java/org/jboss/bpm/model/internal/
api/trunk/modules/api/src/main/java/org/jboss/bpm/runtime/internal/
api/trunk/modules/impl/scripts/
api/trunk/modules/impl/src/main/java/org/jboss/bpm/EngineShutdownException.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/InvalidProcessException.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/JBPMException.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/NameNotUniqueException.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/NotImplementedException.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ExecutionManager.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessEngine.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessManager.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/SignalListener.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/SignalManager.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/EmbeddedBeansDeployer.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Activity.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/BPMNElement.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ComplexGateway.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/EndEvent.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Event.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Flow.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/FlowObject.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Gateway.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/GraphicalElement.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/InclusiveGateway.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/IntermediateEvent.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MessageFlow.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MultipleInFlowSupport.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MultipleOutFlowSupport.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/NamedFlowObject.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ParallelGateway.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Process.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ProcessBuilder.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Result.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SequenceFlow.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Signal.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SingleInFlowSupport.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SingleOutFlowSupport.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/StartEvent.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SubProcess.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SuportingElement.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Task.java
api/trunk/modules/impl/src/main/java/org/jboss/bpm/runtime/
api/trunk/modules/impl/src/main/java/org/jboss/bpm/test/
api/trunk/modules/impl/src/main/resources/
api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/MockEngineTestCase.java
api/trunk/modules/testsuite/src/test/resources/jbpm-mock-beans.xml
Modified:
api/trunk/.classpath
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngine.java
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java
api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java
api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java
api/trunk/modules/dialects/jaxb/pom.xml
api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java
api/trunk/modules/impl/pom.xml
api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java
api/trunk/modules/testsuite/pom.xml
api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/client/ProcessEngineLocatorTest.java
api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/model/ProcessIntegrityTest.java
api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/parallelsplit/ParallelSplitTest.java
api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/sequence/BasicSequenceTest.java
api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/task/BasicTaskTest.java
api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
api/trunk/pom.xml
Log:
Add modules impl
Modified: api/trunk/.classpath
===================================================================
--- api/trunk/.classpath 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/.classpath 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="modules/api/target/classes" path="modules/api/src/main/java"/>
- <classpathentry excluding="**" kind="src" output="modules/api/target/classes" path="modules/api/src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="modules/api/target/test-classes" path="modules/api/src/test/resources"/>
+ <classpathentry kind="src" path="modules/impl/src/main/java"/>
<classpathentry kind="src" output="modules/dialects/jaxb/target/classes" path="modules/dialects/jaxb/src/main/java"/>
<classpathentry kind="src" output="modules/testsuite/target/test-classes" path="modules/testsuite/src/test/java"/>
- <classpathentry excluding="**" kind="src" output="modules/testsuite/target/test-classes" path="modules/testsuite/src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngine.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngine.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngine.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -32,7 +32,7 @@
public class ProcessEngine
{
/** The process engine bean name - jBPMEngine */
- public static final String BEAN_NAME_JBPMENGINE = "jBPMProcessEngine";
+ public static final String BEAN_NAME = "jBPMProcessEngine";
/** The default bean config: jbpm-beans.xml */
public static final String JBPM_ENGINE_CONFIG = "jbpm-beans.xml";
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -60,18 +60,18 @@
{
deployEngineConfiguration();
kernel = KernelLocator.getKernel();
- entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME_JBPMENGINE);
+ entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME);
}
else
{
try
{
- entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME_JBPMENGINE);
+ entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME);
}
catch (KernelRegistryEntryNotFoundException ex)
{
deployEngineConfiguration();
- entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME_JBPMENGINE);
+ entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME);
}
}
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -33,7 +33,6 @@
import org.apache.commons.logging.LogFactory;
import org.jboss.bpm.EngineShutdownException;
import org.jboss.bpm.model.Process;
-import org.jboss.bpm.model.internal.ProcessImpl;
/**
* The process manager is the entry point to create, find and otherwise manage processes.
@@ -144,17 +143,13 @@
*/
public final boolean registerProcess(Process proc)
{
- // Only initialize if this has not already been done
- if (proc.getProcessState() == Process.ProcessState.CREATED)
- ((ProcessImpl)proc).initialize();
-
- return procs.add((ProcessImpl)proc);
+ return procs.add(proc);
}
/**
* Remove a Process
*/
- public void removeProcess(ProcessImpl proc)
+ public void removeProcess(Process proc)
{
procs.remove(proc.getName());
}
Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ExecutionManagerImpl.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,187 +0,0 @@
-/*
- * 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.jboss.bpm.client.internal;
-
-// $Id$
-
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.TimeoutException;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jboss.bpm.NotImplementedException;
-import org.jboss.bpm.client.ExecutionManager;
-import org.jboss.bpm.client.ProcessEngine;
-import org.jboss.bpm.model.EndEvent;
-import org.jboss.bpm.model.Flow;
-import org.jboss.bpm.model.FlowObject;
-import org.jboss.bpm.model.Process;
-import org.jboss.bpm.model.Result;
-import org.jboss.bpm.model.Signal;
-import org.jboss.bpm.model.StartEvent;
-import org.jboss.bpm.model.internal.SequenceFlowImpl;
-import org.jboss.bpm.runtime.Attachments;
-import org.jboss.bpm.runtime.ExecutionHandler;
-import org.jboss.bpm.runtime.FlowHandler;
-import org.jboss.bpm.runtime.MutableFlowScheduler;
-import org.jboss.bpm.runtime.RuntimeProcess;
-import org.jboss.bpm.runtime.SignalHandler;
-import org.jboss.bpm.runtime.Token;
-import org.jboss.bpm.runtime.FlowScheduler.Tuple;
-
-/**
- * The process manager is the entry point to create, find and otherwise manage processes.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class ExecutionManagerImpl extends ExecutionManager
-{
- // provide logging
- private static final Log log = LogFactory.getLog(ExecutionManager.class);
-
- public void setProcessEngine(ProcessEngine engine)
- {
- this.engine = engine;
- }
-
- @Override
- public Future<Result> startProcess(RuntimeProcess rtProc, Attachments att)
- {
- Process proc = rtProc.getProcess();
- throwSignal(new Signal(proc, Signal.Type.ENTER_PROCESS));
- MutableFlowScheduler flowScheduler = rtProc.getFlowScheduler();
- try
- {
- Token initalToken = new Token(proc, att);
- StartEvent start = proc.getStartEvent();
- Tuple tuple = new Tuple(new InitialFlow(start), initalToken);
- flowScheduler.scheduleTuple(tuple);
-
- while (flowScheduler.peekHeadTuple() != null)
- {
- // Peek the head flow
- tuple = flowScheduler.peekHeadTuple();
- Flow flow = tuple.getFlow();
- Token token = tuple.getToken();
-
- // Get the target and its handlers
- FlowObject target = flow.getTarget();
- ExecutionHandler exHandler = getExecutionHandler(target);
- SignalHandler sigHandler = getSignalHandler(target);
- FlowHandler flowHandler = getFlowHandler(target);
-
- // Execute the FlowObject's ExecutionHandler
- try
- {
- throwSignal(sigHandler.getEnterSignal());
- exHandler.execute(token);
- }
- finally
- {
- throwSignal(sigHandler.getExitSignal());
- }
-
- // Remove the head tuple
- flowScheduler.removeHeadTuple();
-
- // Transfer the token to the FlowHandler
- flowHandler.execute(flowScheduler, token);
- }
- }
- finally
- {
- throwSignal(new Signal(proc, Signal.Type.EXIT_PROCESS));
- }
- return new ResultFuture(proc);
- }
-
- /**
- * The initial flow 'to' the StartEvent
- */
- class InitialFlow extends SequenceFlowImpl
- {
- InitialFlow(StartEvent start)
- {
- super("start");
- setTarget(start);
- }
- }
-
- /**
- * A basic implementation of a Future
- */
- class ResultFuture implements Future<Result>
- {
- private Result result;
- private Process proc;
-
- public ResultFuture(Process proc)
- {
- this.proc = proc;
- }
-
- public boolean cancel(boolean mayInterruptIfRunning)
- {
- throw new NotImplementedException();
- }
-
- public Result get() throws InterruptedException, ExecutionException
- {
- return getResult();
- }
-
- public Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- {
- throw new NotImplementedException();
- }
-
- public boolean isCancelled()
- {
- return false;
- }
-
- public boolean isDone()
- {
- boolean isDone = getResult() != null;
- return isDone;
- }
-
- private Result getResult()
- {
- if (result == null)
- {
- for (EndEvent aux : proc.getEndEvents())
- {
- result = aux.getResult();
- if (result != null)
- {
- break;
- }
- }
- }
- return result;
- }
- }
-}
\ No newline at end of file
Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/ProcessEngineImpl.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,53 +0,0 @@
-/*
- * 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.jboss.bpm.client.internal;
-
-//$Id$
-
-import org.jboss.bpm.client.ExecutionManager;
-import org.jboss.bpm.client.ProcessEngine;
-import org.jboss.bpm.client.ProcessManager;
-import org.jboss.bpm.client.SignalManager;
-
-/**
- * A process engine with public access
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class ProcessEngineImpl extends ProcessEngine
-{
- public void setProcessManager(ProcessManager processManager)
- {
- this.processManager = processManager;
- }
-
- public void setExecutionManager(ExecutionManager executionManager)
- {
- this.executionManager = executionManager;
- }
-
- public void setSignalManager(SignalManager signalManager)
- {
- this.signalManager = signalManager;
- }
-}
Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/SignalManagerImpl.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,48 +0,0 @@
-/*
- * 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.jboss.bpm.client.internal;
-
-// $Id$
-
-import org.jboss.bpm.client.ProcessEngine;
-import org.jboss.bpm.client.SignalManager;
-import org.jboss.bpm.model.Signal;
-
-/**
- * An implementation of a signal manager
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class SignalManagerImpl extends SignalManager
-{
- public void setProcessEngine(ProcessEngine engine)
- {
- this.engine = engine;
- }
-
- @Override
- public void throwSignal(Signal signal)
- {
- super.throwSignal(signal);
- }
-}
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -21,7 +21,9 @@
*/
package org.jboss.bpm.model;
-import org.jboss.bpm.model.internal.ProcessBuilderImpl;
+import org.jboss.kernel.Kernel;
+import org.jboss.kernel.plugins.util.KernelLocator;
+import org.jboss.kernel.spi.registry.KernelRegistryEntry;
//$Id$
@@ -33,17 +35,26 @@
*/
public abstract class ProcessBuilderFactory
{
+ /** The process engine bean name - jBPMEngine */
+ public static final String BEAN_NAME = "jBPMProcessBuilderFactory";
+
// Hide the constructor
- private ProcessBuilderFactory()
+ protected ProcessBuilderFactory()
{
}
/**
- * Get a {@link ProcessBuilder} for a given process name.
+ * Get a ProcessBuilderFactory instance.
*/
- public static ProcessBuilder newInstance(String procName)
+ public static ProcessBuilderFactory newInstance()
{
- return new ProcessBuilderImpl(procName);
+ Kernel kernel = KernelLocator.getKernel();
+ KernelRegistryEntry entry = kernel.getRegistry().getEntry(BEAN_NAME);
+ return (ProcessBuilderFactory)entry.getTarget();
}
+ /**
+ * Get a {@link ProcessBuilder} for a given process name.
+ */
+ public abstract ProcessBuilder newProcessBuilder(String procName);
}
\ No newline at end of file
Modified: api/trunk/modules/dialects/jaxb/pom.xml
===================================================================
--- api/trunk/modules/dialects/jaxb/pom.xml 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/dialects/jaxb/pom.xml 2008-07-17 06:18:46 UTC (rev 1656)
@@ -27,12 +27,11 @@
<!-- Dependencies -->
<dependencies>
-
- <!-- Compile Dependencies -->
<dependency>
<groupId>org.jboss.jbpm</groupId>
<artifactId>jbpm-api</artifactId>
<version>${version}</version>
+ <scope>compile</scope>
</dependency>
</dependencies>
Modified: api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java
===================================================================
--- api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/dialects/jaxb/src/main/java/org/jboss/bpm/dialect/jaxb/ProcessAdapter.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -63,7 +63,7 @@
public Process adaptProcess(JAXBProcess jaxbProc)
{
- builder = ProcessBuilderFactory.newInstance(jaxbProc.getName());
+ builder = ProcessBuilderFactory.newInstance().newProcessBuilder(jaxbProc.getName());
for (JAXBFlowObject jaxbFlowObject : jaxbProc.getFlowObjects())
{
FlowObject apiFlowObject;
Copied: api/trunk/modules/impl (from rev 1655, api/trunk/modules/api)
Modified: api/trunk/modules/impl/pom.xml
===================================================================
--- api/trunk/modules/api/pom.xml 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/pom.xml 2008-07-17 06:18:46 UTC (rev 1656)
@@ -12,9 +12,9 @@
<!-- $Id$ -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <name>JBoss jBPM - API Source</name>
+ <name>JBoss jBPM - API Impl</name>
<groupId>org.jboss.jbpm</groupId>
- <artifactId>jbpm-api</artifactId>
+ <artifactId>jbpm-api-impl</artifactId>
<packaging>jar</packaging>
<!-- Parent -->
@@ -27,100 +27,12 @@
<!-- Dependencies -->
<dependencies>
-
- <!-- Compile Dependencies -->
<dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api</artifactId>
+ <version>${version}</version>
+ <scope>compile</scope>
</dependency>
- <dependency>
- <groupId>org.jboss.microcontainer</groupId>
- <artifactId>jboss-kernel</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </dependency>
-
- <!-- Provided Dependencies -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Runtime/System Dependencies -->
- <dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-xjc</artifactId>
- <scope>runtime</scope>
- </dependency>
</dependencies>
- <!-- Plugins -->
- <build>
- <plugins>
- <plugin>
- <!--
- ~/.m2/settings.xml
- <pluginGroups>
- <pluginGroup>com.sun.tools.jxc.maven2</pluginGroup>
- </pluginGroups>
-
- mvn jaxb-schemagen:generate
- -->
- <groupId>com.sun.tools.jxc.maven2</groupId>
- <artifactId>maven-jaxb-schemagen-plugin</artifactId>
- <configuration>
- <srcdir>${basedir}/src/main/java/org/jboss/bpm/model/internal/jaxb</srcdir>
- <destdir>target/schema</destdir>
- <schemas>
- <schema>
- <namespace>urn:api.bpm.jboss:jpdl-0.1</namespace>
- <file>jbpm-api-0.1.xsd</file>
- </schema>
- </schemas>
- <includes>
- <include>JAXBActivity.java</include>
- <include>JAXBComplexGateway.java</include>
- <include>JAXBEndEvent.java</include>
- <include>JAXBEvent.java</include>
- <include>JAXBExclusiveGateway.java</include>
- <include>JAXBExecutionHandler.java</include>
- <include>JAXBFlowHandler.java</include>
- <include>JAXBFlow.java</include>
- <include>JAXBFlowObject.java</include>
- <include>JAXBGateway.java</include>
- <include>JAXBHandler.java</include>
- <include>JAXBInclusiveGateway.java</include>
- <include>JAXBIntermediateEvent.java</include>
- <include>JAXBMessageFlow.java</include>
- <include>JAXBParallelGateway.java</include>
- <include>JAXBProcess.java</include>
- <include>JAXBSequenceFlow.java</include>
- <include>JAXBSignalHandler.java</include>
- <include>JAXBStartEvent.java</include>
- <include>JAXBSubProcess.java</include>
- <include>JAXBTask.java</include>
- <include>ObjectFactory.java</include>
- <include>package-info.java</include>
- </includes>
- <verbose>false</verbose>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <!-- Reporting -->
- <reporting>
- <plugins>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <show>public</show>
- <excludePackageNames>*.internal:*.incubation:*.test</excludePackageNames>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
</project>
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/EngineShutdownException.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/EngineShutdownException.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/EngineShutdownException.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,47 +0,0 @@
-/*
- * 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.jboss.bpm;
-
-// $Id$
-
-/**
- * A JBPMException that is thrown when an invalid operation is invoked on
- * engine shutdown.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class EngineShutdownException extends JBPMException {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public EngineShutdownException() {
- super();
- }
-
- public EngineShutdownException(String message) {
- super(message);
- }
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/InvalidProcessException.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/InvalidProcessException.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/InvalidProcessException.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,59 +0,0 @@
-/*
- * 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.jboss.bpm;
-
-
-// $Id$
-
-/**
- * A RuntimeException that is thrown for invalid processes
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class InvalidProcessException extends JBPMException
-{
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public InvalidProcessException()
- {
- super();
- }
-
- public InvalidProcessException(String message)
- {
- super(message);
- }
-
- public InvalidProcessException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
- public InvalidProcessException(Throwable cause)
- {
- super(cause);
- }
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/JBPMException.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/JBPMException.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/JBPMException.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,55 +0,0 @@
-/*
- * 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.jboss.bpm;
-
-// $Id$
-
-/**
- * A RuntimeException that can be thrown for unrecoverable API errors
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class JBPMException extends RuntimeException {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public JBPMException() {
- super();
- }
-
- public JBPMException(String message, Throwable cause) {
- super(message, cause);
- }
-
- public JBPMException(String message) {
- super(message);
- }
-
- public JBPMException(Throwable cause) {
- super(cause);
- }
-
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/NameNotUniqueException.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/NameNotUniqueException.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/NameNotUniqueException.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,45 +0,0 @@
-/*
- * 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.jboss.bpm;
-
-// $Id$
-
-/**
- * A JBPMException that is thrown when an element name is not unique.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class NameNotUniqueException extends InvalidProcessException
-{
- private static final long serialVersionUID = 1L;
-
- public NameNotUniqueException()
- {
- super();
- }
-
- public NameNotUniqueException(String message)
- {
- super(message);
- }
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/NotImplementedException.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/NotImplementedException.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/NotImplementedException.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,46 +0,0 @@
-/*
- * 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.jboss.bpm;
-
-// $Id$
-
-/**
- * A RuntimeException that should be thrown for unimplemented features
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class NotImplementedException extends RuntimeException {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public NotImplementedException() {
- super();
- }
-
- public NotImplementedException(String message) {
- super(message);
- }
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ExecutionManager.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ExecutionManager.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ExecutionManager.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,101 +0,0 @@
-/*
- * 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.jboss.bpm.client;
-
-// $Id$
-
-import java.util.concurrent.Future;
-
-import org.jboss.bpm.model.FlowObject;
-import org.jboss.bpm.model.Result;
-import org.jboss.bpm.model.Signal;
-import org.jboss.bpm.runtime.Attachments;
-import org.jboss.bpm.runtime.ExecutionHandler;
-import org.jboss.bpm.runtime.FlowHandler;
-import org.jboss.bpm.runtime.HandlerSupport;
-import org.jboss.bpm.runtime.RuntimeProcess;
-import org.jboss.bpm.runtime.SignalHandler;
-
-/**
- * The ExecutionManager executes processes
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public abstract class ExecutionManager
-{
- // Injected through the MC
- protected ProcessEngine engine;
-
- // Hide public constructor
- protected ExecutionManager()
- {
- }
-
- /**
- * Start the Process and return a Future
- * @param proc The Process to start
- * @param att The Attachments in the ExecutionContext
- * @return The Future from which to obtain the process result
- */
- public abstract Future<Result> startProcess(RuntimeProcess proc, Attachments att);
-
- /**
- * Locate the signal manager
- */
- public static ExecutionManager locateExecutionManager()
- {
- ProcessEngine engine = ProcessEngineLocator.locateProcessEngine();
- return engine.getExecutionManager();
- }
-
- protected ExecutionHandler getExecutionHandler(FlowObject target)
- {
- HandlerSupport exfo = getHandlerSupport(target);
- return exfo.getExecutionHandler();
- }
-
- protected SignalHandler getSignalHandler(FlowObject target)
- {
- HandlerSupport exfo = getHandlerSupport(target);
- return exfo.getSignalHandler();
- }
-
- protected FlowHandler getFlowHandler(FlowObject target)
- {
- HandlerSupport exfo = getHandlerSupport(target);
- return exfo.getFlowHandler();
- }
-
- protected void throwSignal(Signal signal)
- {
- SignalManager sm = SignalManager.locateSignalManager();
- sm.throwSignal(signal);
- }
-
- private HandlerSupport getHandlerSupport(FlowObject fo)
- {
- if (fo instanceof HandlerSupport == false)
- throw new IllegalStateException("Flow object is not executable: " + fo);
- return (HandlerSupport)fo;
- }
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessEngine.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngine.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessEngine.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,112 +0,0 @@
-/*
- * 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.jboss.bpm.client;
-
-// $Id$
-
-/**
- * The process engine is an agregator of various manger objects used by the BPM engine
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public class ProcessEngine
-{
- /** The process engine bean name - jBPMEngine */
- public static final String BEAN_NAME_JBPMENGINE = "jBPMProcessEngine";
- /** The default bean config: jbpm-beans.xml */
- public static final String JBPM_ENGINE_CONFIG = "jbpm-beans.xml";
-
- // Injected through the MC
- protected ProcessManager processManager;
- // Injected through the MC
- protected SignalManager signalManager;
- // Injected through the MC
- protected ExecutionManager executionManager;
- // Flag to indicate that the Engine is shutting down
- private boolean prepareForShutdown;
-
- // Hide public constructor
- protected ProcessEngine()
- {
- }
-
- /**
- * Prepare the engine for shutdown. During shutdown the creation of new processes is disallowed.
- */
- public void prepareForShutdown()
- {
- prepareForShutdown = true;
- }
-
- /**
- * True, if engine is preparing for shutdown.
- */
- public boolean isPrepareForShutdown()
- {
- return prepareForShutdown;
- }
-
- /**
- * Cancel the prepare for shutdown request
- */
- public void cancelShutdown()
- {
- prepareForShutdown = false;
- }
-
- /**
- * Get the configured instance of the ProcessManager
- * @return The ProcessManager
- */
- public ProcessManager getProcessManager()
- {
- if (processManager == null)
- throw new IllegalStateException("ProcessManager not available through kernel configuration");
-
- return processManager;
- }
-
- /**
- * Get the configured instance of the SignalManager
- * @return The SignalManager
- */
- public SignalManager getSignalManager()
- {
- if (signalManager == null)
- throw new IllegalStateException("SignalManager not available through kernel configuration");
-
- return signalManager;
- }
-
- /**
- * Get the configured instance of the ExecutionManager
- * @return The ExecutionManager
- */
- public ExecutionManager getExecutionManager()
- {
- if (executionManager == null)
- throw new IllegalStateException("ExecutionManager not available through kernel configuration");
-
- return executionManager;
- }
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessEngineLocator.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,92 +0,0 @@
-/*
- * 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.jboss.bpm.client;
-
-// $Id$
-
-import java.net.URL;
-
-import org.jboss.bpm.JBPMException;
-import org.jboss.bpm.client.internal.EmbeddedBeansDeployer;
-import org.jboss.kernel.Kernel;
-import org.jboss.kernel.plugins.util.KernelLocator;
-import org.jboss.kernel.spi.registry.KernelRegistryEntry;
-import org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException;
-
-/**
- * The ProcessEngineLocator is the main entry point for all client operations. It locates the process engine instance shared by all clients.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public abstract class ProcessEngineLocator
-{
-
- // Hide the constructor
- private ProcessEngineLocator()
- {
- }
-
- /**
- * Locate the ProcessEngine instance shared by all clients.
- *
- * @return The configured instance of a process engine
- */
- @SuppressWarnings("deprecation")
- public static ProcessEngine locateProcessEngine()
- {
- Kernel kernel = KernelLocator.getKernel();
- KernelRegistryEntry entry = null;
- if (kernel == null)
- {
- deployEngineConfiguration();
- kernel = KernelLocator.getKernel();
- entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME_JBPMENGINE);
- }
- else
- {
- try
- {
- entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME_JBPMENGINE);
- }
- catch (KernelRegistryEntryNotFoundException ex)
- {
- deployEngineConfiguration();
- entry = kernel.getRegistry().getEntry(ProcessEngine.BEAN_NAME_JBPMENGINE);
- }
- }
-
- ProcessEngine engine = (ProcessEngine)entry.getTarget();
- return engine;
- }
-
- private static void deployEngineConfiguration()
- {
-
- String config = ProcessEngine.JBPM_ENGINE_CONFIG;
- URL url = Thread.currentThread().getContextClassLoader().getResource(config);
- if (url == null)
- throw new JBPMException("Cannot find resource: " + config);
-
- new EmbeddedBeansDeployer().deploy(url);
- }
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessManager.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/ProcessManager.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/ProcessManager.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,161 +0,0 @@
-/*
- * 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.jboss.bpm.client;
-
-// $Id$
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jboss.bpm.EngineShutdownException;
-import org.jboss.bpm.model.Process;
-import org.jboss.bpm.model.internal.ProcessImpl;
-
-/**
- * The process manager is the entry point to create, find and otherwise manage processes.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 18-Jun-2008
- */
-public abstract class ProcessManager
-{
- // provide logging
- private static final Log log = LogFactory.getLog(ProcessManager.class);
-
- // Injected through the MC
- protected ProcessEngine engine;
- // The set of process definitions
- private Set<Process> procs = new HashSet<Process>();
-
- // Hide public constructor
- protected ProcessManager()
- {
- }
-
- /**
- * Get the associated process engine
- */
- public ProcessEngine getProcessEngine()
- {
- if (engine == null)
- throw new IllegalStateException("ProcessEngine not available through kernel configuration");
-
- return engine;
- }
-
- /**
- * Locate the process definition manager
- */
- public static ProcessManager locateProcessManager()
- {
- ProcessEngine engine = ProcessEngineLocator.locateProcessEngine();
- return engine.getProcessManager();
- }
-
- /**
- * Create a Process from a XML string in one of the supported formats
- */
- public final Process createProcess(String procDescriptor)
- {
- if (engine.isPrepareForShutdown())
- throw new EngineShutdownException("Cannot create new Process while engine is shutting down");
-
- Process proc = createProcessOverride(procDescriptor);
- registerProcess(proc);
- return proc;
- }
-
- /**
- * Create a Process from an URL to a XML descritor in one of the supported formats
- */
- public final Process createProcess(URL procURL) throws IOException
- {
- if (engine.isPrepareForShutdown())
- throw new EngineShutdownException("Cannot create new Process while engine is shutting down");
-
- Process proc = createProcessOverride(procURL);
- registerProcess(proc);
- return proc;
- }
-
- /**
- * Override to implement Process creation
- */
- protected abstract Process createProcessOverride(String pXML);
-
- /**
- * Override to implement Process creation
- */
- protected abstract Process createProcessOverride(URL pURL) throws IOException;
-
- /**
- * Get the set of registered Processes
- */
- public Set<Process> getProcesses()
- {
- return Collections.unmodifiableSet(procs);
- }
-
- /**
- * Find a Process for a given name
- *
- * @return null if the process definition is not defined
- */
- public Process findProcess(String name)
- {
- Process proc = null;
- for (Process aux : procs)
- {
- if (aux.getName().equals(name))
- {
- proc = aux;
- break;
- }
- }
- return proc;
- }
-
- /**
- * Register a Process
- */
- public final boolean registerProcess(Process proc)
- {
- // Only initialize if this has not already been done
- if (proc.getProcessState() == Process.ProcessState.CREATED)
- ((ProcessImpl)proc).initialize();
-
- return procs.add((ProcessImpl)proc);
- }
-
- /**
- * Remove a Process
- */
- public void removeProcess(ProcessImpl proc)
- {
- procs.remove(proc.getName());
- }
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/SignalListener.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/SignalListener.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/SignalListener.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,41 +0,0 @@
-/*
- * 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.jboss.bpm.client;
-
-import org.jboss.bpm.model.Signal;
-
-//$Id$
-
-
-/**
- * A signal listener that can be registered with the ProcessEngine
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface SignalListener
-{
- /**
- * Catch a signal from the process that this listener is registered with
- */
- void catchSignal(Signal signal);
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/SignalManager.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/SignalManager.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/SignalManager.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,121 +0,0 @@
-/*
- * 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.jboss.bpm.client;
-
-//$Id$
-
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jboss.bpm.model.Signal;
-
-/**
- * The signal manager is the entry point for signal processing
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public abstract class SignalManager
-{
- // provide logging
- private static final Log log = LogFactory.getLog(SignalManager.class);
-
- // Injected through the MC
- protected ProcessEngine engine;
- // The map of registered signal listeners
- private Map<String, Set<SignalListener>> listeners = new HashMap<String, Set<SignalListener>>();
-
- // Hide public constructor
- protected SignalManager()
- {
- }
-
- /**
- * Get the associated process engine
- */
- public ProcessEngine getProcessEngine()
- {
- if (engine == null)
- throw new IllegalStateException("ProcessEngine not available through kernel configuration");
-
- return engine;
- }
-
- /**
- * Locate the signal manager
- */
- public static SignalManager locateSignalManager()
- {
- ProcessEngine engine = ProcessEngineLocator.locateProcessEngine();
- return engine.getSignalManager();
- }
-
- /** Add a signal listener for a given process */
- public void addListener(String procName, SignalListener listener)
- {
- log.debug("addListener: " + listener);
- Set<SignalListener> set = listeners.get(procName);
- if (set == null)
- {
- set = new HashSet<SignalListener>();
- listeners.put(procName, set);
- }
- set.add(listener);
- }
-
- /** Remove an signal listener for a given process */
- public void removeListener(String procName, SignalListener listener)
- {
- log.debug("removeListener: " + listener);
- Set<SignalListener> set = listeners.get(procName);
- if (set != null)
- {
- set.remove(listener);
- }
- }
-
- /** Remove all signal listeners for a given process */
- public void removeListeners(String procName)
- {
- log.debug("removeListeners: " + procName);
- listeners.remove(procName);
- }
-
- /** Throw a signal to all registered listeners */
- public void throwSignal(Signal signal)
- {
- log.debug("throwSignal: " + signal);
- String procName = signal.getProcessName();
- Set<SignalListener> set = listeners.get(procName);
- if (set != null)
- {
- for (SignalListener listener : set)
- {
- listener.catchSignal(signal);
- }
- }
- }
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/EmbeddedBeansDeployer.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/client/internal/EmbeddedBeansDeployer.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/client/internal/EmbeddedBeansDeployer.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,109 +0,0 @@
-/*
- * 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.jboss.bpm.client.internal;
-
-// $Id$
-
-import java.net.URL;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jboss.bpm.JBPMException;
-import org.jboss.kernel.Kernel;
-import org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap;
-import org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer;
-import org.jboss.kernel.plugins.util.KernelLocator;
-
-/**
- * Boostrap the Microcontainer
- *
- * @author thomas.diesler(a)jboss.com
- * @since 27-Jun-2008
- */
-public class EmbeddedBeansDeployer extends BasicBootstrap
-{
- // provide logging
- private static final Log log = LogFactory.getLog(EmbeddedBeansDeployer.class);
-
- private Kernel kernel;
- private BasicXMLDeployer deployer;
-
- public EmbeddedBeansDeployer()
- {
- // Get or bootstrap the kernel
- kernel = KernelLocator.getKernel();
- if (kernel == null)
- {
- try
- {
- super.bootstrap();
- kernel = super.getKernel();
- log.debug("bootstrap kernel: " + kernel);
- }
- catch (Throwable e)
- {
- throw new JBPMException("Cannot bootstrap kernel", e);
- }
- }
- deployer = new BasicXMLDeployer(kernel);
- }
-
- /**
- * Deploy MC beans from URL
- */
- public void deploy(URL url)
- {
- log.debug("deploy: " + url);
-
- // Deploy the beans
- try
- {
- deployer.deploy(url);
- deployer.validate();
-
- // The KernelLocator is expected to get deployed as a bean
- if (KernelLocator.getKernel() == null)
- throw new JBPMException("KernelLocator not deployed as MC bean");
-
- }
- catch (Throwable e)
- {
- throw new JBPMException("Cannot deploy beans from: " + url, e);
- }
- }
-
- /**
- * Undeploy MC beans from URL
- */
- public void undeploy(URL url)
- {
- log.debug("undeploy: " + url);
- try
- {
- deployer.undeploy(url);
- }
- catch (Throwable e)
- {
- throw new JBPMException("Cannot undeploy beans from: " + url, e);
- }
- }
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Activity.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Activity.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Activity.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,37 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * An activity is a generic term for work that a company or organization performs via business processes.
- * An activity can be atomic or non-atomic (compound).
- * The types of activities that are a part of a Process Model are: {@link Process}, {@link SubProcess}, and {@link Task}.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface Activity extends FlowObject, NamedFlowObject
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/BPMNElement.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/BPMNElement.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/BPMNElement.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * The
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface BPMNElement
-{
- /**
- * Get the ID of this element
- */
- //String getID();
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ComplexGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ComplexGateway.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ComplexGateway.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,37 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-
-// $Id$
-
-/**
- * A Complex Gateway handles situations that are not easily handled through the other types of Gateways. Complex Gateways can also be used to combine a set of linked
- * simple Gateways into a single, more compact situation. Modelers can provide complex expressions that determine the merging and/or splitting behavior of the Gateway.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface ComplexGateway extends Gateway
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/EndEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/EndEvent.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/EndEvent.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,43 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * As the name implies, the End Event indicates where a Process will end.
- *
- * In terms of Sequence Flow, the End Event ends the flow of the Process, and thus, will not have any outgoing Sequence Flow.
- * An End Event can have a specific Result that will appear as a marker within the center of the End Event shape.
- * End Event Results are Message, Error, Compensation, Link, and Multiple.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface EndEvent extends Event, NamedFlowObject, SingleInFlowSupport
-{
- /**
- * Get the {@link Result}
- */
- Result getResult();
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Event.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Event.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Event.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-
-//$Id$
-
-/**
- * An Event is something that “happens” during the course of a business process.
- * <p/>
- * These Events affect the flow of the Process and usually have a cause or an impact.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface Event extends FlowObject
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,36 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-
-//$Id$
-
-/**
- * A point in the workflow process where, based on a decision or workflow control data, one of several branches is chosen.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface ExclusiveGateway extends Gateway
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Flow.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Flow.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Flow.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,58 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * A Flow is a graphical line connecting two objects in a BPD.
- * <p/>
- * There are two types of Flow: {@link SequenceFlow} and {@link MessageFlow}, each with their own line style.
- * Flow is also used in a generic sense (and lowercase) to describe how Tokens will traverse from the
- * {@link StartEvent} to an {@link EndEvent}.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface Flow
-{
- /**
- * Get the optional name
- */
- String getName();
-
- /**
- * Get the required target name
- */
- String getTargetName();
-
- /**
- * Get the source flow object
- */
- FlowObject getSource();
-
- /**
- * Get the target flow object
- */
- FlowObject getTarget();
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/FlowObject.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/FlowObject.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/FlowObject.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,39 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * A Flow Object is one of the set of following graphical objects:
- * {@link Event}, {@link Activity}, and {@link Gateway}.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface FlowObject extends GraphicalElement
-{
- /**
- * Get the associated Process
- */
- Process getProcess();
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Gateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Gateway.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Gateway.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-
-//$Id: ExecutionHandlerImpl.java 1627 2008-07-14 15:16:28Z thomas.diesler(a)jboss.com $
-
-/**
- * Gateways are modelling elements that are used to control how Flows interact as they converge and diverge within a Process.
- * </p>
- * If the flow does not need to be controlled, then a Gateway is not needed.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface Gateway extends FlowObject, NamedFlowObject, MultipleOutFlowSupport, MultipleInFlowSupport
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/GraphicalElement.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/GraphicalElement.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/GraphicalElement.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,34 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * A graphical BPMN element
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface GraphicalElement extends BPMNElement
-{
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/InclusiveGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/InclusiveGateway.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/InclusiveGateway.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,37 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * This Decision represents a branching point where Alternatives are based on conditional expressions contained within outgoing Sequence Flow.
- * However, in this case, the True evaluation of one condition expression does not exclude the evaluation of other condition expressions.
- * All Sequence Flow with a True evaluation will be traversed by a Token.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface InclusiveGateway extends Gateway
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/IntermediateEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/IntermediateEvent.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/IntermediateEvent.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * An Intermediate Event is an {@link Event} that occurs after a {@link Process} has been started.
- * <p/>
- * It will affect the {@link Flow} of the {@link Process}, but will not start or (directly) terminate
- * the {@link Process}. An Intermediate Event will show where messages or delays are expected within the {@link Process},
- * disrupt the Normal Flow through exception handling, or show the extra flow required for compensating a transaction.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface IntermediateEvent extends Event, NamedFlowObject, SingleInFlowSupport, SingleOutFlowSupport
-{
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MessageFlow.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageFlow.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MessageFlow.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,36 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * A Message Flow is a dashed line that is used to show the flow of messages between two entities that are prepared to send and receive them.
- * In BPMN, two separate Pools in the Diagram will represent the two entities.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface MessageFlow extends Flow
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MultipleInFlowSupport.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MultipleInFlowSupport.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MultipleInFlowSupport.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,40 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-import java.util.List;
-
-//$Id$
-
-/**
- * Implementing {@link FlowObject}s support multiple incomming {@link Flow}s.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface MultipleInFlowSupport
-{
- /**
- * Get the list of in flows
- */
- List<Flow> getInFlows();
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MultipleOutFlowSupport.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MultipleOutFlowSupport.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/MultipleOutFlowSupport.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,40 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-import java.util.List;
-
-//$Id$
-
-/**
- * Implementing {@link FlowObject} support multiple outgoing {@link Flow}.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface MultipleOutFlowSupport
-{
- /**
- * Get the list of out flows
- */
- List<Flow> getOutFlows();
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/NamedFlowObject.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/NamedFlowObject.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/NamedFlowObject.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,39 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * Implementing {@link BPMNElement} have can be uniquely identified
- * in the {@link Process} by name.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface NamedFlowObject
-{
- /**
- * Get the unique name.
- */
- String getName();
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ParallelGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ParallelGateway.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ParallelGateway.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,35 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * Parallel Gateway is required when two or more Activities need to be executed in parallel.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface ParallelGateway extends Gateway
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Process.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Process.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Process.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,87 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id: MultipleInFlowSupport.java 1627 2008-07-14 15:16:28Z thomas.diesler(a)jboss.com $
-
-import java.util.List;
-import java.util.concurrent.Future;
-
-import org.jboss.bpm.runtime.Attachments;
-
-/**
- * A Process is any {@link Activity} performed within a company or organization.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface Process extends Activity, NamedFlowObject
-{
- /**
- * Defines the state a {@link Process} can be in
- */
- enum ProcessState
- {
- /** The Process is created but not yet initialized */
- CREATED,
- /** The Process is initialized but not yet started */
- INITIALIZED,
- /** The Process is started but has not yet ended */
- STARTED,
- /** The Process has ended */
- ENDED
- };
-
- /**
- * Get the start event
- */
- StartEvent getStartEvent();
-
- /**
- * Get the set of end events
- */
- List<EndEvent> getEndEvents();
-
- /**
- * Get the list of flow objects
- */
- List<FlowObject> getFlowObjects();
-
- /** Start the process */
- Future<Result> startProcess();
-
- /** Start the process, with a given execution context */
- Future<Result> startProcess(Attachments att);
-
- /**
- * Find a flow object by name
- *
- * @return null if not found
- */
- FlowObject findFlowObject(String name);
-
- /**
- * Get the process state
- */
- ProcessState getProcessState();
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ProcessBuilder.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilder.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ProcessBuilder.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,173 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-import org.jboss.bpm.runtime.ExecutionHandler;
-import org.jboss.bpm.runtime.FlowHandler;
-import org.jboss.bpm.runtime.SignalHandler;
-
-//$Id$
-
-/**
- * The ProcessBuilder can be used to build a {@link Process} dynamically.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface ProcessBuilder
-{
- /**
- * Get the {@link Process}.
- * <p/>
- * This is the final call to the ProcessBuilder after all elements have been added.
- */
- Process getProcess();
-
- /**
- * Add a {@link SubProcess} with a given name
- */
- ProcessBuilder addSubProcess(String name);
-
- /**
- * Add a {@link SequenceFlow} with a given name
- */
- ProcessBuilder addSequenceFlow(String name);
-
- /**
- * Add a {@link MessageFlow} with a given name
- */
- ProcessBuilder addMessageFlow(String name);
-
- /**
- * Add a {@link StartEvent}
- */
- ProcessBuilder addStartEvent();
-
- /**
- * Add an {@link IntermediateEvent} with a given name
- */
- ProcessBuilder addItermediateEvent(String name);
-
- /**
- * Add an {@link EndEvent} with a given name
- */
- ProcessBuilder addEndEvent(String name);
-
- /**
- * Add a {@link Task} with a given name
- */
- ProcessBuilder addTask(String name);
-
- /**
- * Add an {@link ExclusiveGateway} with a given name
- */
- ProcessBuilder addExclusiveGateway(String name);
-
- /**
- * Add an {@link InclusiveGateway} with a given name
- */
- ProcessBuilder addInclusiveGateway(String name);
-
- /**
- * Add a {@link ComplexGateway} with a given name
- */
- ProcessBuilder addComplexGateway(String name);
-
- /**
- * Add a {@link ParallelGateway} with a given name
- */
- ProcessBuilder addParallelGateway(String name);
-
- /**
- * Add an {@link ExecutionHandler} with a given Class
- */
- ProcessBuilder addExecutionHandler(Class<?> clazz);
-
- /**
- * Add an {@link FlowHandler} with a given Class
- */
- ProcessBuilder addFlowHandler(Class<?> clazz);
-
- /**
- * Add an {@link SignalHandler} with a given Class
- */
- ProcessBuilder addSignalHandler(Class<?> clazz);
-
- // ==============
-
- /**
- * Create a {@link Process}.
- */
- Process createProcess(String name);
-
- /**
- * Create a {@link SubProcess} with a given name
- */
- SubProcess createSubProcess(String name);
-
- /**
- * Create a {@link StartEvent}
- */
- StartEvent createStartEvent();
-
- /**
- * Create an {@link IntermediateEvent} with a given name
- */
- IntermediateEvent createIntermediateEvent(String name);
-
- /**
- * Create an {@link EndEvent} with a given name
- */
- EndEvent createEndEvent(String name);
-
- /**
- * Create a {@link Task} with a given name
- */
- Task createTask(String name);
-
- /**
- * Create an {@link ExclusiveGateway} with a given name
- */
- ExclusiveGateway createExclusiveGateway(String name);
-
- /**
- * Create an {@link InclusiveGateway} with a given name
- */
- InclusiveGateway createInclusiveGateway(String name);
-
- /**
- * Create a {@link ComplexGateway} with a given name
- */
- ComplexGateway createComplexGateway(String name);
-
- /**
- * Create a {@link ParallelGateway} with a given name
- */
- ParallelGateway createParallelGateway(String name);
-
- /**
- * Add a {@link FlowObject} create by one of the create methods.
- * @param fo
- * @return
- */
- FlowObject addFlowObject(FlowObject fo);
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/ProcessBuilderFactory.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,49 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-import org.jboss.bpm.model.internal.ProcessBuilderImpl;
-
-//$Id$
-
-/**
- * A Factory for the {@link ProcessBuilder}.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public abstract class ProcessBuilderFactory
-{
- // Hide the constructor
- private ProcessBuilderFactory()
- {
- }
-
- /**
- * Get a {@link ProcessBuilder} for a given process name.
- */
- public static ProcessBuilder newInstance(String procName)
- {
- return new ProcessBuilderImpl(procName);
- }
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Result.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Result.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Result.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,40 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-import org.jboss.bpm.runtime.Attachments;
-
-/**
- * A Result is consequence of reaching an End Event.
- * <p/>
- * Results can be of different types, including: Message, Error, Compensation, Link, and Multiple.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface Result
-{
- /** Get the Attachments from the result */
- Attachments getAttachments();
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SequenceFlow.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SequenceFlow.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SequenceFlow.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,36 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * A Sequence Flow is a solid graphical line that is used to show the order that Activities will be performed in a Process.
- * Each Flow has only one source and only one target.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface SequenceFlow extends Flow
-{
-
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Signal.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Signal.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Signal.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,114 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-
-/**
- * A Signal thrown by the ProcessEngine
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public class Signal
-{
- /**
- * Defines the types of supported Signals
- */
- public enum Type
- {
- ENTER_START_EVENT, EXIT_START_EVENT,
- ENTER_EVENT, EXIT_EVENT,
- ENTER_END_EVENT, EXIT_END_EVENT,
- ENTER_GATEWAY, EXIT_GATEWAY,
- ENTER_PROCESS, EXIT_PROCESS,
- ENTER_SUB_PROCESS, EXIT_SUB_PROCESS,
- ENTER_TASK, EXIT_TASK,
- USER_SIGNAL
- }
-
- private Type type;
- private FlowObject flowObject;
- private String message;
-
- /** Create the signal for a given process */
- public Signal(FlowObject flowObject, Type type)
- {
- this.flowObject = flowObject;
- this.type = type;
- validateSignal();
- }
-
- /** Create the signal for a given process */
- public Signal(FlowObject flowObject, Type type, String message)
- {
- this.flowObject = flowObject;
- this.type = type;
- this.message = message;
- validateSignal();
- }
-
- /** Get the proccess name */
- public String getProcessName()
- {
- return flowObject.getProcess().getName();
- }
-
- public Type getType()
- {
- return type;
- }
-
- public String getFlowObject()
- {
- return flowObject.toString();
- }
-
- public String getMessage()
- {
- return message;
- }
-
- private void validateSignal()
- {
- if (flowObject == null)
- throw new IllegalArgumentException("FlowObject cannot be null");
- if (type == null)
- throw new IllegalArgumentException("SignalType cannot be null");
- }
-
- public String toString()
- {
- StringBuilder string = new StringBuilder(type + "[" + getProcessName());
- if (flowObject instanceof Process == false)
- {
- string.append(":" + flowObject);
- }
- if (message != null)
- {
- string.append(":" + message);
- }
- string.append("]");
- return string.toString();
- }
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SingleInFlowSupport.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SingleInFlowSupport.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SingleInFlowSupport.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * Implementing {@link FlowObject} support a single incomming {@link Flow}.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface SingleInFlowSupport
-{
- /**
- * Get the out flow
- */
- Flow getInFlow();
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SingleOutFlowSupport.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SingleOutFlowSupport.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SingleOutFlowSupport.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,39 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-
-//$Id$
-
-/**
- * Implementing {@link FlowObject}s support a single outgoing {@link Flow}s.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface SingleOutFlowSupport
-{
- /**
- * Get the out flow
- */
- Flow getOutFlow();
-}
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/StartEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/StartEvent.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/StartEvent.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,37 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * A Start Event indicates where a particular Process will start.
- * <p/>
- * In terms of Sequence Flow, the Start Event starts the Flow of the Process, and thus, will not have any
- * incoming Sequence Flow. A Start Event can have a Trigger that indicates how the Process starts: Message, Timer, Rule, Link, or Multiple.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface StartEvent extends Event, SingleOutFlowSupport
-{
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SubProcess.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SubProcess.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SubProcess.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,35 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-
-//$Id$
-
-/**
- * A Sub-Process is Process that is included within another Process.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface SubProcess extends Process, SingleInFlowSupport, SingleOutFlowSupport
-{
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SuportingElement.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SuportingElement.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/SuportingElement.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,34 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-//$Id$
-
-/**
- * A graphical BPMN element
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface SuportingElement extends BPMNElement
-{
-}
\ No newline at end of file
Deleted: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Task.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/Task.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/Task.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,38 +0,0 @@
-/*
- * 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.jboss.bpm.model;
-
-
-//$Id$
-
-/**
- * A Task is an Atomic Activity that is included within a Process.
- *
- * A Task is used when the work in the Process is not broken down to a finer level of Process Model detail. Generally, an end-user and/or an application are used to
- * perform the Task when it is executed.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 08-Jul-2008
- */
-public interface Task extends Activity, SingleInFlowSupport, SingleOutFlowSupport
-{
-}
\ No newline at end of file
Modified: api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/impl/src/main/java/org/jboss/bpm/model/internal/ProcessBuilderImpl.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -40,7 +40,7 @@
import org.jboss.bpm.runtime.SignalHandler;
/**
- * The ProcessBuilder can be used to dynamically build {@link Process}es.
+ * The ProcessBuilder can be used to dynamically build a {@link Process}.
*
* @author thomas.diesler(a)jboss.com
* @since 08-Jul-2008
Modified: api/trunk/modules/testsuite/pom.xml
===================================================================
--- api/trunk/modules/testsuite/pom.xml 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/pom.xml 2008-07-17 06:18:46 UTC (rev 1656)
@@ -37,6 +37,12 @@
<!-- Test Dependencies -->
<dependency>
+ <groupId>org.jboss.jbpm</groupId>
+ <artifactId>jbpm-api-impl</artifactId>
+ <version>${version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
Deleted: api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/MockEngineTestCase.java
===================================================================
--- api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/MockEngineTestCase.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/MockEngineTestCase.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,37 +0,0 @@
-/*
- * 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.jboss.bpm;
-
-//$Id$
-
-import org.jboss.bpm.test.AbstractAPITestCase;
-
-public abstract class MockEngineTestCase extends AbstractAPITestCase
-{
-
- @Override
- protected String getBeansConfig()
- {
- return "jbpm-mock-beans.xml";
- }
-
-}
Modified: api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/client/ProcessEngineLocatorTest.java
===================================================================
--- api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/client/ProcessEngineLocatorTest.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/client/ProcessEngineLocatorTest.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -23,9 +23,9 @@
// $Id$
-import org.jboss.bpm.MockEngineTestCase;
+import org.jboss.bpm.test.DefaultEngineTestCase;
-public class ProcessEngineLocatorTest extends MockEngineTestCase
+public class ProcessEngineLocatorTest extends DefaultEngineTestCase
{
public void testLocateProcessEngine() throws Exception
Modified: api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/model/ProcessIntegrityTest.java
===================================================================
--- api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/model/ProcessIntegrityTest.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/model/ProcessIntegrityTest.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -26,7 +26,7 @@
import java.util.List;
import org.jboss.bpm.InvalidProcessException;
-import org.jboss.bpm.MockEngineTestCase;
+import org.jboss.bpm.test.DefaultEngineTestCase;
/**
* Test the intergety of various process definitions
@@ -34,12 +34,12 @@
* @author thomas.diesler(a)jboss.com
* @since 08-Jul-2008
*/
-public class ProcessIntegrityTest extends MockEngineTestCase
+public class ProcessIntegrityTest extends DefaultEngineTestCase
{
public void testAnonymousProcess() throws Exception
{
// Create a Process through the ProcessBuilder
- ProcessBuilder builder = ProcessBuilderFactory.newInstance(null);
+ ProcessBuilder builder = ProcessBuilderFactory.newInstance().newProcessBuilder(null);
Process proc = builder.addStartEvent().addSequenceFlow("taskA").addTask("taskA").addSequenceFlow("end").addEndEvent("end").getProcess();
assertEquals("AnonymousProcess#0", proc.getName());
@@ -59,7 +59,7 @@
try
{
// Create a Process through the ProcessBuilder
- ProcessBuilder builder = ProcessBuilderFactory.newInstance(null);
+ ProcessBuilder builder = ProcessBuilderFactory.newInstance().newProcessBuilder(null);
builder.addTask("taskA").addSequenceFlow("end").addEndEvent("end").getProcess();
fail("InvalidProcessException expected");
}
@@ -74,7 +74,7 @@
try
{
// Create a Process through the ProcessBuilder
- ProcessBuilder builder = ProcessBuilderFactory.newInstance(null);
+ ProcessBuilder builder = ProcessBuilderFactory.newInstance().newProcessBuilder(null);
builder.addStartEvent().addSequenceFlow("taskA").addTask("taskA").addSequenceFlow("end").addTask("end").getProcess();
fail("InvalidProcessException expected");
}
@@ -89,7 +89,7 @@
try
{
// Create a Process through the ProcessBuilder
- ProcessBuilder builder = ProcessBuilderFactory.newInstance(null);
+ ProcessBuilder builder = ProcessBuilderFactory.newInstance().newProcessBuilder(null);
builder.addStartEvent().addSequenceFlow("taskA").addTask("taskA").addSequenceFlow("end").addTask("taskA").addSequenceFlow("end").addEndEvent("end").getProcess();
fail("InvalidProcessException expected");
}
Modified: api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/parallelsplit/ParallelSplitTest.java
===================================================================
--- api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/parallelsplit/ParallelSplitTest.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/parallelsplit/ParallelSplitTest.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -72,7 +72,7 @@
public void testParallelSplitDynamic() throws Exception
{
// Create a Process through the ProcessBuilder
- ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance(getName());
+ ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder(getName());
Process proc = procBuilder.addStartEvent().addSequenceFlow("gateway").addParallelGateway("gateway").
addSequenceFlow("endA").addSequenceFlow("endB").addEndEvent("endA").addEndEvent("endB").getProcess();
Modified: api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/sequence/BasicSequenceTest.java
===================================================================
--- api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/sequence/BasicSequenceTest.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/sequence/BasicSequenceTest.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -73,7 +73,7 @@
public void testBasicSequenceDynamic() throws Exception
{
// Create a Process through the ProcessBuilder
- ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance(getName());
+ ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder(getName());
Process proc = procBuilder.addStartEvent().addSequenceFlow("stateA").addTask("stateA").
addSequenceFlow("end").addEndEvent("end").getProcess();
Modified: api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/task/BasicTaskTest.java
===================================================================
--- api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/task/BasicTaskTest.java 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/java/org/jboss/bpm/samples/task/BasicTaskTest.java 2008-07-17 06:18:46 UTC (rev 1656)
@@ -74,7 +74,7 @@
public void testBasicTaskDynamic() throws Exception
{
// Create a Process through the ProcessBuilder
- ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance(getName());
+ ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder(getName());
Process proc = procBuilder.addStartEvent().addSequenceFlow("stateA").addTask("stateA").addExecutionHandler(TaskA.class).
addSequenceFlow("end").addEndEvent("end").getProcess();
Modified: api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml
===================================================================
--- api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/resources/jbpm-beans.xml 2008-07-17 06:18:46 UTC (rev 1656)
@@ -25,4 +25,6 @@
<property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
</bean>
+ <!-- The process builder -->
+ <bean name="jBPMProcessBuilderFactory" class="org.jboss.bpm.model.internal.ProcessBuilderFactoryImpl"/>
</deployment>
\ No newline at end of file
Deleted: api/trunk/modules/testsuite/src/test/resources/jbpm-mock-beans.xml
===================================================================
--- api/trunk/modules/testsuite/src/test/resources/jbpm-mock-beans.xml 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/modules/testsuite/src/test/resources/jbpm-mock-beans.xml 2008-07-17 06:18:46 UTC (rev 1656)
@@ -1,28 +0,0 @@
-<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
- <!-- The Kernel Locator -->
- <bean name="KernelLocator" class="org.jboss.kernel.plugins.util.KernelLocator"/>
-
- <!-- The process engine -->
- <bean name="jBPMProcessEngine" class="org.jboss.bpm.client.internal.ProcessEngineImpl">
- <property name="processManager"><inject bean="jBPMProcessManager"/></property>
- <property name="executionManager"><inject bean="jBPMExecutionManager"/></property>
- <property name="signalManager"><inject bean="jBPMSignalManager"/></property>
- </bean>
-
- <!-- The process manager -->
- <bean name="jBPMProcessManager" class="org.jboss.bpm.dialect.jaxb.ProcessManagerImpl">
- <property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
- </bean>
-
- <!-- The execution manager -->
- <bean name="jBPMExecutionManager" class="org.jboss.bpm.client.internal.ExecutionManagerImpl">
- <property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
- </bean>
-
- <!-- The execution manager -->
- <bean name="jBPMSignalManager" class="org.jboss.bpm.client.internal.SignalManagerImpl">
- <property name="processEngine"><inject bean="jBPMProcessEngine" state="Instantiated"/></property>
- </bean>
-
-</deployment>
\ No newline at end of file
Modified: api/trunk/pom.xml
===================================================================
--- api/trunk/pom.xml 2008-07-16 16:30:26 UTC (rev 1655)
+++ api/trunk/pom.xml 2008-07-17 06:18:46 UTC (rev 1656)
@@ -32,6 +32,7 @@
<!-- Modules -->
<modules>
<module>modules/api</module>
+ <module>modules/impl</module>
<module>modules/dialects/jaxb</module>
<module>modules/testsuite</module>
</modules>
15 years, 11 months