[jbpm-commits] JBoss JBPM SVN: r2363 - in jbpm4/trunk: modules/api/src/main/java/org/jbpm/api/client and 4 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Sep 24 12:59:35 EDT 2008
Author: thomas.diesler at jboss.com
Date: 2008-09-24 12:59:35 -0400 (Wed, 24 Sep 2008)
New Revision: 2363
Added:
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/MockProcessEngineProvider.java
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/ProcessEngineImpl.java
jbpm4/trunk/modules/pvm/src/main/resources/org.jbpm.api.client.ProcessEngineProvider
Modified:
jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/client/ProcessEngine.java
jbpm4/trunk/modules/cts/pom.xml
jbpm4/trunk/modules/pvm/pom.xml
jbpm4/trunk/pom.xml
Log:
Add PVM ProcessEngine
Modified: jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/client/ProcessEngine.java
===================================================================
--- jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/client/ProcessEngine.java 2008-09-24 16:30:08 UTC (rev 2362)
+++ jbpm4/trunk/modules/api/src/main/java/org/jbpm/api/client/ProcessEngine.java 2008-09-24 16:59:35 UTC (rev 2363)
@@ -35,8 +35,8 @@
*/
public class ProcessEngine
{
+ // The provider for the process engine
private static ProcessEngineProvider engineProvider;
-
// Flag to indicate that the Engine is shutting down
private boolean prepareForShutdown;
@@ -71,7 +71,9 @@
throw new IllegalStateException("Cannot obtain engine provider", ex);
}
}
- return engineProvider.getProcessEngine();
+
+ ProcessEngine pe = engineProvider.getProcessEngine();
+ return pe;
}
/**
Modified: jbpm4/trunk/modules/cts/pom.xml
===================================================================
--- jbpm4/trunk/modules/cts/pom.xml 2008-09-24 16:30:08 UTC (rev 2362)
+++ jbpm4/trunk/modules/cts/pom.xml 2008-09-24 16:59:35 UTC (rev 2363)
@@ -48,6 +48,11 @@
<!-- Profiles -->
<profiles>
+
+ <!--
+ Name: no-impl
+ Descr: The default implementation profile
+ -->
<profile>
<id>no-impl</id>
<activation>
@@ -57,12 +62,34 @@
</activation>
<dependencies>
<dependency>
+ <groupId>org.jbpm.jbpm4</groupId>
+ <artifactId>jbpm-pvm</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <!--
+ Name: impl-ri
+ Descr: The RI implementation profile
+ -->
+ <profile>
+ <id>impl-ri</id>
+ <activation>
+ <property>
+ <name>impl</name>
+ <value>ri</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
<groupId>org.jbpm.spec</groupId>
<artifactId>jbpm-spec-ri</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</profile>
+
</profiles>
</project>
\ No newline at end of file
Modified: jbpm4/trunk/modules/pvm/pom.xml
===================================================================
--- jbpm4/trunk/modules/pvm/pom.xml 2008-09-24 16:30:08 UTC (rev 2362)
+++ jbpm4/trunk/modules/pvm/pom.xml 2008-09-24 16:59:35 UTC (rev 2363)
@@ -41,6 +41,10 @@
<!-- Dependencies -->
<dependencies>
<dependency>
+ <groupId>org.jbpm.jbpm4</groupId>
+ <artifactId>jbpm-api</artifactId>
+ </dependency>
+ <dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
Added: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/MockProcessEngineProvider.java
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/MockProcessEngineProvider.java (rev 0)
+++ jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/MockProcessEngineProvider.java 2008-09-24 16:59:35 UTC (rev 2363)
@@ -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.jbpm.pvm;
+
+//$Id$
+
+import org.jbpm.api.client.ProcessEngine;
+import org.jbpm.api.client.ProcessEngineProvider;
+
+/**
+ * A mock process engine provider
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 24-Sep-2008
+ */
+public class MockProcessEngineProvider implements ProcessEngineProvider
+{
+ @Override
+ public ProcessEngine getProcessEngine()
+ {
+ return new ProcessEngineImpl();
+ }
+}
Property changes on: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/MockProcessEngineProvider.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/ProcessEngineImpl.java
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/ProcessEngineImpl.java (rev 0)
+++ jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/ProcessEngineImpl.java 2008-09-24 16:59:35 UTC (rev 2363)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.pvm;
+
+//$Id$
+
+import org.jbpm.api.client.ProcessEngine;
+
+/**
+ * A process engine
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 24-Sep-2008
+ */
+public class ProcessEngineImpl extends ProcessEngine
+{
+
+}
Property changes on: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/ProcessEngineImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbpm4/trunk/modules/pvm/src/main/resources/org.jbpm.api.client.ProcessEngineProvider
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/resources/org.jbpm.api.client.ProcessEngineProvider (rev 0)
+++ jbpm4/trunk/modules/pvm/src/main/resources/org.jbpm.api.client.ProcessEngineProvider 2008-09-24 16:59:35 UTC (rev 2363)
@@ -0,0 +1 @@
+org.jbpm.pvm.MockProcessEngineProvider
\ No newline at end of file
Modified: jbpm4/trunk/pom.xml
===================================================================
--- jbpm4/trunk/pom.xml 2008-09-24 16:30:08 UTC (rev 2362)
+++ jbpm4/trunk/pom.xml 2008-09-24 16:59:35 UTC (rev 2363)
@@ -34,9 +34,9 @@
<!-- Modules -->
<modules>
<module>modules/api</module>
- <module>modules/cts</module>
<module>modules/pvm</module>
<module>modules/jpdl</module>
+ <module>modules/cts</module>
</modules>
<!-- Properties -->
@@ -47,6 +47,7 @@
<hsqldb.version>1.8.0.7</hsqldb.version>
<jboss.j2ee.version>4.2.1.GA</jboss.j2ee.version>
<jboss.seam.version>2.0.1.GA</jboss.seam.version>
+ <jbpm.api.version>1.0.0-SNAPSHOT</jbpm.api.version>
<jsr233.version>2.0.3</jsr233.version>
<juel.version>2.1.0</juel.version>
<log4j.version>1.2.14</log4j.version>
@@ -58,6 +59,11 @@
<dependencyManagement>
<dependencies>
<dependency>
+ <groupId>org.jbpm.jbpm4</groupId>
+ <artifactId>jbpm-api</artifactId>
+ <version>${jbpm.api.version}</version>
+ </dependency>
+ <dependency>
<groupId>juel</groupId>
<artifactId>juel</artifactId>
<version>${juel.version}</version>
@@ -157,5 +163,47 @@
<url>file:///${publications}/pvm/site</url>
</site>
</distributionManagement>
+
+ <!-- Profiles -->
+ <profiles>
+ <!--
+ Name: cts
+ Desc: Run the CTS tests
+ -->
+ <profile>
+ <id>cts</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>org/jbpm/test/cts/**/Test.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!--
+ Name: skiptests
+ Desc: Skips the tests
+ -->
+ <profile>
+ <id>skiptests</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>true</skipTests>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
</project>
\ No newline at end of file
More information about the jbpm-commits
mailing list