JBoss JBPM SVN: r5324 - in jbpm4/trunk/modules: test-cfg and 1 other directory.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-17 09:50:03 -0400 (Fri, 17 Jul 2009)
New Revision: 5324
Modified:
jbpm4/trunk/modules/examples/pom.xml
jbpm4/trunk/modules/test-cfg/pom.xml
Log:
removed jbpm-console-reports dependency from examples and test-cfg in the pom
Modified: jbpm4/trunk/modules/examples/pom.xml
===================================================================
--- jbpm4/trunk/modules/examples/pom.xml 2009-07-17 10:34:17 UTC (rev 5323)
+++ jbpm4/trunk/modules/examples/pom.xml 2009-07-17 13:50:03 UTC (rev 5324)
@@ -51,12 +51,6 @@
</dependency>
<dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-console-reports</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>wstx-lgpl</artifactId>
<scope>test</scope>
Modified: jbpm4/trunk/modules/test-cfg/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-cfg/pom.xml 2009-07-17 10:34:17 UTC (rev 5323)
+++ jbpm4/trunk/modules/test-cfg/pom.xml 2009-07-17 13:50:03 UTC (rev 5324)
@@ -53,13 +53,6 @@
<artifactId>spring</artifactId>
<scope>test</scope>
</dependency>
-
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-console-reports</artifactId>
- <scope>test</scope>
- </dependency>
-
</dependencies>
</project>
15 years, 3 months
JBoss JBPM SVN: r5323 - jbpm4/trunk/modules/userguide/src/main/docbook/en/modules.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-17 06:34:17 -0400 (Fri, 17 Jul 2009)
New Revision: 5323
Modified:
jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml
Log:
updated section 'reporting problems'
Modified: jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml
===================================================================
--- jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml 2009-07-17 10:33:36 UTC (rev 5322)
+++ jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml 2009-07-17 10:34:17 UTC (rev 5323)
@@ -62,13 +62,13 @@
use the following snippet as a template:
</para>
<programlisting><emphasis role="bold">=== Environment ==============================</emphasis>
- - <emphasis role="bold">jBPM Version</emphasis> : which version of jBPM are you using?
- - <emphasis role="bold">Database</emphasis> : which database and which version of that database
- - <emphasis role="bold">JDK</emphasis> : which Java version are you using? use 'java -version' to find out
- - <emphasis role="bold">Container</emphasis> : which Java version are you using? use 'java -version' to find out
- - <emphasis role="bold">Configuration</emphasis> : is your jbpm.cfg.xml only importing files from the jbpm.jar
+- <emphasis role="bold">jBPM Version</emphasis> : which version of jBPM are you using?
+- <emphasis role="bold">Database</emphasis> : which database and which version of that database
+- <emphasis role="bold">JDK</emphasis> : which Java version are you using? use 'java -version' to find out
+- <emphasis role="bold">Container</emphasis> : which Java version are you using? use 'java -version' to find out
+- <emphasis role="bold">Configuration</emphasis> : is your jbpm.cfg.xml only importing files from the jbpm.jar
lib itself? or did you create a custom config file?
- - <emphasis role="bold">Libraries</emphasis> : are you using the exact versions of the libs from inside the jbpm
+- <emphasis role="bold">Libraries</emphasis> : are you using the exact versions of the libs from inside the jbpm
distribution of the version that you're using? or did you change some of the libs?
<emphasis role="bold">=== Process ==================================</emphasis>
15 years, 3 months
JBoss JBPM SVN: r5322 - jbpm4/trunk/modules/userguide/src/main/docbook/en/modules.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-17 06:33:36 -0400 (Fri, 17 Jul 2009)
New Revision: 5322
Modified:
jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml
Log:
updated section 'reporting problems'
Modified: jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml
===================================================================
--- jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml 2009-07-17 10:24:39 UTC (rev 5321)
+++ jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml 2009-07-17 10:33:36 UTC (rev 5322)
@@ -61,27 +61,31 @@
<para>When reporting a problem in the user forum or in our support portal, please
use the following snippet as a template:
</para>
- <programlisting><emphasis role="bold">Environment:</emphasis>
-<emphasis role="bold"> - jBPM Version:</emphasis> which version of jBPM are you using?
-<emphasis role="bold"> - Database:</emphasis> which database and which version of that database
-<emphasis role="bold"> - JDK:</emphasis> which Java version are you using? use 'java -version' to find out
-<emphasis role="bold"> - Container:</emphasis> which Java version are you using? use 'java -version' to find out
-<emphasis role="bold"> - Configuration:</emphasis> is your jbpm.cfg.xml only importing files from the jbpm.jar
- lib itself? or did you create a custom config file?
-<emphasis role="bold"> - Libraries:</emphasis> are you using the exact versions of the libs from inside the jbpm
+ <programlisting><emphasis role="bold">=== Environment ==============================</emphasis>
+ - <emphasis role="bold">jBPM Version</emphasis> : which version of jBPM are you using?
+ - <emphasis role="bold">Database</emphasis> : which database and which version of that database
+ - <emphasis role="bold">JDK</emphasis> : which Java version are you using? use 'java -version' to find out
+ - <emphasis role="bold">Container</emphasis> : which Java version are you using? use 'java -version' to find out
+ - <emphasis role="bold">Configuration</emphasis> : is your jbpm.cfg.xml only importing files from the jbpm.jar
+ lib itself? or did you create a custom config file?
+ - <emphasis role="bold">Libraries</emphasis> : are you using the exact versions of the libs from inside the jbpm
distribution of the version that you're using? or did you change some of the libs?
-<emphasis role="bold">Process:</emphasis>
+<emphasis role="bold">=== Process ==================================</emphasis>
past jPDL process here
-<emphasis role="bold">API:</emphasis>
+<emphasis role="bold">=== API ===================================</emphasis>
past the relevant code snippet that you use to invoke jBPM
-<emphasis role="bold">Stacktrace:</emphasis>
+<emphasis role="bold">=== Stacktrace ==============================</emphasis>
past full stack trace here
-<emphasis role="bold">Debug logs:</emphasis>
-past debug logs here</programlisting>
+<emphasis role="bold">=== Debug logs ==============================</emphasis>
+past debug logs here
+
+<emphasis role="bold">=== Problem description =========================</emphasis>
+Keep this part short and to the point. E.g. API doesn't work as expected.
+or e.g. method ExecutionService.signalExecutionById throws exception.</programlisting>
<para>Clever readers will have noticed that some of these questions point to probably causes :-)
Especially tweaking the libs and configuration can easily lead to trouble. That's why
we have spend a great deal of effort to include default installations and a simplified
15 years, 3 months
JBoss JBPM SVN: r5321 - jbpm4/branches.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-17 06:24:39 -0400 (Fri, 17 Jul 2009)
New Revision: 5321
Removed:
jbpm4/branches/tbaeyens/
Log:
removing the tbaeyens branch
15 years, 3 months
JBoss JBPM SVN: r5320 - jbpm4/branches.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-17 06:24:19 -0400 (Fri, 17 Jul 2009)
New Revision: 5320
Removed:
jbpm4/branches/jbpm-4.0/
Log:
removing the jbpm 4.0 branch
15 years, 3 months
JBoss JBPM SVN: r5319 - in jbpm4/trunk: modules/api and 29 other directories.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-17 06:03:46 -0400 (Fri, 17 Jul 2009)
New Revision: 5319
Modified:
jbpm4/trunk/build.xml
jbpm4/trunk/modules/api/pom.xml
jbpm4/trunk/modules/db/pom.xml
jbpm4/trunk/modules/devguide/pom.xml
jbpm4/trunk/modules/distro/pom.xml
jbpm4/trunk/modules/distro/src/main/files/db/build.xml
jbpm4/trunk/modules/distro/src/main/files/examples/build.xml
jbpm4/trunk/modules/distro/src/main/files/gpd/build.xml
jbpm4/trunk/modules/distro/src/main/files/jboss/build.xml
jbpm4/trunk/modules/enterprise/pom.xml
jbpm4/trunk/modules/examples/pom.xml
jbpm4/trunk/modules/integration/console/pom.xml
jbpm4/trunk/modules/integration/form-plugin/pom.xml
jbpm4/trunk/modules/integration/graphView-plugin/pom.xml
jbpm4/trunk/modules/integration/jboss4/pom.xml
jbpm4/trunk/modules/integration/jboss5/pom.xml
jbpm4/trunk/modules/integration/pom.xml
jbpm4/trunk/modules/integration/report/pom.xml
jbpm4/trunk/modules/integration/spi/pom.xml
jbpm4/trunk/modules/jpdl/pom.xml
jbpm4/trunk/modules/log/pom.xml
jbpm4/trunk/modules/migration/pom.xml
jbpm4/trunk/modules/pvm/pom.xml
jbpm4/trunk/modules/test-base/pom.xml
jbpm4/trunk/modules/test-cfg/pom.xml
jbpm4/trunk/modules/test-concurrent/pom.xml
jbpm4/trunk/modules/test-db/pom.xml
jbpm4/trunk/modules/test-load/pom.xml
jbpm4/trunk/modules/test-pojo/pom.xml
jbpm4/trunk/modules/userguide/pom.xml
jbpm4/trunk/pom.xml
jbpm4/trunk/qa/build.xml
Log:
changed version from 4.0-SNAPSHOT to 4.1-SNAPSHOT
Modified: jbpm4/trunk/build.xml
===================================================================
--- jbpm4/trunk/build.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/build.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -21,7 +21,7 @@
<property name="linux.browser" value="mozilla" />
<property name="distro.installation.dir" value="c:/software" />
- <property name="distro.version" value="4.0-SNAPSHOT" />
+ <property name="distro.version" value="4.1-SNAPSHOT" />
<property name="distro.jboss.version" value="5.0.0.GA" />
<property name="distro.eclipse" value="c:/downloads/eclipse/eclipse-jee-ganymede-SR1-win32.zip" />
<property name="distro.jboss" value="c:/downloads/jboss/jboss-${distro.jboss.version}.zip" />
Modified: jbpm4/trunk/modules/api/pom.xml
===================================================================
--- jbpm4/trunk/modules/api/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/api/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/db/pom.xml
===================================================================
--- jbpm4/trunk/modules/db/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/db/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/devguide/pom.xml
===================================================================
--- jbpm4/trunk/modules/devguide/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/devguide/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/distro/pom.xml
===================================================================
--- jbpm4/trunk/modules/distro/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/distro/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/distro/src/main/files/db/build.xml
===================================================================
--- jbpm4/trunk/modules/distro/src/main/files/db/build.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/distro/src/main/files/db/build.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -8,7 +8,7 @@
<!-- DEFAULT PROPERTY VALUES -->
<property name="database" value="hsqldb" />
<property name="jbpm.parent.dir" value="../.." />
- <property name="jbpm.version" value="4.0-SNAPSHOT" />
+ <property name="jbpm.version" value="4.1-SNAPSHOT" />
<property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" />
<!-- JDBC PROPERTIES -->
Modified: jbpm4/trunk/modules/distro/src/main/files/examples/build.xml
===================================================================
--- jbpm4/trunk/modules/distro/src/main/files/examples/build.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/distro/src/main/files/examples/build.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -8,7 +8,7 @@
<!-- DEFAULT PROPERTY VALUES -->
<property name="database" value="hsqldb" />
<property name="jbpm.parent.dir" value="../.." />
- <property name="jbpm.version" value="4.0-SNAPSHOT" />
+ <property name="jbpm.version" value="4.1-SNAPSHOT" />
<property name="jboss.version" value="5.0.0.GA" />
<property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" />
Modified: jbpm4/trunk/modules/distro/src/main/files/gpd/build.xml
===================================================================
--- jbpm4/trunk/modules/distro/src/main/files/gpd/build.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/distro/src/main/files/gpd/build.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -17,7 +17,7 @@
<!-- DEFAULT PROPERTY VALUES -->
<property name="jbpm.parent.dir" value="../.." />
- <property name="jbpm.version" value="4.0-SNAPSHOT" />
+ <property name="jbpm.version" value="4.1-SNAPSHOT" />
<!-- jbpm.home should not be configured. change jbpm.parent.dir instead -->
<property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" />
Modified: jbpm4/trunk/modules/distro/src/main/files/jboss/build.xml
===================================================================
--- jbpm4/trunk/modules/distro/src/main/files/jboss/build.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/distro/src/main/files/jboss/build.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -8,7 +8,7 @@
<!-- DEFAULT PROPERTY VALUES -->
<property name="database" value="hsqldb" />
<property name="identity.component" value="jbpm-built-in" />
- <property name="jbpm.version" value="4.0-SNAPSHOT" />
+ <property name="jbpm.version" value="4.1-SNAPSHOT" />
<property name="jbpm.parent.dir" value="../.." />
<property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" /> <!-- jbpm.home should not be configured. change jbpm.parent.dir instead -->
<property name="jboss.version" value="5.0.0.GA" />
Modified: jbpm4/trunk/modules/enterprise/pom.xml
===================================================================
--- jbpm4/trunk/modules/enterprise/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/enterprise/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/examples/pom.xml
===================================================================
--- jbpm4/trunk/modules/examples/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/examples/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/integration/console/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/console/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/console/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-integration</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
</parent>
<!-- Properties -->
Modified: jbpm4/trunk/modules/integration/form-plugin/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/form-plugin/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/form-plugin/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-integration</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
</parent>
<!-- Dependencies -->
Modified: jbpm4/trunk/modules/integration/graphView-plugin/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/graphView-plugin/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/graphView-plugin/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-integration</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
</parent>
<!-- Dependencies -->
Modified: jbpm4/trunk/modules/integration/jboss4/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/jboss4/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/jboss4/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-integration</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
</parent>
<!-- Properties -->
Modified: jbpm4/trunk/modules/integration/jboss5/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/jboss5/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/jboss5/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-integration</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
</parent>
<!-- Properties -->
Modified: jbpm4/trunk/modules/integration/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -13,7 +13,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/integration/report/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/report/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/report/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-integration</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
</parent>
<!-- Dependencies -->
Modified: jbpm4/trunk/modules/integration/spi/pom.xml
===================================================================
--- jbpm4/trunk/modules/integration/spi/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/integration/spi/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-integration</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
</parent>
<!-- Properties -->
Modified: jbpm4/trunk/modules/jpdl/pom.xml
===================================================================
--- jbpm4/trunk/modules/jpdl/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/jpdl/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/log/pom.xml
===================================================================
--- jbpm4/trunk/modules/log/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/log/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/migration/pom.xml
===================================================================
--- jbpm4/trunk/modules/migration/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/migration/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/pvm/pom.xml
===================================================================
--- jbpm4/trunk/modules/pvm/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/pvm/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -24,7 +24,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/test-base/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-base/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/test-base/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -21,7 +21,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/test-cfg/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-cfg/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/test-cfg/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/test-concurrent/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-concurrent/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/test-concurrent/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -20,7 +20,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/test-db/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-db/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/test-db/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -21,7 +21,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/test-load/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-load/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/test-load/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -21,7 +21,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/test-pojo/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-pojo/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/test-pojo/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -21,7 +21,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/modules/userguide/pom.xml
===================================================================
--- jbpm4/trunk/modules/userguide/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/modules/userguide/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm</artifactId>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: jbpm4/trunk/pom.xml
===================================================================
--- jbpm4/trunk/pom.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/pom.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -21,7 +21,7 @@
<artifactId>jbpm</artifactId>
<packaging>pom</packaging>
- <version>4.0-SNAPSHOT</version>
+ <version>4.1-SNAPSHOT</version>
<organization>
<name>JBoss, a division of Red Hat</name>
Modified: jbpm4/trunk/qa/build.xml
===================================================================
--- jbpm4/trunk/qa/build.xml 2009-07-17 09:47:27 UTC (rev 5318)
+++ jbpm4/trunk/qa/build.xml 2009-07-17 10:03:46 UTC (rev 5319)
@@ -10,7 +10,7 @@
<!-- CONFIGURABLE PROPERTIES -->
<property name="database" value="hsqldb" />
<property name="identity.component" value="jbpm-built-in" />
- <property name="jbpm.version" value="4.0-SNAPSHOT" />
+ <property name="jbpm.version" value="4.1-SNAPSHOT" />
<property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" /> <!-- jbpm.home should not be configured. change jbpm.parent.dir instead -->
<property name="jboss.version" value="5.0.0.GA" />
<property name="jboss.distro.dir" value="${jbpm.home}/downloads" />
15 years, 3 months
JBoss JBPM SVN: r5318 - jbpm4/trunk/modules/userguide/src/main/docbook/en/modules.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-07-17 05:47:27 -0400 (Fri, 17 Jul 2009)
New Revision: 5318
Modified:
jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml
Log:
added section 'reporting problems'
Modified: jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml
===================================================================
--- jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml 2009-07-17 08:55:20 UTC (rev 5317)
+++ jbpm4/trunk/modules/userguide/src/main/docbook/en/modules/ch01-Introduction.xml 2009-07-17 09:47:27 UTC (rev 5318)
@@ -56,4 +56,39 @@
</para>
</section>
+ <section>
+ <title>Reporting problems</title>
+ <para>When reporting a problem in the user forum or in our support portal, please
+ use the following snippet as a template:
+ </para>
+ <programlisting><emphasis role="bold">Environment:</emphasis>
+<emphasis role="bold"> - jBPM Version:</emphasis> which version of jBPM are you using?
+<emphasis role="bold"> - Database:</emphasis> which database and which version of that database
+<emphasis role="bold"> - JDK:</emphasis> which Java version are you using? use 'java -version' to find out
+<emphasis role="bold"> - Container:</emphasis> which Java version are you using? use 'java -version' to find out
+<emphasis role="bold"> - Configuration:</emphasis> is your jbpm.cfg.xml only importing files from the jbpm.jar
+ lib itself? or did you create a custom config file?
+<emphasis role="bold"> - Libraries:</emphasis> are you using the exact versions of the libs from inside the jbpm
+ distribution of the version that you're using? or did you change some of the libs?
+
+<emphasis role="bold">Process:</emphasis>
+past jPDL process here
+
+<emphasis role="bold">API:</emphasis>
+past the relevant code snippet that you use to invoke jBPM
+
+<emphasis role="bold">Stacktrace:</emphasis>
+past full stack trace here
+
+<emphasis role="bold">Debug logs:</emphasis>
+past debug logs here</programlisting>
+ <para>Clever readers will have noticed that some of these questions point to probably causes :-)
+ Especially tweaking the libs and configuration can easily lead to trouble. That's why
+ we have spend a great deal of effort to include default installations and a simplified
+ configuration mechanism with imports. Think twice before you start to customize
+ configurations beyond what is indicated in this userguide. Also think twice before
+ replacing libs with other versions.
+ </para>
+ </section>
+
</chapter>
15 years, 3 months
JBoss JBPM SVN: r5317 - projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm.
by do-not-reply@jboss.org
Author: jim.ma
Date: 2009-07-17 04:55:20 -0400 (Fri, 17 Jul 2009)
New Revision: 5317
Modified:
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java
Log:
Modified the getAvailability() to stop throwing exception when the resources is not avialble
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java 2009-07-17 08:53:15 UTC (rev 5316)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java 2009-07-17 08:55:20 UTC (rev 5317)
@@ -46,7 +46,12 @@
}
public AvailabilityType getAvailability() {
- return AvailabilityType.UP;
+ AvailabilityType av = AvailabilityType.UP;
+ EmsBean bean = getServiceBean();
+ if (bean == null) {
+ av = AvailabilityType.DOWN;
+ }
+ return av;
}
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) {
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java 2009-07-17 08:53:15 UTC (rev 5316)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java 2009-07-17 08:55:20 UTC (rev 5317)
@@ -67,7 +67,12 @@
}
public AvailabilityType getAvailability() {
- return AvailabilityType.UP;
+ AvailabilityType av = AvailabilityType.UP;
+ EmsBean bean = newConnection.getBean(JbpmServiceComponent.JBPM_SERVICE);
+ if (bean == null) {
+ av = AvailabilityType.DOWN;
+ }
+ return av;
}
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) {
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java 2009-07-17 08:53:15 UTC (rev 5316)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java 2009-07-17 08:55:20 UTC (rev 5317)
@@ -134,7 +134,12 @@
@Override
public AvailabilityType getAvailability() {
- AvailabilityType av = super.getAvailability();
+ AvailabilityType av = AvailabilityType.UP;
+ newConnection = this.getRebuildConnection();
+ EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ if (bean == null) {
+ av = AvailabilityType.DOWN;
+ }
return av;
}
15 years, 3 months
JBoss JBPM SVN: r5316 - in projects/jopr-integration/branch/3.x/jbpm-jopr-service: scripts and 9 other directories.
by do-not-reply@jboss.org
Author: jim.ma
Date: 2009-07-17 04:53:15 -0400 (Fri, 17 Jul 2009)
New Revision: 5316
Added:
projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml
projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml
Log:
Added jbpm service to expose the JMX methods that jopr needs
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/pom.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,79 @@
+<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>
+
+ <groupId>org.jbpm.jbpm3</groupId>
+ <artifactId>jbpm-jopr-service</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+
+ <parent>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-parent</artifactId>
+ <version>1.0.1.GA</version>
+ </parent>
+
+ <name>Jbpm service</name>
+ <description>Jbpm sevice for jopr integraton</description>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jbpm.jbpm3</groupId>
+ <artifactId>jbpm-jpdl</artifactId>
+ <version>3.2.5.GA</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.client</groupId>
+ <artifactId>jbossall-client</artifactId>
+ <version>4.2.3.GA</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-system</artifactId>
+ <version>4.2.3.GA</version>
+ <scope>provided</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-3</version>
+ <executions>
+ <execution>
+ <id>distribution-package</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>jbpm_jopr_service.sar</finalName>
+ <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>scripts/assembly-distro.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+
+</project>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/scripts/assembly-distro.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<assembly 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/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <!--fileSets>
+ <fileSet>
+ <directory>target/classes</directory>
+ <includes>
+ <include>*</include>
+ </includes>
+
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ </fileSets-->
+
+ <dependencySets>
+ <dependencySet>
+ <unpack>true</unpack>
+ <includes>
+ <include>org.jbpm.jbpm3:jbpm-jopr-service</include>
+ </includes>
+ </dependencySet>
+</dependencySets>
+
+</assembly>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmService.java 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,190 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.jopr.integration;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.List;
+import java.util.zip.ZipInputStream;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.system.ServiceMBeanSupport;
+import org.jbpm.JbpmConfiguration;
+import org.jbpm.JbpmContext;
+import org.jbpm.graph.def.ProcessDefinition;
+import org.jbpm.graph.exe.ProcessInstance;
+
+/**
+ * jBPM service initialisation MBean.
+ *
+ * @author Jim Ma
+ */
+public class JbpmService extends ServiceMBeanSupport implements JbpmServiceMBean
+{
+ private JbpmConfiguration jbpmConfig;
+ @Override
+ protected void startService()
+ throws Exception
+ {
+ //uses jbpm defatul configuration
+ final JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance("jbpm.jopr.cfg.xml");
+ jbpmConfig = jbpmConfiguration;
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ try
+ {
+ jbpmContext.getGraphSession();
+ } catch (RuntimeException e) {
+ e.printStackTrace();
+
+ }
+ finally
+ {
+ jbpmContext.close();
+ }
+ super.startService();
+ }
+
+ @Override
+ protected void stopService()
+ throws Exception
+ {
+ super.stopService();
+
+ }
+
+ public List<ProcessDefinition> getDeployedProcessDefinitions() {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ List<ProcessDefinition> processes = jbpmContext.getGraphSession().findAllProcessDefinitions();
+ jbpmContext.close();
+ return processes;
+ }
+
+ public List<ProcessInstance> getProcessInstances(long id) {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ List<ProcessInstance> instances = jbpmContext.getGraphSession().findProcessInstances(id);
+ jbpmContext.close();
+ return instances;
+ }
+
+ public ProcessInstance getProcessInstance(long id) {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ jbpmContext.close();
+ return instance;
+ }
+
+
+ public void deleteProcess(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ List<ProcessDefinition> processes = jbpmContext.getGraphSession().findAllProcessDefinitions();
+ for (ProcessDefinition process : processes) {
+ if (process.getId() == id) {
+ jbpmContext.getGraphSession().deleteProcessDefinition(id);
+ break;
+ }
+ }
+ jbpmContext.close();
+ }
+
+
+ public void deploy(String fileURL) throws DeploymentException {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ try {
+ URL url = new URL(fileURL);
+ ProcessDefinition processDefinition = null;
+ File file = new File(url.getFile());
+ if (url.toExternalForm().toLowerCase().lastIndexOf(".par") > 0) {
+ processDefinition = parseProcessArchive(file);
+ }
+ if (url.toExternalForm().toLowerCase().lastIndexOf(".xml") > 0) {
+ processDefinition = parseProcessXmlFile(file);
+ }
+ jbpmContext.deployProcessDefinition(processDefinition);
+ jbpmContext.getSession().flush();
+ } catch (MalformedURLException e) {
+ throw new DeploymentException("The input url [" + fileURL + "] is invalid" , e);
+ } catch (IOException ioe) {
+ throw new DeploymentException("Failed to deploy process [" + fileURL + "]" , ioe);
+ } finally {
+ jbpmContext.close();
+ }
+
+ }
+
+ public void deleteProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ jbpmContext.getGraphSession().deleteProcessInstance(id);
+ jbpmContext.close();
+
+ }
+ public void startProcessInstance(long defId) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessDefinition def = jbpmContext.getGraphSession().getProcessDefinition(defId);
+ def.createProcessInstance();
+ jbpmContext.close();
+
+ }
+ public void suspendProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ instance.suspend();
+ jbpmContext.close();
+
+ }
+ public void endProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ instance.end();
+ jbpmContext.close();
+ }
+ public void resumeProcessInstance(long id) throws Exception {
+ JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
+ ProcessInstance instance = jbpmContext.getGraphSession().getProcessInstance(id);
+ instance.resume();
+ jbpmContext.close();
+ }
+
+ private ProcessDefinition parseProcessArchive(File processFile) throws IOException {
+ ZipInputStream processStream = new ZipInputStream(new FileInputStream(processFile));
+ try {
+ ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream(processStream);
+ return processDefinition;
+ }
+ finally {
+ processStream.close();
+ }
+ }
+
+ private ProcessDefinition parseProcessXmlFile(File processFile) throws IOException {
+ java.io.FileInputStream fileInputStrem = new java.io.FileInputStream(processFile);
+ ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(fileInputStrem);
+ fileInputStrem.close();
+ return processDefinition;
+
+ }
+
+
+}
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/java/org/jbpm/jopr/integration/JbpmServiceMBean.java 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.jopr.integration;
+
+import java.util.List;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.system.ServiceMBean;
+import org.jbpm.JbpmConfiguration;
+import org.jbpm.graph.def.ProcessDefinition;
+import org.jbpm.graph.exe.ProcessInstance;
+
+/**
+ * jBPM service interface.
+ *
+ * @author Jim Ma
+ */
+public interface JbpmServiceMBean extends ServiceMBean
+{
+ public List<ProcessDefinition> getDeployedProcessDefinitions();
+ public List<ProcessInstance> getProcessInstances(long id);
+ public void deploy(String url) throws DeploymentException;
+ public void deleteProcess(long id) throws Exception;
+ public void deleteProcessInstance(long id) throws Exception;
+ public void startProcessInstance(long defId) throws Exception;
+ public void suspendProcessInstance(long id) throws Exception;
+ public void endProcessInstance(long id) throws Exception;
+ public void resumeProcessInstance(long id) throws Exception;
+ public ProcessInstance getProcessInstance(long id);
+}
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/META-INF/jboss-service.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <classpath codebase="${jboss.server.home.url}/deploy/jbpm/jbpm-service.sar" archives="*"/>
+ <mbean code="org.jbpm.jopr.integration.JbpmService"
+ name="jboss.jbpm:service=JbpmService">
+ <depends>org.jboss.jbpm:service=LoginConfig</depends>
+ <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends>
+ </mbean>
+</server>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/hibernate.cfg.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,256 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+ <session-factory>
+
+ <!-- hibernate dialect -->
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+
+ <!-- JDBC connection properties (begin) ===
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.connection.password"></property>
+ ==== JDBC connection properties (end) -->
+
+ <!-- DataSource properties (begin) -->
+ <property name="hibernate.connection.datasource">java:/JbpmDS</property>
+ <!-- DataSource properties (end) -->
+
+ <!-- JTA transaction properties (begin) -->
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ <!-- JTA transaction properties (end) -->
+
+ <!-- CMT transaction properties (begin) ===
+ <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
+ <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+ ==== CMT transaction properties (end) -->
+
+ <!-- ################################### -->
+ <!-- # common settings # -->
+ <!-- ################################### -->
+
+ <!-- Automatic schema creation (begin) ===
+ <property name="hibernate.hbm2ddl.auto">create</property>
+ ==== Automatic schema creation (end) -->
+
+ <!-- Simple memory-only cache -->
+ <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
+
+ <!-- logging properties -->
+ <property name="hibernate.format_sql">true</property>
+ <property name="hibernate.use_sql_comments">true</property>
+
+ <!-- ############################################ -->
+ <!-- # mapping files with external dependencies # -->
+ <!-- ############################################ -->
+
+ <!-- Additional mappings defined per module go here -->
+ <mapping resource="hibernate.extra.hbm.xml" />
+ <mapping resource="hibernate.identity.hbm.xml" />
+ <!-- ###################### -->
+ <!-- # jbpm mapping files # -->
+ <!-- ###################### -->
+
+ <!-- hql queries -->
+ <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
+
+ <!-- hql queries used in simulation for querying historical data.
+ uncomment if you want to use the GetSimulationInputCommand
+ or you want to use the queries directly.
+ beware: the queries need the stddev function to be enabled in your dialect.
+ for more information, visit:
+ http://www.camunda.com/business_process_simulation_news/mysql_and_stddev.... -->
+ <!--
+ <mapping resource="org/jbpm/sim/bam/hibernate.queries.hbm.xml" />
+ -->
+
+ <!-- graph.action mapping files -->
+ <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
+
+ <!-- graph.def mapping files -->
+ <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
+ <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
+
+ <!-- ########################################### -->
+ <!-- # mapping file with external dependencies # -->
+ <!-- ########################################### -->
+ <!-- the following mapping file has a dependency on 'bsh-{version}.jar'.
+ uncomment this if bsh is not in your classpath.
+ the script element will not be available in process definition files.
+ note: this mapping must appear below org/jbpm/graph/def/Action.hbm.xml -->
+ <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
+
+ <!-- graph.node mapping files -->
+ <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
+
+ <!-- context.def mapping files -->
+ <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
+
+ <!-- bytes mapping files -->
+ <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
+
+ <!-- module.def mapping files -->
+ <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
+
+ <!-- file.def mapping files -->
+ <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
+
+ <!-- taskmgmt.def mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
+
+ <!-- scheduler.def mapping files -->
+ <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
+ <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
+
+ <!-- graph.exe mapping files -->
+ <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
+
+ <!-- module.exe mapping files -->
+ <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
+
+ <!-- context.exe mapping files -->
+ <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
+
+ <!-- job mapping files -->
+ <mapping resource="org/jbpm/job/Job.hbm.xml"/>
+ <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
+ <mapping resource="org/jbpm/job/CleanUpProcessJob.hbm.xml"/>
+
+ <!-- taskmgmt.exe mapping files -->
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
+
+ <!-- logging mapping files -->
+ <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
+ <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
+ <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
+ <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
+
+ <!-- ################## -->
+ <!-- # cache settings # -->
+ <!-- ##################-->
+
+ <!-- strategy="nonstrict-read-write" can be used with HashtableCacheProvider -->
+
+ <class-cache class="org.jbpm.context.def.VariableAccess" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.file.def.FileDefinition.processFiles" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.action.Script.variableAccesses" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Action" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Event" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Event.actions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.ExceptionHandler" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ExceptionHandler.actions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Node" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.exceptionHandlers" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.leavingTransitions" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Node.arrivingTransitions" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.ProcessDefinition" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.exceptionHandlers" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.nodes" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.actions" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.ProcessDefinition.definitions" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.def.SuperState.nodes" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.graph.def.Transition" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.graph.def.Transition.exceptionHandlers" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.Decision.decisionConditions" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.ProcessState.variableAccesses" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.graph.node.TaskNode.tasks" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.instantiation.Delegation" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.module.def.ModuleDefinition" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.Swimlane.tasks" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.TaskController" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskController.variableAccesses" usage="nonstrict-read-write" />
+
+ <class-cache class="org.jbpm.taskmgmt.def.Task" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.events" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.Task.exceptionHandlers" usage="nonstrict-read-write" />
+
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes" usage="nonstrict-read-write" />
+ <collection-cache collection="org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks" usage="nonstrict-read-write" />
+ </session-factory>
+</hibernate-configuration>
Added: projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml (rev 0)
+++ projects/jopr-integration/branch/3.x/jbpm-jopr-service/src/main/resources/jbpm.jopr.cfg.xml 2009-07-17 08:53:15 UTC (rev 5316)
@@ -0,0 +1,17 @@
+<jbpm-configuration>
+ <jbpm-context>
+ <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
+ <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
+ <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
+ </jbpm-context>
+
+ <!-- use the context class loader -->
+ <string name="jbpm.classLoader" value="context" />
+
+ <!--
+ Note, that the default job executor needs to be overwritten with a null value.
+ In the enterprise configuration there should be no job executor.
+ Async messaging is there bound to jms and scheduling to ejb timers.
+ -->
+ <null name="jbpm.job.executor" />
+</jbpm-configuration>
15 years, 3 months
JBoss JBPM SVN: r5315 - in projects/jopr-integration/branch/3.x/jopr: src/main/java/org/jbosson/plugins/jbpm and 1 other directories.
by do-not-reply@jboss.org
Author: jim.ma
Date: 2009-07-16 22:33:31 -0400 (Thu, 16 Jul 2009)
New Revision: 5315
Modified:
projects/jopr-integration/branch/3.x/jopr/pom.xml
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java
projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java
projects/jopr-integration/branch/3.x/jopr/src/main/resources/META-INF/rhq-plugin.xml
Log:
Refactored the code
Modified: projects/jopr-integration/branch/3.x/jopr/pom.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/pom.xml 2009-07-17 00:13:45 UTC (rev 5314)
+++ projects/jopr-integration/branch/3.x/jopr/pom.xml 2009-07-17 02:33:31 UTC (rev 5315)
@@ -24,7 +24,15 @@
<scm.module.path>.</scm.module.path>
</properties>
- <dependencies>
+ <dependencies>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>3.11.0.GA</version>
+ </dependency>
+
+
+
<dependency>
<groupId>org.jboss.on</groupId>
<artifactId>rhq-jbossas-plugin</artifactId>
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java 2009-07-17 00:13:45 UTC (rev 5314)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceComponent.java 2009-07-17 02:33:31 UTC (rev 5315)
@@ -21,7 +21,7 @@
import org.rhq.core.pluginapi.operation.OperationResult;
public class JbpmInstanceComponent implements ResourceComponent<JbpmProcessDefComponent>, MeasurementFacet, DeleteResourceFacet,OperationFacet {
- public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+
private ResourceContext<JbpmProcessDefComponent> resourceContext;
private Log log = LogFactory.getLog(JbpmProcessDefComponent.class);
private EmsConnection newConnection = null;
@@ -33,7 +33,7 @@
this.resourceContext = resourceContext;
instanceId = resourceContext.getResourceKey();
newConnection = resourceContext.getParentResourceComponent().getNewConnection();
- EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ EmsBean bean = newConnection.getBean(JbpmServiceComponent.JBPM_SERVICE);
getInsOperation = bean.getOperation("getProcessInstance");
try {
processInsClass = newConnection.getClass().getClassLoader().loadClass("org.jbpm.graph.exe.ProcessInstance");
@@ -111,35 +111,27 @@
}
public String suspendInstance() {
- EmsConnection connection = getNewConnection();
- EmsBean bean = connection.getBean(this.JBPM_SERVICE);
- EmsOperation operation = bean.getOperation("suspendProcessInstance");
+ EmsOperation operation = getServiceBean().getOperation("suspendProcessInstance");
operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
return "Sucess";
}
public String endInstance() {
- EmsConnection connection = getNewConnection();
- EmsBean bean = connection.getBean(this.JBPM_SERVICE);
- EmsOperation operation = bean.getOperation("endProcessInstance");
+ EmsOperation operation = getServiceBean().getOperation("endProcessInstance");
operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
return "Sucess";
}
- public String resumeInstance() {
- EmsConnection connection = getNewConnection();
- EmsBean bean = connection.getBean(this.JBPM_SERVICE);
- EmsOperation operation = bean.getOperation("resumeProcessInstance");
+ public String resumeInstance() {
+ EmsOperation operation = getServiceBean().getOperation("resumeProcessInstance");
operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
return "Sucess";
}
/* implement the DeleteResourceFacet */
- public void deleteResource() throws Exception {
- EmsConnection connection = getNewConnection();
- EmsBean bean = connection.getBean(this.JBPM_SERVICE);
- EmsOperation operation = bean.getOperation("deleteProcessInstance");
+ public void deleteResource() throws Exception {
+ EmsOperation operation = getServiceBean().getOperation("deleteProcessInstance");
operation.invoke(Long.parseLong(resourceContext.getResourceKey()));
}
@@ -167,6 +159,13 @@
}
+ private EmsBean getServiceBean() {
+ EmsConnection connection = getNewConnection();
+ EmsBean bean = connection.getBean(JbpmServiceComponent.JBPM_SERVICE);
+ return bean;
+ }
+
+
public EmsConnection getNewConnection() {
return newConnection;
}
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java 2009-07-17 00:13:45 UTC (rev 5314)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmInstanceDiscoveryComponent.java 2009-07-17 02:33:31 UTC (rev 5315)
@@ -13,7 +13,7 @@
import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext;
public class JbpmInstanceDiscoveryComponent implements ResourceDiscoveryComponent<JbpmProcessDefComponent> {
- public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+ public static final String JBPM_SERVICE = "jboss.jbpm:service=JbpmService";
EmsConnection newConnection = null;
public Set<DiscoveredResourceDetails> discoverResources(
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java 2009-07-17 00:13:45 UTC (rev 5314)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefComponent.java 2009-07-17 02:33:31 UTC (rev 5315)
@@ -29,7 +29,6 @@
public class JbpmProcessDefComponent implements
ResourceComponent<JbpmServiceComponent>, MeasurementFacet, DeleteResourceFacet, OperationFacet, CreateChildResourceFacet {
- public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
private ResourceContext<JbpmServiceComponent> resourceContext;
private Log log = LogFactory.getLog(JbpmProcessDefComponent.class);
private EmsConnection newConnection = null;
@@ -41,7 +40,7 @@
this.resourceContext = resourceContext;
newConnection = resourceContext.getParentResourceComponent()
.getRebuildConnection();
- EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ EmsBean bean = newConnection.getBean(JbpmServiceComponent.JBPM_SERVICE);
Object obj = bean.getAttribute("DeployedProcessDefinitions").refresh();
id = resourceContext.getResourceKey();
//TODO: Check if we should refresh the jbpmProcessDef when collect metric value
@@ -93,7 +92,7 @@
/* implement the DeleteResourceFacet */
public void deleteResource() throws Exception {
EmsConnection connection = this.getNewConnection();
- EmsBean bean = connection.getBean(JBPM_SERVICE);
+ EmsBean bean = connection.getBean(JbpmServiceComponent.JBPM_SERVICE);
EmsOperation emsOp = bean.getOperation("deleteProcess");
emsOp.invoke(parseLong(id));
}
@@ -104,7 +103,7 @@
report.setResourceName(resourceTypeName);
try {
EmsConnection connection = this.getNewConnection();
- EmsBean bean = connection.getBean(JBPM_SERVICE);
+ EmsBean bean = connection.getBean(JbpmServiceComponent.JBPM_SERVICE);
EmsOperation emsOp = bean.getOperation("startProcessInstance");
emsOp.invoke(parseLong(id));
} catch (Exception e) {
@@ -121,7 +120,7 @@
public OperationResult invokeOperation(String name, Configuration configuration) throws InterruptedException {
if ("startinstance".equals(name.toLowerCase())) {
EmsConnection connection = this.getNewConnection();
- EmsBean bean = connection.getBean(JBPM_SERVICE);
+ EmsBean bean = connection.getBean(JbpmServiceComponent.JBPM_SERVICE);
EmsOperation emsOp = bean.getOperation("startProcessInstance");
emsOp.invoke(parseLong(id));
}
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java 2009-07-17 00:13:45 UTC (rev 5314)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmProcessDefDiscoveryComponent.java 2009-07-17 02:33:31 UTC (rev 5315)
@@ -17,7 +17,6 @@
*/
public class JbpmProcessDefDiscoveryComponent implements
ResourceDiscoveryComponent<JbpmServiceComponent> {
- public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
EmsConnection newConnection = null;
public Set<DiscoveredResourceDetails> discoverResources(
@@ -26,7 +25,7 @@
try {
newConnection = context.getParentResourceComponent().getRebuildConnection();
- EmsBean bean = newConnection.getBean(JBPM_SERVICE);
+ EmsBean bean = newConnection.getBean(JbpmServiceComponent.JBPM_SERVICE);
Object obj = bean.getAttribute("DeployedProcessDefinitions").refresh();
Class processDefClass = newConnection.getClass().getClassLoader().loadClass("org.jbpm.graph.def.ProcessDefinition");
@@ -54,4 +53,4 @@
}
return jbpmDefs;
}
-}
\ No newline at end of file
+}
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java 2009-07-17 00:13:45 UTC (rev 5314)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/java/org/jbosson/plugins/jbpm/JbpmServiceComponent.java 2009-07-17 02:33:31 UTC (rev 5315)
@@ -17,6 +17,7 @@
import org.mc4j.ems.connection.bean.operation.EmsOperation;
import org.mc4j.ems.connection.settings.ConnectionSettings;
import org.rhq.core.domain.configuration.Configuration;
+import org.rhq.core.domain.configuration.Property;
import org.rhq.core.domain.configuration.PropertySimple;
import org.rhq.core.domain.content.PackageDetailsKey;
import org.rhq.core.domain.content.transfer.ResourcePackageDetails;
@@ -31,9 +32,12 @@
public class JbpmServiceComponent extends MBeanResourceComponent implements
CreateChildResourceFacet {
- public static final String JBPM_SERVICE = "jboss.esb:service=JbpmService";
+
+ public static String JBPM_SERVICE = "jboss.jbpm:service=JbpmService";
+
private static final String RESOURCE_TYPE_JBPM_PROCESS = "Process Definitions";
private static final String RESOURCE_TYPE_PAR = "par";
+
EmsConnection newConnection = null;
ContentContext contentContext = null;
@@ -55,6 +59,7 @@
public void start(ResourceContext context) {
super.start(context);
contentContext = context.getContentContext();
+ JBPM_SERVICE = this.getServiceBeanName();
}
private void addAdditionalJarsToConnectionSettings(
@@ -217,4 +222,9 @@
EmsOperation operation = bean.getOperation("deploy");
operation.invoke(url);
}
+
+ private String getServiceBeanName() {
+ PropertySimple propertySimple = resourceContext.getPluginConfiguration().getSimple("objectName");
+ return propertySimple.getStringValue();
+ }
}
Modified: projects/jopr-integration/branch/3.x/jopr/src/main/resources/META-INF/rhq-plugin.xml
===================================================================
--- projects/jopr-integration/branch/3.x/jopr/src/main/resources/META-INF/rhq-plugin.xml 2009-07-17 00:13:45 UTC (rev 5314)
+++ projects/jopr-integration/branch/3.x/jopr/src/main/resources/META-INF/rhq-plugin.xml 2009-07-17 02:33:31 UTC (rev 5315)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<plugin name="JBPM-Plugin" displayName="JBPM-Plugin"
+<plugin name="JBPM" displayName="JBPM"
package="org.jbosson.plugins.jbpm"
description="Provides monitoring of JBoss JBPM" version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -19,7 +19,7 @@
<plugin-configuration>
<c:simple-property name="objectName" readOnly="true"
- default="jboss.esb:service=JbpmService" />
+ default="jboss.jbpm:service=JbpmService" />
<c:simple-property name="nameTemplate"
default="JBPM Service" />
<c:simple-property name="DescriptionTemplate"
@@ -39,11 +39,6 @@
<metric property="State" displayName="jbpm State"
dataType="trait" displayType="summary" defaultOn="true"
description="Numeric value of the state of the jbpm service" />
- <help>
- <![CDATA[
- JBoss JBPM Service
- ]]>
- </help>
<service name="Process Definitions"
discovery="org.jbosson.plugins.jbpm.JbpmProcessDefDiscoveryComponent"
@@ -51,8 +46,8 @@
creationDataType="content"
createDeletePolicy="both"
description="JBPM Process Definitions">
+ <operation name="startInstance" displayName="StartProcessInstance" description="Create a process instance"/>
-
<metric property="version" displayName="Version"
dataType="trait" displayType="summary" defaultOn="true"
description="Process definition version" />
@@ -74,11 +69,10 @@
<service name="Process Instances"
discovery="org.jbosson.plugins.jbpm.JbpmInstanceDiscoveryComponent"
class="org.jbosson.plugins.jbpm.JbpmInstanceComponent"
- createDeletePolicy="both"
+ createDeletePolicy="delete-only"
creationDataType="configuration"
description="Process Instances">
-
-
+
<operation name="suspend" displayName="suspend"
description="Suspend this process instance"/>
@@ -108,13 +102,6 @@
dataType="trait" displayType="summary" defaultOn="true"
description="Process Instance EndData" />
- <help>
- <![CDATA[
- JBoss Process Instances
- ]]>
- </help>
-
-
</service>
</service>
15 years, 3 months