JBoss JBPM SVN: r5643 - in projects/demos/trainticket-demo/jbpm-on-rails/trunk: bi-events and 24 other directories.
by do-not-reply@jboss.org
Author: jbarrez
Date: 2009-09-15 16:47:18 -0400 (Tue, 15 Sep 2009)
New Revision: 5643
Added:
projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.classpath
projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.project
projects/demos/trainticket-demo/jbpm-on-rails/trunk/build.xml
projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.classpath
projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.project
projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.settings/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.settings/org.eclipse.jdt.core.prefs
projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/target/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/org/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/org/jbpm/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/org/jbpm/trainticketdemo/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/org/jbpm/trainticketdemo/TrainTicketProcessUnitTestDemo.java
projects/demos/trainticket-demo/jbpm-on-rails/trunk/temp_build
Removed:
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/logging.properties
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/log4j.properties
Modified:
projects/demos/trainticket-demo/jbpm-on-rails/trunk/.classpath
projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/
projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.classpath
projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.settings/org.eclipse.jdt.core.prefs
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.project
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.settings/org.eclipse.jdt.core.prefs
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.classpath
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.project
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.settings/org.eclipse.jdt.core.prefs
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/pom.xml
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/java/org/jbpm/trainticketdemo/business/TicketServiceImpl.java
projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/jbpm.hsqldb.create.sql
projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/pom.xml
projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/src/main/java/org/jbpm/trainticketdemo/integration/ProcessEngineFactory.java
projects/demos/trainticket-demo/jbpm-on-rails/trunk/pom.xml
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.classpath
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.project
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.settings/org.eclipse.jdt.core.prefs
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/pom.xml
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/java/org/jbpm/trainticketdemo/business/external/QuoteService.java
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/logging.properties
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/org/jbpm/trainticketdemo/process.jpdl.xml
projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/org/jbpm/trainticketdemo/process.png
projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.classpath
projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.project
projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.settings/org.eclipse.jdt.core.prefs
Log:
Small enhancements to demo
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/.classpath
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/.classpath 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/.classpath 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+ <classpathentry kind="src" output="domain/target/classes" path="domain/src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="domain/target/classes" path="domain/src/main/resources"/>
+ <classpathentry kind="src" output="process-logic/target/classes" path="process-logic/src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="process-logic/target/classes" path="process-logic/src/main/resources"/>
+ <classpathentry kind="src" output="process-logic/target/test-classes" path="process-logic/src/test/java"/>
<classpathentry kind="src" output="ejb/target/classes" path="ejb/src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="ejb/target/classes" path="ejb/src/main/resources"/>
+ <classpathentry kind="src" output="ejb/target/test-classes" path="ejb/src/test/java"/>
<classpathentry kind="src" output="war/target/classes" path="war/src/main/java"/>
<classpathentry excluding="**" kind="src" output="war/target/classes" path="war/src/main/resources"/>
- <classpathentry kind="src" path="process-logic/src/main/java"/>
- <classpathentry kind="src" path="process-logic/src/main/resources"/>
- <classpathentry kind="src" path="ejb/src/main/resources"/>
- <classpathentry kind="src" path="domain/src/main/java"/>
- <classpathentry kind="src" path="jboss-integration/src/main/java"/>
- <classpathentry kind="src" path="domain/src/main/resources"/>
- <classpathentry kind="src" path="bi-events/src/main/java"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="src" output="jboss-integration/target/classes" path="jboss-integration/src/main/java"/>
+ <classpathentry kind="src" output="bi-events/target/classes" path="bi-events/src/main/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Property changes on: projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events
___________________________________________________________________
Name: svn:ignore
+ .settings
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.classpath
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.classpath (rev 0)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.classpath 2009-09-15 20:47:18 UTC (rev 5643)
@@ -0,0 +1,5 @@
+<classpath>
+ <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
+ <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+</classpath>
\ No newline at end of file
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.project
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.project (rev 0)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/bi-events/.project 2009-09-15 20:47:18 UTC (rev 5643)
@@ -0,0 +1,13 @@
+<projectDescription>
+ <name>jbpm-on-rails-bi-events</name>
+ <comment/>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
\ No newline at end of file
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/build.xml
===================================================================
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.classpath
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.classpath 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.classpath 2009-09-15 20:47:18 UTC (rev 5643)
@@ -2,5 +2,5 @@
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
</classpath>
\ No newline at end of file
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.settings/org.eclipse.jdt.core.prefs 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/domain/.settings/org.eclipse.jdt.core.prefs 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,5 +1,5 @@
-#Fri Aug 14 10:38:10 CEST 2009
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+#Fri Aug 28 23:16:56 CEST 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.project
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.project 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.project 2009-09-15 20:47:18 UTC (rev 5643)
@@ -2,7 +2,11 @@
<name>jbpm-on-rails-ear</name>
<comment/>
<projects>
+ <project>jbpm-on-rails-bi-events</project>
+ <project>jbpm-on-rails-domain</project>
<project>jbpm-on-rails-ejb</project>
+ <project>jbpm-on-rails-jboss-integration</project>
+ <project>jbpm-on-rails-process-logic</project>
<project>jbpm-on-rails-war</project>
</projects>
<buildSpec/>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.settings/org.eclipse.jdt.core.prefs 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ear/.settings/org.eclipse.jdt.core.prefs 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,5 +1,5 @@
-#Fri Aug 14 09:19:23 CEST 2009
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+#Fri Aug 28 23:16:58 CEST 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.classpath
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.classpath 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.classpath 2009-09-15 20:47:18 UTC (rev 5643)
@@ -3,6 +3,80 @@
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4.1/mail-1.4.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.0/ant-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.7/antlr-2.7.7.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/antlr/antlr-runtime/3.1.1/antlr-runtime-3.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.2/commons-codec-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/espertech/esper/3.1.0/esper-3.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-api/1.0.0.Beta1/idm-api-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-common/1.0.0.Beta1/idm-common-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-core/1.0.0.Beta1/idm-core-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-hibernate/1.0.0.Beta1/idm-hibernate-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-spi/1.0.0.Beta1/idm-spi-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.4.GA/javassist-3.4.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.1.8/jaxb-impl-2.1.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-annotations-ejb3/4.2.3.GA/jboss-annotations-ejb3-4.2.3.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-j2ee/4.2.2.GA/jboss-j2ee-4.2.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src" path="/jbpm-on-rails-bi-events"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-domain"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-jboss-integration"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-process-logic"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-spi/4.1-SNAPSHOT/jbpm-spi-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-spi/4.1-SNAPSHOT/jbpm-spi-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-spi/4.1-SNAPSHOT/jbpm-spi-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/juel/juel/2.1.0/juel-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-engine/2.1.0/juel-engine-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-impl/2.1.0/juel-impl-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.2/junit-3.8.2.jar" sourcepath="M2_REPO/junit/junit/3.8.2/junit-3.8.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/livetribe/livetribe-jsr223/2.0.5/livetribe-jsr223-2.0.5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-jdk14/1.5.2/slf4j-jdk14-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/antlr/stringtemplate/3.2/stringtemplate-3.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
</classpath>
\ No newline at end of file
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.project
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.project 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.project 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,7 +1,12 @@
<projectDescription>
<name>jbpm-on-rails-ejb</name>
<comment/>
- <projects/>
+ <projects>
+ <project>jbpm-on-rails-bi-events</project>
+ <project>jbpm-on-rails-domain</project>
+ <project>jbpm-on-rails-jboss-integration</project>
+ <project>jbpm-on-rails-process-logic</project>
+ </projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.settings/org.eclipse.jdt.core.prefs 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/.settings/org.eclipse.jdt.core.prefs 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,5 +1,5 @@
-#Fri Aug 14 09:19:23 CEST 2009
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+#Fri Aug 28 23:16:57 CEST 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/pom.xml
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/pom.xml 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/pom.xml 2009-09-15 20:47:18 UTC (rev 5643)
@@ -15,11 +15,6 @@
<dependencies>
<dependency>
<groupId>org.jbpm.trainticketdemo</groupId>
- <artifactId>jbpm-on-rails-domain</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.trainticketdemo</groupId>
<artifactId>jbpm-on-rails-process-logic</artifactId>
<version>1.0</version>
</dependency>
@@ -48,13 +43,8 @@
</dependency>
<dependency>
<groupId>org.jbpm.jbpm4</groupId>
- <artifactId>jbpm-jpdl</artifactId>
- <version>4.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-spi</artifactId>
- <version>4.1-SNAPSHOT</version>
+ <version>${jbpm.version}</version>
</dependency>
<dependency>
<groupId>com.espertech</groupId>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/java/org/jbpm/trainticketdemo/business/TicketServiceImpl.java
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/java/org/jbpm/trainticketdemo/business/TicketServiceImpl.java 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/java/org/jbpm/trainticketdemo/business/TicketServiceImpl.java 2009-09-15 20:47:18 UTC (rev 5643)
@@ -94,7 +94,9 @@
if (LOG.isInfoEnabled()) {
LOG.info("Task " + task.getId() + " completed by " + cellPhoneNr);
}
- }
+ } else {
+ LOG.info("!! No task found for cellphoneNr " + cellPhoneNr);
+ }
}
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/jbpm.hsqldb.create.sql
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/jbpm.hsqldb.create.sql 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/jbpm.hsqldb.create.sql 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,4 +1,6 @@
- create table JBPM4_DEPLOYMENT (
+
+
+create table JBPM4_DEPLOYMENT (
DBID_ bigint generated by default as identity (start with 1),
NAME_ longvarchar,
TIMESTAMP_ bigint,
@@ -493,7 +495,6 @@
);
INSERT INTO USERS(NAME,CELL_PHONE, PASSWORD, CREDIT) VALUES('jBPMPhone', 'EMULATOR-http://localhost:4321/cellphone_sms_listener', 'test', 100.0);
-INSERT INTO USERS(NAME,CELL_PHONE, PASSWORD, CREDIT) VALUES('demoPhoneNr', '123456789', 'test', 100.0);
create table TICKET_RESPONSE_TIMINGS (
Deleted: projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/logging.properties
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/logging.properties 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/ejb/src/main/resources/logging.properties 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,18 +0,0 @@
-handlers= java.util.logging.ConsoleHandler
-redirect.commons.logging = enabled
-
-java.util.logging.ConsoleHandler.level = FINE
-java.util.logging.ConsoleHandler.formatter = org.jbpm.internal.log.LogFormatter
-
-org.jbpm.level=FINEST
-# org.jbpm.pvm.internal.tx.level=FINE
-# org.jbpm.pvm.internal.wire.level=FINE
-# org.jbpm.pvm.internal.util.level=FINE
-
-org.hibernate.level=INFO
-org.hibernate.cfg.SettingsFactory.level=SEVERE
-org.hibernate.cfg.HbmBinder.level=SEVERE
-# org.hibernate.SQL.level=FINEST
-# org.hibernate.type.level=FINEST
-# org.hibernate.tool.hbm2ddl.SchemaExport.level=FINEST
-# org.hibernate.transaction.level=FINEST
\ No newline at end of file
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.classpath
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.classpath (rev 0)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.classpath 2009-09-15 20:47:18 UTC (rev 5643)
@@ -0,0 +1,66 @@
+<classpath>
+ <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
+ <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4.1/mail-1.4.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.0/ant-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.2/commons-codec-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-api/1.0.0.Beta1/idm-api-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-common/1.0.0.Beta1/idm-common-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-core/1.0.0.Beta1/idm-core-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-hibernate/1.0.0.Beta1/idm-hibernate-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-spi/1.0.0.Beta1/idm-spi-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.4.GA/javassist-3.4.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.1.8/jaxb-impl-2.1.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-j2ee/4.2.2.GA/jboss-j2ee-4.2.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src" path="/jbpm-on-rails-bi-events"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-domain"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-process-logic"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/juel/juel/2.1.0/juel-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-engine/2.1.0/juel-engine-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-impl/2.1.0/juel-impl-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.2/junit-3.8.2.jar" sourcepath="M2_REPO/junit/junit/3.8.2/junit-3.8.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/livetribe/livetribe-jsr223/2.0.5/livetribe-jsr223-2.0.5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-jdk14/1.5.2/slf4j-jdk14-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+</classpath>
\ No newline at end of file
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.project
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.project (rev 0)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.project 2009-09-15 20:47:18 UTC (rev 5643)
@@ -0,0 +1,17 @@
+<projectDescription>
+ <name>jbpm-on-rails-jboss-integration</name>
+ <comment/>
+ <projects>
+ <project>jbpm-on-rails-bi-events</project>
+ <project>jbpm-on-rails-domain</project>
+ <project>jbpm-on-rails-process-logic</project>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
\ No newline at end of file
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/.settings/org.eclipse.jdt.core.prefs 2009-09-15 20:47:18 UTC (rev 5643)
@@ -0,0 +1,5 @@
+#Fri Aug 28 23:16:57 CEST 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/pom.xml
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/pom.xml 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/pom.xml 2009-09-15 20:47:18 UTC (rev 5643)
@@ -15,14 +15,7 @@
<dependency>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-jpdl</artifactId>
- <version>4.1-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.jbpm.trainticketdemo</groupId>
- <artifactId>jbpm-on-rails-process-logic</artifactId>
- <version>1.0</version>
- <scope>provided</scope>
- </dependency>
</dependencies>
</project>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/src/main/java/org/jbpm/trainticketdemo/integration/ProcessEngineFactory.java
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/src/main/java/org/jbpm/trainticketdemo/integration/ProcessEngineFactory.java 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/jboss-integration/src/main/java/org/jbpm/trainticketdemo/integration/ProcessEngineFactory.java 2009-09-15 20:47:18 UTC (rev 5643)
@@ -44,8 +44,8 @@
}
}
} else {
- if (LOG.isInfoEnabled()) {
- LOG.info("Found cached process engine instance");
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Found cached process engine instance");
}
}
return processEngine;
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/pom.xml
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/pom.xml 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/pom.xml 2009-09-15 20:47:18 UTC (rev 5643)
@@ -18,6 +18,10 @@
<module>bi-events</module>
</modules>
+ <properties>
+ <jbpm.version>4.1</jbpm.version>
+ </properties>
+
<repositories>
<repository>
<id>jboss</id>
@@ -29,6 +33,11 @@
<dependencyManagement>
<dependencies>
<dependency>
+ <groupId>org.jbpm.jbpm4</groupId>
+ <artifactId>jbpm-jpdl</artifactId>
+ <version>${jbpm.version}</version>
+ </dependency>
+ <dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.classpath
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.classpath 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.classpath 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,6 +1,68 @@
<classpath>
+ <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/>
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4.1/mail-1.4.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.0/ant-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.2/commons-codec-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-api/1.0.0.Beta1/idm-api-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-common/1.0.0.Beta1/idm-common-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-core/1.0.0.Beta1/idm-core-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-hibernate/1.0.0.Beta1/idm-hibernate-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-spi/1.0.0.Beta1/idm-spi-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.4.GA/javassist-3.4.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.1.8/jaxb-impl-2.1.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-j2ee/4.2.2.GA/jboss-j2ee-4.2.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/client/jbossall-client/4.2.3.GA/jbossall-client-4.2.3.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src" path="/jbpm-on-rails-bi-events"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-domain"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/juel/juel/2.1.0/juel-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-engine/2.1.0/juel-engine-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-impl/2.1.0/juel-impl-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.2/junit-3.8.2.jar" sourcepath="M2_REPO/junit/junit/3.8.2/junit-3.8.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/livetribe/livetribe-jsr223/2.0.5/livetribe-jsr223-2.0.5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-jdk14/1.5.2/slf4j-jdk14-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
</classpath>
\ No newline at end of file
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.project
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.project 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.project 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,7 +1,10 @@
<projectDescription>
<name>jbpm-on-rails-process-logic</name>
<comment/>
- <projects/>
+ <projects>
+ <project>jbpm-on-rails-bi-events</project>
+ <project>jbpm-on-rails-domain</project>
+ </projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.settings/org.eclipse.jdt.core.prefs 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/.settings/org.eclipse.jdt.core.prefs 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,5 +1,5 @@
-#Fri Aug 14 09:19:23 CEST 2009
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+#Fri Aug 28 23:16:57 CEST 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/pom.xml
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/pom.xml 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/pom.xml 2009-09-15 20:47:18 UTC (rev 5643)
@@ -15,7 +15,6 @@
<dependency>
<groupId>org.jbpm.jbpm4</groupId>
<artifactId>jbpm-jpdl</artifactId>
- <version>4.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jbpm.trainticketdemo</groupId>
@@ -32,5 +31,10 @@
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
+ <dependency>
+ <groupId>org.jboss.client</groupId>
+ <artifactId>jbossall-client</artifactId>
+ <version>4.2.3.GA</version>
+ </dependency>
</dependencies>
</project>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/java/org/jbpm/trainticketdemo/business/external/QuoteService.java
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/java/org/jbpm/trainticketdemo/business/external/QuoteService.java 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/java/org/jbpm/trainticketdemo/business/external/QuoteService.java 2009-09-15 20:47:18 UTC (rev 5643)
@@ -22,7 +22,6 @@
package org.jbpm.trainticketdemo.business.external;
import org.jbpm.trainticketdemo.domain.Quote;
-import org.jbpm.trainticketdemo.domain.TicketRequest;
/**
* Remote service for getting Quote information
Deleted: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/log4j.properties
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/log4j.properties 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/log4j.properties 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,11 +0,0 @@
-log4j.rootLogger=DEBUG,CONSOLE
-
-log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
-
-log4j.appender.CONSOLE.immediateFlush=true
-
-log4j.appender.CONSOLE.target=System.out
-
-log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
-
-log4j.appender.CONSOLE.layout.ConversionPattern=%d{dd-MMM-yyyy HH:mm:ss} %c %t%n[%p]: %m%n
\ No newline at end of file
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/logging.properties
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/logging.properties 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/logging.properties 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,64 +1,18 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+handlers= java.util.logging.ConsoleHandler
+redirect.commons.logging = enabled
-handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
-
-.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
-
-############################################################
-# Handler specific properties.
-# Describes specific configuration info for Handlers.
-############################################################
-
-1catalina.org.apache.juli.FileHandler.level = FINE
-1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
-1catalina.org.apache.juli.FileHandler.prefix = catalina.
-
-2localhost.org.apache.juli.FileHandler.level = FINE
-2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
-2localhost.org.apache.juli.FileHandler.prefix = localhost.
-
-3manager.org.apache.juli.FileHandler.level = FINE
-3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
-3manager.org.apache.juli.FileHandler.prefix = manager.
-
-4host-manager.org.apache.juli.FileHandler.level = FINE
-4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
-4host-manager.org.apache.juli.FileHandler.prefix = host-manager.
-
java.util.logging.ConsoleHandler.level = FINE
-java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+java.util.logging.ConsoleHandler.formatter = org.jbpm.internal.log.LogFormatter
+org.jbpm.level=FINE
+# org.jbpm.pvm.internal.tx.level=FINE
+# org.jbpm.pvm.internal.wire.level=FINE
+# org.jbpm.pvm.internal.util.level=FINE
-############################################################
-# Facility specific properties.
-# Provides extra control for each logger.
-############################################################
-
-org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
-org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler
-
-org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
-org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler
-
-org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
-org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler
-
-# For example, set the com.xyz.foo logger to only log SEVERE
-# messages:
-#org.apache.catalina.startup.ContextConfig.level = FINE
-#org.apache.catalina.startup.HostConfig.level = FINE
-#org.apache.catalina.session.ManagerBase.level = FINE
-#org.apache.catalina.core.AprLifecycleListener.level=FINE
+org.hibernate.level=INFO
+org.hibernate.cfg.SettingsFactory.level=SEVERE
+org.hibernate.cfg.HbmBinder.level=SEVERE
+# org.hibernate.SQL.level=FINEST
+# org.hibernate.type.level=FINEST
+# org.hibernate.tool.hbm2ddl.SchemaExport.level=FINEST
+# org.hibernate.transaction.level=FINEST
\ No newline at end of file
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/org/jbpm/trainticketdemo/process.jpdl.xml
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/org/jbpm/trainticketdemo/process.jpdl.xml 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/org/jbpm/trainticketdemo/process.jpdl.xml 2009-09-15 20:47:18 UTC (rev 5643)
@@ -41,8 +41,6 @@
<decision g="274,107,48,48" name="Check customer credit">
<handler class="org.jbpm.trainticketdemo.decision.CheckCustomerDecision" />
- <handler class="org.jbpm.trainticketdemo.decision.CheckCustomerDecision"/>
- <handler class="org.jbpm.trainticketdemo.decision.CheckCustomerDecision"/>
<transition g="-67,-16" name="credit OK" to="Send price quote to customer"/>
<transition g="-68,5" name="credit NOK" to="Send reject message"/>
</decision>
@@ -50,13 +48,12 @@
<task assignee="#{cellPhoneNr}" form="org/jbpm/trainticketdemo/accept_quote.ftl" g="641,17,107,52" name="Accept quote">
<transition to="charge customer"/>
<transition g="11,-13" name="timeout" to="cancel">
- <timer duedate="10 seconds"/>
- <timer duedate="10 seconds"/>
+ <timer duedate="1 day"/>
</transition>
</task>
<custom class="org.jbpm.trainticketdemo.action.ChargeCustomerAction" g="796,18,135,52" name="charge customer">
- <on event="end">
+ <on event="end" continue="async">
<event-listener class="org.jbpm.trainticketdemo.eventlistener.SendEventToQueue">
<field name="eventClass">
<string value="org.jbpm.trainticketdemo.event.TicketSoldEvent"/>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/resources/org/jbpm/trainticketdemo/process.png
===================================================================
(Binary files differ)
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/org/jbpm/trainticketdemo/TrainTicketProcessUnitTestDemo.java
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/org/jbpm/trainticketdemo/TrainTicketProcessUnitTestDemo.java (rev 0)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/process-logic/src/main/test/java/org/jbpm/trainticketdemo/TrainTicketProcessUnitTestDemo.java 2009-09-15 20:47:18 UTC (rev 5643)
@@ -0,0 +1,122 @@
+/*
+ * 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.trainticketdemo;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+import org.jbpm.api.NewDeployment;
+import org.jbpm.api.ProcessInstance;
+import org.jbpm.api.task.Task;
+import org.jbpm.test.JbpmTestCase;
+import org.jbpm.trainticketdemo.domain.User;
+import org.jbpm.trainticketdemo.variable.ProcessVariable;
+
+/**
+ * @author Joram Barrez
+ */
+public class TrainTicketProcessUnitTestDemo extends JbpmTestCase {
+
+ private SessionFactory sessionFactory;
+
+ private User testUser;
+
+ // ###### SETUP & TEARDOWN ###################################
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ sessionFactory = processEngine.get(SessionFactory.class);
+
+ // Add dummy user
+
+ testUser = new User();
+ testUser.setCellphoneNr("+32 123 45 67 89");
+ testUser.setCurrentCredit(100.0);
+ save(testUser);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+
+ // Cleanup our own test data
+ Session session = sessionFactory.openSession();
+ Transaction t = session.beginTransaction();
+ session.delete(testUser);
+ t.commit();
+ session.close();
+
+ // Let jBPM clean up its stuff
+ super.tearDown();
+ }
+
+ // This is the unit test shown in the presentation
+ public void testTrainTicketProcessWithEnoughCredit() {
+
+ // First we deploy the latest version of the train ticket process
+ NewDeployment deployment = repositoryService.createDeployment();
+ deployment.addResourceFromClasspath("org/jbpm/trainticketdemo/process.jpdl.xml");
+ deployment.deploy();
+
+ // Start a new Process instance
+ Map<String, String> vars = new HashMap<String, String>();
+ vars.put(ProcessVariable.FROM, "Brussels");
+ vars.put(ProcessVariable.TO, "Antwerp");
+ vars.put(ProcessVariable.CELLPHONE_NUMBER, testUser.getCellphoneNr());
+
+ ProcessInstance pi = executionService.startProcessInstanceByKey("ticketProcess", vars);
+
+ // Since I have enough money, the 'Accept Quote' task should be assigned to the test user's cellphone nr
+ List<Task> tasks = taskService.findPersonalTasks(testUser.getCellphoneNr());
+ assertTrue("Nr of tasks for cellphone nr = " + tasks.size(), tasks.size() == 1);
+
+ // or we can use the new Query API
+ Task task = taskService.createTaskQuery()
+ .assignee(testUser.getCellphoneNr())
+ .uniqueResult();
+ assertEquals(tasks.get(0).getName(), task.getName());
+
+ // After task completion, the process is finished
+ taskService.completeTask(task.getId());
+ assertProcessInstanceEnded(pi);
+
+ // We always clean up after ourselves
+ repositoryService.deleteDeploymentCascade(deployment.getId());
+
+ }
+
+
+ // ########## HELPER METHODS #####################""
+
+ private void save(User user) {
+ Session session = sessionFactory.openSession();
+ Transaction t = session.beginTransaction();
+ session.saveOrUpdate(testUser);
+ t.commit();
+ session.close();
+ }
+
+}
Added: projects/demos/trainticket-demo/jbpm-on-rails/trunk/temp_build
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/temp_build (rev 0)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/temp_build 2009-09-15 20:47:18 UTC (rev 5643)
@@ -0,0 +1,258 @@
+[INFO] Scanning for projects...
+[INFO] Reactor build order:
+[INFO] jbpm-on-rails
+[INFO] jbpm-on-rails-domain
+[INFO] jbpm-on-rails-bi-events
+[INFO] jbpm-on-rails-process-logic
+[INFO] jbpm-on-rails-jboss-integration
+[INFO] jbpm-on-rails-ejb
+[INFO] jbpm-on-rails-war
+[INFO] jbpm-on-rails-ear
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/target
+[INFO] [site:attach-descriptor]
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/target/pom-transformed.xml to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails/1.0/jbpm-on-rails-1.0.pom
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails-domain
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/domain/target
+[INFO] [resources:resources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] Copying 1 resource
+[INFO] [compiler:compile]
+[INFO] Compiling 3 source files to /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/domain/target/classes
+[INFO] [resources:testResources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/domain/src/test/resources
+[INFO] [compiler:testCompile]
+[INFO] No sources to compile
+[INFO] [surefire:test]
+[INFO] No tests to run.
+[INFO] [jar:jar]
+[INFO] Building jar: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/domain/target/jbpm-on-rails-domain-1.0.jar
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/domain/target/jbpm-on-rails-domain-1.0.jar to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails-domain/1.0/jbpm-on-rails-domain-1.0.jar
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails-bi-events
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/bi-events/target
+[INFO] [resources:resources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/bi-events/src/main/resources
+[INFO] [compiler:compile]
+[INFO] Compiling 3 source files to /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/bi-events/target/classes
+[INFO] [resources:testResources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/bi-events/src/test/resources
+[INFO] [compiler:testCompile]
+[INFO] No sources to compile
+[INFO] [surefire:test]
+[INFO] No tests to run.
+[INFO] [jar:jar]
+[INFO] Building jar: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/bi-events/target/jbpm-on-rails-bi-events-1.0.jar
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/bi-events/target/jbpm-on-rails-bi-events-1.0.jar to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails-bi-events/1.0/jbpm-on-rails-bi-events-1.0.jar
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails-process-logic
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/process-logic/target
+[INFO] [resources:resources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] Copying 11 resources
+[INFO] [compiler:compile]
+[INFO] Compiling 17 source files to /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/process-logic/target/classes
+[INFO] [resources:testResources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/process-logic/src/test/resources
+[INFO] [compiler:testCompile]
+[INFO] Compiling 1 source file to /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/process-logic/target/test-classes
+[INFO] [surefire:test]
+[INFO] Surefire report directory: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/process-logic/target/surefire-reports
+
+-------------------------------------------------------
+ T E S T S
+-------------------------------------------------------
+There are no tests to run.
+
+Results :
+
+Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
+
+[INFO] [jar:jar]
+[INFO] Building jar: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/process-logic/target/jbpm-on-rails-process-logic-1.0.jar
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/process-logic/target/jbpm-on-rails-process-logic-1.0.jar to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails-process-logic/1.0/jbpm-on-rails-process-logic-1.0.jar
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails-jboss-integration
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/jboss-integration/target
+[INFO] [resources:resources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/jboss-integration/src/main/resources
+[INFO] [compiler:compile]
+[INFO] Compiling 3 source files to /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/jboss-integration/target/classes
+[INFO] [resources:testResources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/jboss-integration/src/test/resources
+[INFO] [compiler:testCompile]
+[INFO] No sources to compile
+[INFO] [surefire:test]
+[INFO] No tests to run.
+[INFO] [jar:jar]
+[INFO] Building jar: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/jboss-integration/target/jbpm-on-rails-jboss-integration-1.0.jar
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/jboss-integration/target/jbpm-on-rails-jboss-integration-1.0.jar to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails-jboss-integration/1.0/jbpm-on-rails-jboss-integration-1.0.jar
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails-ejb
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ejb/target
+[INFO] [resources:resources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] Copying 2 resources
+[INFO] [compiler:compile]
+[INFO] Compiling 12 source files to /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ejb/target/classes
+[INFO] [resources:testResources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ejb/src/test/resources
+[INFO] [compiler:testCompile]
+[INFO] Nothing to compile - all classes are up to date
+[INFO] [surefire:test]
+[INFO] No tests to run.
+[INFO] [jar:jar]
+[INFO] Building jar: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ejb/target/jbpm-on-rails-ejb-1.0.jar
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ejb/target/jbpm-on-rails-ejb-1.0.jar to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails-ejb/1.0/jbpm-on-rails-ejb-1.0.jar
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails-war
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/war/target
+[INFO] [resources:resources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] Copying 0 resource
+[INFO] [compiler:compile]
+[INFO] Compiling 1 source file to /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/war/target/classes
+[INFO] [resources:testResources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/war/src/test/resources
+[INFO] [compiler:testCompile]
+[INFO] No sources to compile
+[INFO] [surefire:test]
+[INFO] No tests to run.
+[INFO] [war:war]
+[INFO] Packaging webapp
+[INFO] Assembling webapp[jbpm-on-rails-war] in [/home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/war/target/jbpm-on-rails-war-1.0]
+[INFO] Processing war project
+[INFO] Copying webapp resources[/home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/war/src/main/webapp]
+[INFO] Webapp assembled in[99 msecs]
+[INFO] Building war: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/war/target/jbpm-on-rails-war-1.0.war
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/war/target/jbpm-on-rails-war-1.0.war to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails-war/1.0/jbpm-on-rails-war-1.0.war
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jbpm-on-rails-ear
+[INFO] task-segment: [clean, install]
+[INFO] ------------------------------------------------------------------------
+[INFO] [clean:clean]
+[INFO] Deleting directory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ear/target
+[INFO] [ear:generate-application-xml]
+[INFO] Generating application.xml
+[INFO] [resources:resources]
+[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
+[INFO] skip non existing resourceDirectory /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ear/src/main/resources
+[INFO] [ear:ear]
+[INFO] Copying artifact[war:org.jbpm.trainticketdemo:jbpm-on-rails-war:1.0] to[jbpm-on-rails-war-1.0.war]
+[INFO] Copying artifact[ejb:org.jbpm.trainticketdemo:jbpm-on-rails-ejb:1.0] to[jbpm-on-rails-ejb-1.0.jar]
+[INFO] Copying artifact[jar:org.jbpm.trainticketdemo:jbpm-on-rails-process-logic:1.0] to[lib/jbpm-on-rails-process-logic-1.0.jar]
+[INFO] Copying artifact[jar:org.jbpm.jbpm4:jbpm-jpdl:4.1] to[lib/jbpm-jpdl-4.1.jar]
+[INFO] Copying artifact[jar:org.jbpm.jbpm4:jbpm-pvm:4.1] to[lib/jbpm-pvm-4.1.jar]
+[INFO] Copying artifact[jar:org.jbpm.jbpm4:jbpm-api:4.1] to[lib/jbpm-api-4.1.jar]
+[INFO] Copying artifact[jar:jboss:jboss-j2ee:4.2.2.GA] to[lib/jboss-j2ee-4.2.2.GA.jar]
+[INFO] Copying artifact[jar:org.jbpm.jbpm4:jbpm-log:4.1] to[lib/jbpm-log-4.1.jar]
+[INFO] Copying artifact[jar:log4j:log4j:1.2.14] to[lib/log4j-1.2.14.jar]
+[INFO] Copying artifact[jar:org.jbpm.jbpm4:jbpm-test-base:4.1] to[lib/jbpm-test-base-4.1.jar]
+[INFO] Copying artifact[jar:junit:junit:3.8.2] to[lib/junit-3.8.2.jar]
+[INFO] Copying artifact[jar:org.hibernate:hibernate-core:3.3.1.GA] to[lib/hibernate-core-3.3.1.GA.jar]
+[INFO] Copying artifact[jar:antlr:antlr:2.7.7] to[lib/antlr-2.7.7.jar]
+[INFO] Copying artifact[jar:commons-collections:commons-collections:3.1] to[lib/commons-collections-3.1.jar]
+[INFO] Copying artifact[jar:dom4j:dom4j:1.6.1] to[lib/dom4j-1.6.1.jar]
+[INFO] Copying artifact[jar:xml-apis:xml-apis:1.0.b2] to[lib/xml-apis-1.0.b2.jar]
+[INFO] Copying artifact[jar:javax.transaction:jta:1.1] to[lib/jta-1.1.jar]
+[INFO] Copying artifact[jar:org.slf4j:slf4j-api:1.5.2] to[lib/slf4j-api-1.5.2.jar]
+[INFO] Copying artifact[jar:org.slf4j:slf4j-jdk14:1.5.2] to[lib/slf4j-jdk14-1.5.2.jar]
+[INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar]
+[INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar]
+[INFO] Copying artifact[jar:juel:juel:2.1.0] to[lib/juel-2.1.0.jar]
+[INFO] Copying artifact[jar:juel:juel-impl:2.1.0] to[lib/juel-impl-2.1.0.jar]
+[INFO] Copying artifact[jar:juel:juel-engine:2.1.0] to[lib/juel-engine-2.1.0.jar]
+[INFO] Copying artifact[jar:org.jboss.identity.idm:idm-core:1.0.0.Beta1] to[lib/idm-core-1.0.0.Beta1.jar]
+[INFO] Copying artifact[jar:org.jboss.identity.idm:idm-common:1.0.0.Beta1] to[lib/idm-common-1.0.0.Beta1.jar]
+[INFO] Copying artifact[jar:org.jboss.identity.idm:idm-api:1.0.0.Beta1] to[lib/idm-api-1.0.0.Beta1.jar]
+[INFO] Copying artifact[jar:org.jboss.identity.idm:idm-spi:1.0.0.Beta1] to[lib/idm-spi-1.0.0.Beta1.jar]
+[INFO] Copying artifact[jar:com.sun.xml.bind:jaxb-impl:2.1.8] to[lib/jaxb-impl-2.1.8.jar]
+[INFO] Copying artifact[jar:javax.xml.bind:jaxb-api:2.1] to[lib/jaxb-api-2.1.jar]
+[INFO] Copying artifact[jar:javax.xml.stream:stax-api:1.0-2] to[lib/stax-api-1.0-2.jar]
+[INFO] Copying artifact[jar:javax.activation:activation:1.1] to[lib/activation-1.1.jar]
+[INFO] Copying artifact[jar:org.jboss.identity.idm:idm-hibernate:1.0.0.Beta1] to[lib/idm-hibernate-1.0.0.Beta1.jar]
+[INFO] Copying artifact[jar:javassist:javassist:3.4.GA] to[lib/javassist-3.4.GA.jar]
+[INFO] Copying artifact[jar:org.hibernate:hibernate-cglib-repack:2.1_3] to[lib/hibernate-cglib-repack-2.1_3.jar]
+[INFO] Copying artifact[jar:org.slf4j:slf4j-log4j12:1.5.2] to[lib/slf4j-log4j12-1.5.2.jar]
+[INFO] Copying artifact[jar:org.hibernate:hibernate-entitymanager:3.4.0.GA] to[lib/hibernate-entitymanager-3.4.0.GA.jar]
+[INFO] Copying artifact[jar:org.hibernate:ejb3-persistence:1.0.2.GA] to[lib/ejb3-persistence-1.0.2.GA.jar]
+[INFO] Copying artifact[jar:org.hibernate:hibernate-commons-annotations:3.1.0.GA] to[lib/hibernate-commons-annotations-3.1.0.GA.jar]
+[INFO] Copying artifact[jar:org.hibernate:hibernate-annotations:3.4.0.GA] to[lib/hibernate-annotations-3.4.0.GA.jar]
+[INFO] Copying artifact[jar:org.livetribe:livetribe-jsr223:2.0.5] to[lib/livetribe-jsr223-2.0.5.jar]
+[INFO] Copying artifact[jar:javax.mail:mail:1.4.1] to[lib/mail-1.4.1.jar]
+[INFO] Copying artifact[jar:org.jbpm.trainticketdemo:jbpm-on-rails-domain:1.0] to[lib/jbpm-on-rails-domain-1.0.jar]
+[INFO] Copying artifact[jar:org.jbpm.trainticketdemo:jbpm-on-rails-bi-events:1.0] to[lib/jbpm-on-rails-bi-events-1.0.jar]
+[INFO] Copying artifact[jar:commons-httpclient:commons-httpclient:3.1] to[lib/commons-httpclient-3.1.jar]
+[INFO] Copying artifact[jar:commons-logging:commons-logging:1.1.1] to[lib/commons-logging-1.1.1.jar]
+[INFO] Copying artifact[jar:commons-codec:commons-codec:1.2] to[lib/commons-codec-1.2.jar]
+[INFO] Copying artifact[jar:org.jboss.client:jbossall-client:4.2.3.GA] to[lib/jbossall-client-4.2.3.GA.jar]
+[INFO] Copying artifact[jar:org.jbpm.trainticketdemo:jbpm-on-rails-jboss-integration:1.0] to[lib/jbpm-on-rails-jboss-integration-1.0.jar]
+[INFO] Copying artifact[jar:org.jbpm.jbpm4:jbpm-spi:4.1] to[lib/jbpm-spi-4.1.jar]
+[INFO] Copying artifact[jar:com.espertech:esper:3.1.0] to[lib/esper-3.1.0.jar]
+[INFO] Copying artifact[jar:org.antlr:antlr-runtime:3.1.1] to[lib/antlr-runtime-3.1.1.jar]
+[INFO] Copying artifact[jar:org.antlr:stringtemplate:3.2] to[lib/stringtemplate-3.2.jar]
+[INFO] Copying artifact[jar:cglib:cglib-nodep:2.2] to[lib/cglib-nodep-2.2.jar]
+[INFO] Copying artifact[jar:hsqldb:hsqldb:1.8.0.10] to[lib/hsqldb-1.8.0.10.jar]
+[INFO] Could not find manifest file: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ear/src/main/application/META-INF/MANIFEST.MF - Generating one
+[INFO] Building jar: /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ear/target/jbpm-on-rails.ear
+[INFO] [install:install]
+[INFO] Installing /home/jbarrez/dev/blog/jboss_world_demo/workspace/jbpm-on-rails/ear/target/jbpm-on-rails.ear to /home/jbarrez/.m2/repository/org/jbpm/trainticketdemo/jbpm-on-rails-ear/1.0/jbpm-on-rails-ear-1.0.ear
+[INFO]
+[INFO]
+[INFO] ------------------------------------------------------------------------
+[INFO] Reactor Summary:
+[INFO] ------------------------------------------------------------------------
+[INFO] jbpm-on-rails ......................................... SUCCESS [1.389s]
+[INFO] jbpm-on-rails-domain .................................. SUCCESS [1.097s]
+[INFO] jbpm-on-rails-bi-events ............................... SUCCESS [0.377s]
+[INFO] jbpm-on-rails-process-logic ........................... SUCCESS [1.881s]
+[INFO] jbpm-on-rails-jboss-integration ....................... SUCCESS [0.490s]
+[INFO] jbpm-on-rails-ejb ..................................... SUCCESS [0.725s]
+[INFO] jbpm-on-rails-war ..................................... SUCCESS [2.227s]
+[INFO] jbpm-on-rails-ear ..................................... SUCCESS [2.227s]
+[INFO] ------------------------------------------------------------------------
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESSFUL
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time: 10 seconds
+[INFO] Finished at: Tue Sep 15 21:01:46 CEST 2009
+[INFO] Final Memory: 82M/596M
+[INFO] ------------------------------------------------------------------------
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.classpath
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.classpath 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.classpath 2009-09-15 20:47:18 UTC (rev 5643)
@@ -2,10 +2,82 @@
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.2/jstl-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.2/jstl-1.2.jar" sourcepath="M2_REPO/javax/servlet/jstl/1.2/jstl-1.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4.1/mail-1.4.1.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.0/ant-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.7/antlr-2.7.7.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/antlr/antlr-runtime/3.1.1/antlr-runtime-3.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.2/commons-codec-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/espertech/esper/3.1.0/esper-3.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-api/1.0.0.Beta1/idm-api-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-common/1.0.0.Beta1/idm-common-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-core/1.0.0.Beta1/idm-core-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-hibernate/1.0.0.Beta1/idm-hibernate-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jboss/identity/idm/idm-spi/1.0.0.Beta1/idm-spi-1.0.0.Beta1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.4.GA/javassist-3.4.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.1.8/jaxb-impl-2.1.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-j2ee/4.2.2.GA/jboss-j2ee-4.2.2.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-api/4.1-SNAPSHOT/jbpm-api-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-jpdl/4.1-SNAPSHOT/jbpm-jpdl-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-log/4.1-SNAPSHOT/jbpm-log-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src" path="/jbpm-on-rails-bi-events"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-domain"/>
<classpathentry kind="src" path="/jbpm-on-rails-ejb"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-jboss-integration"/>
+ <classpathentry kind="src" path="/jbpm-on-rails-process-logic"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-pvm/4.1-SNAPSHOT/jbpm-pvm-4.1-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-spi/4.1-SNAPSHOT/jbpm-spi-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-spi/4.1-SNAPSHOT/jbpm-spi-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-spi/4.1-SNAPSHOT/jbpm-spi-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT.jar" sourcepath="M2_REPO/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-sources.jar">
+ <attributes>
+ <attribute value="jar:file:/home/jbarrez/.m2/repository/org/jbpm/jbpm4/jbpm-test-base/4.1-SNAPSHOT/jbpm-test-base-4.1-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/juel/juel/2.1.0/juel-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-engine/2.1.0/juel-engine-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/juel/juel-impl/2.1.0/juel-impl-2.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.2/junit-3.8.2.jar" sourcepath="M2_REPO/junit/junit/3.8.2/junit-3.8.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/livetribe/livetribe-jsr223/2.0.5/livetribe-jsr223-2.0.5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-jdk14/1.5.2/slf4j-jdk14-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/antlr/stringtemplate/3.2/stringtemplate-3.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
</classpath>
\ No newline at end of file
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.project
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.project 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.project 2009-09-15 20:47:18 UTC (rev 5643)
@@ -2,7 +2,11 @@
<name>jbpm-on-rails-war</name>
<comment/>
<projects>
+ <project>jbpm-on-rails-bi-events</project>
+ <project>jbpm-on-rails-domain</project>
<project>jbpm-on-rails-ejb</project>
+ <project>jbpm-on-rails-jboss-integration</project>
+ <project>jbpm-on-rails-process-logic</project>
</projects>
<buildSpec>
<buildCommand>
Modified: projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.settings/org.eclipse.jdt.core.prefs 2009-09-15 13:33:14 UTC (rev 5642)
+++ projects/demos/trainticket-demo/jbpm-on-rails/trunk/war/.settings/org.eclipse.jdt.core.prefs 2009-09-15 20:47:18 UTC (rev 5643)
@@ -1,5 +1,5 @@
-#Fri Aug 14 09:19:23 CEST 2009
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+#Fri Aug 28 23:16:57 CEST 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
14 years, 7 months
JBoss JBPM SVN: r5642 - jbpm3/tags.
by do-not-reply@jboss.org
Author: jcoleman(a)redhat.com
Date: 2009-09-15 09:33:14 -0400 (Tue, 15 Sep 2009)
New Revision: 5642
Added:
jbpm3/tags/jbpm-3.2.7.CR3/
Log:
Create 3.2.7 CR3 tag from jbpm-3.2-soa branch
Copied: jbpm3/tags/jbpm-3.2.7.CR3 (from rev 5641, jbpm3/branches/jbpm-3.2-soa)
14 years, 7 months
JBoss JBPM SVN: r5641 - in jbpm4/trunk/modules: examples and 9 other directories.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-09-15 07:05:07 -0400 (Tue, 15 Sep 2009)
New Revision: 5641
Modified:
jbpm4/trunk/modules/db/jbpm4-db.iml
jbpm4/trunk/modules/examples/jbpm4-examples.iml
jbpm4/trunk/modules/integration/console/integration-console.iml
jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java
jbpm4/trunk/modules/integration/form-plugin/form-plugin.iml
jbpm4/trunk/modules/integration/graphView-plugin/graphView-plugin.iml
jbpm4/trunk/modules/integration/jboss4/integration-jboss4.iml
jbpm4/trunk/modules/integration/spi/integration-spi.iml
jbpm4/trunk/modules/test-base/test-base.iml
jbpm4/trunk/modules/test-db/jbpm4-test-db.iml
jbpm4/trunk/modules/userguide/userguide.iml
Log:
Fix BPMC-20: Parse error on process instance with two active nodes
Modified: jbpm4/trunk/modules/db/jbpm4-db.iml
===================================================================
--- jbpm4/trunk/modules/db/jbpm4-db.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/db/jbpm4-db.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -10,19 +10,11 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="pvm" />
+ <orderEntry type="module" module-name="toplevel" />
+ <orderEntry type="module" module-name="api" />
<orderEntry type="module" module-name="test-base" />
<orderEntry type="module" module-name="jpdl" />
- <orderEntry type="module" module-name="toplevel" />
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: junit:junit:jar:3.8.1:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: antlr:antlr:jar:2.7.6:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar!/" />
@@ -126,15 +118,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: net.sourceforge.jtds:jtds:jar:1.2.2:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/net/sourceforge/jtds/jtds/1.2.2/jtds-1.2.2.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: postgresql:postgresql:jar:8.3-603.jdbc3:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/postgresql/postgresql/8.3-603.jdbc3/postgresql-8.3-603.jdbc3.jar!/" />
@@ -289,7 +272,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
@@ -373,6 +358,17 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: junit:junit:jar:3.8.2:compile">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: jbpm4/trunk/modules/examples/jbpm4-examples.iml
===================================================================
--- jbpm4/trunk/modules/examples/jbpm4-examples.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/examples/jbpm4-examples.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -10,10 +10,10 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="pvm" exported="" />
- <orderEntry type="module" module-name="test-base" exported="" />
- <orderEntry type="module" module-name="jpdl" exported="" />
- <orderEntry type="module" module-name="toplevel" exported="" />
- <orderEntry type="module" module-name="report" exported="" />
+ <orderEntry type="module" module-name="toplevel" />
+ <orderEntry type="module" module-name="api" />
+ <orderEntry type="module" module-name="test-base" />
+ <orderEntry type="module" module-name="jpdl" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: jboss:jboss-j2ee:jar:4.2.2.GA:compile">
<CLASSES>
@@ -44,15 +44,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: junit:junit:jar:3.8.1:runtime">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: juel:juel-engine:jar:2.1.0:runtime">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/juel/juel-engine/2.1.0/juel-engine-2.1.0.jar!/" />
@@ -301,17 +292,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: commons-collections:commons-collections:jar:3.1:runtime">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.jar!/" />
- </SOURCES>
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: com.sun.xml.bind:jaxb-impl:jar:2.1.8:runtime">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.8/jaxb-impl-2.1.8.jar!/" />
@@ -339,26 +319,17 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: org.hibernate:hibernate-core:jar:3.3.1.GA:runtime">
+ <library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:runtime">
<CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-sources.jar!/" />
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:runtime">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.slf4j:slf4j-log4j12:jar:1.5.2:runtime">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar!/" />
@@ -368,15 +339,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: antlr:antlr:jar:2.7.6:runtime">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.identity.idm:idm-spi:jar:1.0.0.Beta1:runtime">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/jboss/identity/idm/idm-spi/1.0.0.Beta1/idm-spi-1.0.0.Beta1.jar!/" />
@@ -430,6 +392,48 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: antlr:antlr:jar:2.7.6:test">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: commons-collections:commons-collections:jar:3.1:test">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: junit:junit:jar:3.8.2:runtime">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: org.hibernate:hibernate-core:jar:3.3.1.GA:test">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: jbpm4/trunk/modules/integration/console/integration-console.iml
===================================================================
--- jbpm4/trunk/modules/integration/console/integration-console.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/integration/console/integration-console.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -10,9 +10,9 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="gwt-rpc" exported="" />
- <orderEntry type="module" module-name="test-base" exported="" />
- <orderEntry type="module" module-name="gwt-parent" exported="" />
- <orderEntry type="module" module-name="toplevel" exported="" />
+ <orderEntry type="module" module-name="toplevel" />
+ <orderEntry type="module" module-name="api" />
+ <orderEntry type="module" module-name="test-base" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: com.google.code.gson:gson:jar:1.2.2:provided">
<CLASSES>
@@ -37,7 +37,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
@@ -357,6 +359,28 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: org.jboss.bpm:gwt-console-server-integration:jar:1.1.2-SNAPSHOT:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-server-integration/1.1.2-SNAPSHOT/gwt-console-server-integration-1.1.2-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-server-integration/1.1.2-SNAPSHOT/gwt-console-server-integration-1.1.2-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: org.jboss.bpm:gwt-console-rpc:jar:1.1.2-SNAPSHOT:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-rpc/1.1.2-SNAPSHOT/gwt-console-rpc-1.1.2-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-rpc/1.1.2-SNAPSHOT/gwt-console-rpc-1.1.2-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java
===================================================================
--- jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/integration/console/src/main/java/org/jbpm/integration/console/ModelAdaptor.java 2009-09-15 11:05:07 UTC (rev 5641)
@@ -100,19 +100,24 @@
}
private static TokenReference execution2TokenReference(Execution execution) {
+ String executionId = execution.getId();
+
TokenReference tok = new TokenReference();
tok.setName(execution.getName());
- tok.setId(execution.getId());
-
- // Only if the set of current activitities has one element, we can
+ tok.setId(executionId);
+
+
+ // Only if the set of current activitities has one element, we can
// set the current node name (otherwise it's a parent execution)
Set<String> currentActivities = execution.findActiveActivityNames();
if (currentActivities.size() == 1) {
tok.setCurrentNodeName(currentActivities.iterator().next());
}
-
-
-
+ else
+ {
+ tok.setCurrentNodeName(executionId);
+ }
+
// transitions
List<String> availableSignals = new ArrayList<String>();
/* TODO: FIX THIS
Modified: jbpm4/trunk/modules/integration/form-plugin/form-plugin.iml
===================================================================
--- jbpm4/trunk/modules/integration/form-plugin/form-plugin.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/integration/form-plugin/form-plugin.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -9,11 +9,11 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module" module-name="toplevel" />
+ <orderEntry type="module" module-name="integration-spi" />
+ <orderEntry type="module" module-name="api" />
<orderEntry type="module" module-name="test-base" />
<orderEntry type="module" module-name="jpdl" />
- <orderEntry type="module" module-name="gwt-parent" />
- <orderEntry type="module" module-name="toplevel" />
- <orderEntry type="module" module-name="integration-spi" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: jboss:jboss-j2ee:jar:4.2.2.GA:provided">
<CLASSES>
@@ -281,7 +281,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
@@ -365,6 +367,28 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: org.jboss.bpm:gwt-console-server-integration:jar:1.1.2-SNAPSHOT:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-server-integration/1.1.2-SNAPSHOT/gwt-console-server-integration-1.1.2-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-server-integration/1.1.2-SNAPSHOT/gwt-console-server-integration-1.1.2-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: org.jboss.bpm:gwt-console-rpc:jar:1.1.2-SNAPSHOT:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-rpc/1.1.2-SNAPSHOT/gwt-console-rpc-1.1.2-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-rpc/1.1.2-SNAPSHOT/gwt-console-rpc-1.1.2-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: jbpm4/trunk/modules/integration/graphView-plugin/graphView-plugin.iml
===================================================================
--- jbpm4/trunk/modules/integration/graphView-plugin/graphView-plugin.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/integration/graphView-plugin/graphView-plugin.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -9,22 +9,24 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="module" module-name="gwt-rpc" />
- <orderEntry type="module" module-name="test-base" />
- <orderEntry type="module" module-name="jpdl" />
- <orderEntry type="module" module-name="gwt-parent" />
- <orderEntry type="module" module-name="toplevel" />
- <orderEntry type="module" module-name="integration-spi" />
- <orderEntry type="module-library">
+ <orderEntry type="module" module-name="gwt-rpc" exported="" />
+ <orderEntry type="module" module-name="toplevel" exported="" />
+ <orderEntry type="module" module-name="integration-spi" exported="" />
+ <orderEntry type="module" module-name="api" exported="" />
+ <orderEntry type="module" module-name="test-base" exported="" />
+ <orderEntry type="module" module-name="jpdl" exported="" />
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.apache.ant:ant:jar:1.7.0:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar!/" />
@@ -33,7 +35,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: junit:junit:jar:3.8.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar!/" />
@@ -42,7 +44,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: javax.transaction:jta:jar:1.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar!/" />
@@ -53,7 +55,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.slf4j:slf4j-log4j12:jar:1.5.2:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar!/" />
@@ -62,7 +64,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: javax.xml.stream:stax-api:jar:1.0-2:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar!/" />
@@ -71,7 +73,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: juel:juel-engine:jar:2.1.0:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/juel/juel-engine/2.1.0/juel-engine-2.1.0.jar!/" />
@@ -80,7 +82,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: antlr:antlr:jar:2.7.6:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar!/" />
@@ -89,7 +91,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: commons-collections:commons-collections:jar:3.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar!/" />
@@ -100,7 +102,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: javassist:javassist:jar:3.4.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javassist/javassist/3.4.GA/javassist-3.4.GA.jar!/" />
@@ -109,7 +111,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.hibernate:hibernate-entitymanager:jar:3.4.0.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar!/" />
@@ -120,7 +122,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: juel:juel:jar:2.1.0:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/juel/juel/2.1.0/juel-2.1.0.jar!/" />
@@ -129,7 +131,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: javax.activation:activation:jar:1.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
@@ -140,7 +142,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: hsqldb:hsqldb:jar:1.8.0.7:test">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar!/" />
@@ -149,7 +151,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: jboss:jboss-j2ee:jar:4.2.2.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/jboss/jboss-j2ee/4.2.2.GA/jboss-j2ee-4.2.2.GA.jar!/" />
@@ -158,7 +160,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: com.sun.xml.bind:jaxb-impl:jar:2.1.8:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.8/jaxb-impl-2.1.8.jar!/" />
@@ -167,7 +169,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.slf4j:slf4j-jdk14:jar:1.5.2:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/slf4j/slf4j-jdk14/1.5.2/slf4j-jdk14-1.5.2.jar!/" />
@@ -176,7 +178,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.hibernate:ejb3-persistence:jar:1.0.2.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar!/" />
@@ -187,7 +189,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: juel:juel-impl:jar:2.1.0:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/juel/juel-impl/2.1.0/juel-impl-2.1.0.jar!/" />
@@ -196,7 +198,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.livetribe:livetribe-jsr223:jar:2.0.5:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/livetribe/livetribe-jsr223/2.0.5/livetribe-jsr223-2.0.5.jar!/" />
@@ -205,7 +207,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.slf4j:slf4j-api:jar:1.5.2:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2.jar!/" />
@@ -214,7 +216,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: dom4j:dom4j:jar:1.6.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar!/" />
@@ -225,7 +227,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.hibernate:hibernate-cglib-repack:jar:2.1_3:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.jar!/" />
@@ -234,7 +236,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.hibernate:hibernate-commons-annotations:jar:3.1.0.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar!/" />
@@ -245,7 +247,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: com.google.code.gson:gson:jar:1.2.2:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/com/google/code/gson/gson/1.2.2/gson-1.2.2.jar!/" />
@@ -254,7 +256,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: xml-apis:xml-apis:jar:1.0.b2:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar!/" />
@@ -263,7 +265,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.hibernate:hibernate-core:jar:3.3.1.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar!/" />
@@ -274,7 +276,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: javax.mail:mail:jar:1.4.1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/" />
@@ -283,7 +285,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: log4j:log4j:jar:1.2.14:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar!/" />
@@ -294,7 +296,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.apache.ant:ant-launcher:jar:1.7.0:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar!/" />
@@ -303,7 +305,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.hibernate:hibernate-annotations:jar:3.4.0.GA:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar!/" />
@@ -314,7 +316,7 @@
</SOURCES>
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.identity.idm:idm-spi:jar:1.0.0.Beta1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/identity/idm/idm-spi/1.0.0.Beta1/idm-spi-1.0.0.Beta1.jar!/" />
@@ -323,7 +325,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.identity.idm:idm-hibernate:jar:1.0.0.Beta1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/identity/idm/idm-hibernate/1.0.0.Beta1/idm-hibernate-1.0.0.Beta1.jar!/" />
@@ -332,7 +334,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.identity.idm:idm-common:jar:1.0.0.Beta1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/identity/idm/idm-common/1.0.0.Beta1/idm-common-1.0.0.Beta1.jar!/" />
@@ -341,7 +343,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.identity.idm:idm-api:jar:1.0.0.Beta1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/identity/idm/idm-api/1.0.0.Beta1/idm-api-1.0.0.Beta1.jar!/" />
@@ -350,7 +352,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module-library">
+ <orderEntry type="module-library" exported="">
<library name="M2 Dep: org.jboss.identity.idm:idm-core:jar:1.0.0.Beta1:provided">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/identity/idm/idm-core/1.0.0.Beta1/idm-core-1.0.0.Beta1.jar!/" />
@@ -359,6 +361,28 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep: org.jboss.bpm:gwt-console-server-integration:jar:1.1.2-SNAPSHOT:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-server-integration/1.1.2-SNAPSHOT/gwt-console-server-integration-1.1.2-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-server-integration/1.1.2-SNAPSHOT/gwt-console-server-integration-1.1.2-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep: org.jboss.bpm:gwt-console-rpc:jar:1.1.2-SNAPSHOT:provided">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-rpc/1.1.2-SNAPSHOT/gwt-console-rpc-1.1.2-SNAPSHOT.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/org/jboss/bpm/gwt-console-rpc/1.1.2-SNAPSHOT/gwt-console-rpc-1.1.2-SNAPSHOT-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: jbpm4/trunk/modules/integration/jboss4/integration-jboss4.iml
===================================================================
--- jbpm4/trunk/modules/integration/jboss4/integration-jboss4.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/integration/jboss4/integration-jboss4.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -11,10 +11,11 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="pvm" exported="" />
<orderEntry type="module" module-name="integration" exported="" />
+ <orderEntry type="module" module-name="toplevel" />
+ <orderEntry type="module" module-name="integration-spi" />
+ <orderEntry type="module" module-name="api" />
<orderEntry type="module" module-name="test-base" />
<orderEntry type="module" module-name="jpdl" />
- <orderEntry type="module" module-name="toplevel" />
- <orderEntry type="module" module-name="integration-spi" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: oswego-concurrent:concurrent:jar:1.3.4-jboss-update1:provided">
<CLASSES>
@@ -1068,7 +1069,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
Modified: jbpm4/trunk/modules/integration/spi/integration-spi.iml
===================================================================
--- jbpm4/trunk/modules/integration/spi/integration-spi.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/integration/spi/integration-spi.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -9,9 +9,10 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module" module-name="toplevel" exported="" />
+ <orderEntry type="module" module-name="api" exported="" />
<orderEntry type="module" module-name="test-base" exported="" />
<orderEntry type="module" module-name="jpdl" exported="" />
- <orderEntry type="module" module-name="toplevel" exported="" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: hsqldb:hsqldb:jar:1.8.0.7:test">
<CLASSES>
@@ -27,7 +28,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
Modified: jbpm4/trunk/modules/test-base/test-base.iml
===================================================================
--- jbpm4/trunk/modules/test-base/test-base.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/test-base/test-base.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -9,16 +9,8 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="toplevel" exported="" />
+ <orderEntry type="module" module-name="api" exported="" />
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: junit:junit:jar:3.8.1:compile">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: dom4j:dom4j:jar:1.6.1:compile">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar!/" />
@@ -183,6 +175,17 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep: junit:junit:jar:3.8.2:compile">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: jbpm4/trunk/modules/test-db/jbpm4-test-db.iml
===================================================================
--- jbpm4/trunk/modules/test-db/jbpm4-test-db.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/test-db/jbpm4-test-db.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -10,10 +10,10 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="pvm" exported="" />
+ <orderEntry type="module" module-name="toplevel" />
+ <orderEntry type="module" module-name="api" />
<orderEntry type="module" module-name="test-base" />
<orderEntry type="module" module-name="jpdl" />
- <orderEntry type="module" module-name="toplevel" />
- <orderEntry type="module" module-name="report" />
<orderEntry type="module-library" exported="">
<library name="M2 Dep: jboss:jboss-j2ee:jar:4.2.2.GA:compile">
<CLASSES>
@@ -44,15 +44,6 @@
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
- <library name="M2 Dep: junit:junit:jar:3.8.1:runtime">
- <CLASSES>
- <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- <orderEntry type="module-library" exported="">
<library name="M2 Dep: juel:juel-engine:jar:2.1.0:runtime">
<CLASSES>
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/juel/juel-engine/2.1.0/juel-engine-2.1.0.jar!/" />
@@ -232,7 +223,9 @@
<root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
</CLASSES>
<JAVADOC />
- <SOURCES />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1-sources.jar!/" />
+ </SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library" exported="">
@@ -392,6 +385,17 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: junit:junit:jar:3.8.2:runtime">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2-sources.jar!/" />
+ </SOURCES>
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: jbpm4/trunk/modules/userguide/userguide.iml
===================================================================
--- jbpm4/trunk/modules/userguide/userguide.iml 2009-09-15 08:37:38 UTC (rev 5640)
+++ jbpm4/trunk/modules/userguide/userguide.iml 2009-09-15 11:05:07 UTC (rev 5641)
@@ -6,6 +6,15 @@
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library">
+ <library name="M2 Dep: hsqldb:hsqldb:jar:1.8.0.7:test">
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
14 years, 7 months
JBoss JBPM SVN: r5640 - in jbpm3/branches/jbpm-3.2-soa/modules: core/src/main/java/org/jbpm/svc and 1 other directories.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-09-15 04:37:38 -0400 (Tue, 15 Sep 2009)
New Revision: 5640
Added:
jbpm3/branches/jbpm-3.2-soa/modules/enterprise/src/main/java/org/jbpm/ejb/impl/ExecuteJobsCommand.java
Modified:
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/JobSession.java
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/svc/Services.java
Log:
SOA-1486 re-adding interface methods that were removed
Modified: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/JobSession.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/JobSession.java 2009-09-14 20:26:29 UTC (rev 5639)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/JobSession.java 2009-09-15 08:37:38 UTC (rev 5640)
@@ -30,7 +30,7 @@
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.Session;
-
+import org.hibernate.criterion.Restrictions;
import org.jbpm.graph.exe.ProcessInstance;
import org.jbpm.graph.exe.Token;
import org.jbpm.job.Job;
@@ -251,4 +251,14 @@
}
}
+ public List loadJobs(long[] jobIds) {
+ int jobCount = jobIds.length;
+ Long[] jobs = new Long[jobCount];
+ for (int i = 0; i < jobCount; i++) {
+ jobs[i] = new Long(jobIds[i]);
+ }
+ return session.createCriteria(Job.class)
+ .add(Restrictions.in("id", jobs))
+ .list();
+ }
}
Modified: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/svc/Services.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/svc/Services.java 2009-09-14 20:26:29 UTC (rev 5639)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/svc/Services.java 2009-09-15 08:37:38 UTC (rev 5640)
@@ -31,11 +31,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-
import org.jbpm.JbpmContext;
import org.jbpm.graph.exe.ProcessInstance;
import org.jbpm.logging.LoggingService;
import org.jbpm.msg.MessageService;
+import org.jbpm.persistence.JbpmPersistenceException;
import org.jbpm.persistence.PersistenceService;
import org.jbpm.persistence.db.DbPersistenceService;
import org.jbpm.persistence.db.StaleObjectLogConfigurer;
@@ -265,6 +265,10 @@
if (firstException != null) throw firstException;
}
+
+ public static boolean isCausedByStaleState(JbpmPersistenceException persistenceException) {
+ return DbPersistenceService.isLockingException(persistenceException);
+ }
public static void assignId(Object object) {
JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
Added: jbpm3/branches/jbpm-3.2-soa/modules/enterprise/src/main/java/org/jbpm/ejb/impl/ExecuteJobsCommand.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/enterprise/src/main/java/org/jbpm/ejb/impl/ExecuteJobsCommand.java (rev 0)
+++ jbpm3/branches/jbpm-3.2-soa/modules/enterprise/src/main/java/org/jbpm/ejb/impl/ExecuteJobsCommand.java 2009-09-15 08:37:38 UTC (rev 5640)
@@ -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.jbpm.ejb.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jbpm.JbpmContext;
+import org.jbpm.command.Command;
+import org.jbpm.util.ArrayUtil;
+
+/**
+ * Batch job processing command.
+ *
+ * @author Alejandro Guizar
+ */
+public class ExecuteJobsCommand implements Command {
+
+ private long[] jobIds;
+
+ private static final long serialVersionUID = 1L;
+ private static Log log = LogFactory.getLog(ExecuteJobsCommand.class);
+
+ public ExecuteJobsCommand(long[] jobIds) {
+ this.jobIds = jobIds;
+ }
+
+ public Object execute(JbpmContext jbpmContext) throws Exception {
+ log.debug("executing jobs " + ArrayUtil.toString(jobIds));
+ if (jobIds!=null) {
+ for (int jobId=0; jobId<jobIds.length; jobId++) {
+ ExecuteJobCommand executeJobCommand = new ExecuteJobCommand(jobId);
+ executeJobCommand.execute(jbpmContext);
+ }
+ }
+ return null;
+ }
+}
Property changes on: jbpm3/branches/jbpm-3.2-soa/modules/enterprise/src/main/java/org/jbpm/ejb/impl/ExecuteJobsCommand.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 7 months
JBoss JBPM SVN: r5639 - projects/zync/src.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-09-14 16:26:29 -0400 (Mon, 14 Sep 2009)
New Revision: 5639
Modified:
projects/zync/src/Zync.java
Log:
updates :-)
Modified: projects/zync/src/Zync.java
===================================================================
--- projects/zync/src/Zync.java 2009-09-14 19:44:39 UTC (rev 5638)
+++ projects/zync/src/Zync.java 2009-09-14 20:26:29 UTC (rev 5639)
@@ -90,100 +90,6 @@
log("done.");
}
- static void saveLocalFileNames() {
- String zyncPreviousFileNamesPath = System.getProperty("user.home")+"/.zync/previous.filenames.txt";
- try {
- FileOutputStream outputStream = new FileOutputStream(zyncPreviousFileNamesPath, false);
- OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
- PrintWriter writer = new PrintWriter(outputStreamWriter);
- try {
- for (String localFileName: localFileNames) {
- writer.println(localFileName);
- }
- } finally {
- writer.close();
- outputStreamWriter.close();
- outputStream.close();
- }
- } catch (Exception e) {
- throw new RuntimeException("problem writing "+zyncPreviousFileNamesPath+": "+e.getMessage());
- }
- }
-
- static void loadPreviousLocalFileNames() {
- String zyncPreviousFileNamesPath = System.getProperty("user.home")+"/.zync/previous.filenames.txt";
- File file = new File(zyncPreviousFileNamesPath);
- if (file.exists()) {
- try {
- InputStream inputStream = new FileInputStream(file);
- InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
- BufferedReader reader = new BufferedReader(inputStreamReader);
- try {
- String line;
- while ((line=reader.readLine())!=null) {
- previousLocalFileNames.add(line);
- }
- } finally {
- inputStream.close();
- }
- } catch (Exception e) {
- throw new RuntimeException("problem reading "+zyncPreviousFileNamesPath+": "+e.getMessage());
- }
- }
- }
-
- private static void loadConfiguration() {
- String zyncCfgPath = System.getProperty("user.home")+"/.zync/zync.properties";
- File file = new File(zyncCfgPath);
- if (!file.exists()) {
- throw new RuntimeException("zync config file "+zyncCfgPath+" does not exist");
- }
-
- Properties properties = new Properties();
- try {
- FileInputStream inputStream = new FileInputStream(file);
- properties.load(inputStream);
- } catch (Exception e) {
- throw new RuntimeException("couldn't load zync config file "+zyncCfgPath+": "+e.getMessage(), e);
- }
-
- ftpServer = properties.getProperty("ftp.server");
- ftpUsername = properties.getProperty("ftp.username");
- ftpPassword = properties.getProperty("ftp.password");
- ftpDirectory = properties.getProperty("ftp.directory");
- localDirectory = properties.getProperty("local.directory");
- }
-
- static void connect() throws Exception {
- int reply;
- log("Connecting to " + ftpServer + "...");
- ftpClient.connect(ftpServer);
- ftpClient.login(ftpUsername, ftpPassword);
- ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
- log("Connected to " + ftpServer + ".");
- log(ftpClient.getReplyString());
-
- // After connection attempt, you should check the reply code to verify
- // success.
- reply = ftpClient.getReplyCode();
-
- if(!FTPReply.isPositiveCompletion(reply)) {
- ftpClient.disconnect();
- System.err.println("FTP server refused connection.");
- return;
- }
- }
-
- static void disconnect() {
- if(ftpClient.isConnected()) {
- try {
- ftpClient.disconnect();
- } catch(IOException ioe) {
- // do nothing
- }
- }
- }
-
static void syncDirectory(String directory) {
try {
log("syncing directory "+directory);
@@ -213,9 +119,9 @@
String remoteDir = ftpDirectory+"/"+directory;
- //ftpClient.mkd(remoteDir);
+ ftpClient.makeDirectory(remoteDir);
FTPFile[] ftpFilesArray = ftpClient.listFiles(remoteDir);
- log("scanning remote directory " + directory);
+ log("scanning remote directory " + remoteDir);
Map<String, FTPFile> ftpFiles = new HashMap<String, FTPFile>();
if (ftpFilesArray!=null) {
for (FTPFile ftpFile: ftpFilesArray) {
@@ -241,7 +147,6 @@
localTimestamp.set(Calendar.MILLISECOND, 0);
if (ftpFile==null) {
- log("remote file "+localFileName+" does not exist.");
uploadFile(localFile, directory);
} else if (isBefore(localTimestamp, ftpFile.getTimestamp())) {
log("local file "+localFileName+" is newest");
@@ -268,7 +173,7 @@
}
for (String subDirectory: subDirectories) {
- syncDirectory( getRemoteFileName(directory, subDirectory) );
+ syncDirectory( "".equals(directory) ? subDirectory : directory+"/"+subDirectory );
}
} catch (Exception e) {
@@ -326,6 +231,100 @@
return first.getTimeInMillis()<second.getTimeInMillis();
}
+ static void saveLocalFileNames() {
+ String zyncPreviousFileNamesPath = System.getProperty("user.home")+"/.zync/previous.filenames.txt";
+ try {
+ FileOutputStream outputStream = new FileOutputStream(zyncPreviousFileNamesPath, false);
+ OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
+ PrintWriter writer = new PrintWriter(outputStreamWriter);
+ try {
+ for (String localFileName: localFileNames) {
+ writer.println(localFileName);
+ }
+ } finally {
+ writer.close();
+ outputStreamWriter.close();
+ outputStream.close();
+ }
+ } catch (Exception e) {
+ throw new RuntimeException("problem writing "+zyncPreviousFileNamesPath+": "+e.getMessage());
+ }
+ }
+
+ static void loadPreviousLocalFileNames() {
+ String zyncPreviousFileNamesPath = System.getProperty("user.home")+"/.zync/previous.filenames.txt";
+ File file = new File(zyncPreviousFileNamesPath);
+ if (file.exists()) {
+ try {
+ InputStream inputStream = new FileInputStream(file);
+ InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
+ BufferedReader reader = new BufferedReader(inputStreamReader);
+ try {
+ String line;
+ while ((line=reader.readLine())!=null) {
+ previousLocalFileNames.add(line);
+ }
+ } finally {
+ inputStream.close();
+ }
+ } catch (Exception e) {
+ throw new RuntimeException("problem reading "+zyncPreviousFileNamesPath+": "+e.getMessage());
+ }
+ }
+ }
+
+ private static void loadConfiguration() {
+ String zyncCfgPath = System.getProperty("user.home")+"/.zync/zync.properties";
+ File file = new File(zyncCfgPath);
+ if (!file.exists()) {
+ throw new RuntimeException("zync config file "+zyncCfgPath+" does not exist");
+ }
+
+ Properties properties = new Properties();
+ try {
+ FileInputStream inputStream = new FileInputStream(file);
+ properties.load(inputStream);
+ } catch (Exception e) {
+ throw new RuntimeException("couldn't load zync config file "+zyncCfgPath+": "+e.getMessage(), e);
+ }
+
+ ftpServer = properties.getProperty("ftp.server");
+ ftpUsername = properties.getProperty("ftp.username");
+ ftpPassword = properties.getProperty("ftp.password");
+ ftpDirectory = properties.getProperty("ftp.directory");
+ localDirectory = properties.getProperty("local.directory");
+ }
+
+ static void connect() throws Exception {
+ int reply;
+ log("Connecting to " + ftpServer + "...");
+ ftpClient.connect(ftpServer);
+ ftpClient.login(ftpUsername, ftpPassword);
+ ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
+ log("Connected to " + ftpServer + ".");
+ log(ftpClient.getReplyString());
+
+ // After connection attempt, you should check the reply code to verify
+ // success.
+ reply = ftpClient.getReplyCode();
+
+ if(!FTPReply.isPositiveCompletion(reply)) {
+ ftpClient.disconnect();
+ System.err.println("FTP server refused connection.");
+ return;
+ }
+ }
+
+ static void disconnect() {
+ if(ftpClient.isConnected()) {
+ try {
+ ftpClient.disconnect();
+ } catch(IOException ioe) {
+ // do nothing
+ }
+ }
+ }
+
static void log(String msg) {
System.out.println(msg);
}
14 years, 7 months
JBoss JBPM SVN: r5638 - in projects/zync: lib and 1 other directories.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-09-14 15:44:39 -0400 (Mon, 14 Sep 2009)
New Revision: 5638
Added:
projects/zync/.classpath
projects/zync/.project
projects/zync/lib/
projects/zync/lib/commons-net-2.0.jar
projects/zync/src/
projects/zync/src/Zync.java
Log:
initial import
Added: projects/zync/.classpath
===================================================================
--- projects/zync/.classpath (rev 0)
+++ projects/zync/.classpath 2009-09-14 19:44:39 UTC (rev 5638)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="lib/commons-net-2.0.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: projects/zync/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: projects/zync/.project
===================================================================
--- projects/zync/.project (rev 0)
+++ projects/zync/.project 2009-09-14 19:44:39 UTC (rev 5638)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>zync</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: projects/zync/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: projects/zync/lib/commons-net-2.0.jar
===================================================================
(Binary files differ)
Property changes on: projects/zync/lib/commons-net-2.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/zync/src/Zync.java
===================================================================
--- projects/zync/src/Zync.java (rev 0)
+++ projects/zync/src/Zync.java 2009-09-14 19:44:39 UTC (rev 5638)
@@ -0,0 +1,332 @@
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+
+import org.apache.commons.net.ftp.FTP;
+import org.apache.commons.net.ftp.FTPClient;
+import org.apache.commons.net.ftp.FTPFile;
+import org.apache.commons.net.ftp.FTPReply;
+
+
+/*
+ * 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.
+ */
+
+/**
+ * @author Tom Baeyens
+ */
+public class Zync {
+
+ static FTPClient ftpClient = new FTPClient();
+
+ static List<String> textExtensions = new ArrayList<String>();
+ {
+ textExtensions.add("txt");
+ textExtensions.add("html");
+ textExtensions.add("css");
+ textExtensions.add("xml");
+ textExtensions.add("java");
+ }
+
+ static String ftpServer;
+ static String ftpUsername;
+ static String ftpPassword;
+ static String ftpDirectory;
+ static String localDirectory;
+ static List<String> localFileNames = new ArrayList<String>();
+ static List<String> previousLocalFileNames = new ArrayList<String>();
+
+ public static void main(String[] args) {
+ loadConfiguration();
+ loadPreviousLocalFileNames();
+
+ try {
+ connect();
+
+ syncDirectory("");
+
+ } catch(Exception e) {
+ log(e.getMessage());
+
+ } finally {
+ disconnect();
+ }
+
+ saveLocalFileNames();
+
+ log("done.");
+ }
+
+ static void saveLocalFileNames() {
+ String zyncPreviousFileNamesPath = System.getProperty("user.home")+"/.zync/previous.filenames.txt";
+ try {
+ FileOutputStream outputStream = new FileOutputStream(zyncPreviousFileNamesPath, false);
+ OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);
+ PrintWriter writer = new PrintWriter(outputStreamWriter);
+ try {
+ for (String localFileName: localFileNames) {
+ writer.println(localFileName);
+ }
+ } finally {
+ writer.close();
+ outputStreamWriter.close();
+ outputStream.close();
+ }
+ } catch (Exception e) {
+ throw new RuntimeException("problem writing "+zyncPreviousFileNamesPath+": "+e.getMessage());
+ }
+ }
+
+ static void loadPreviousLocalFileNames() {
+ String zyncPreviousFileNamesPath = System.getProperty("user.home")+"/.zync/previous.filenames.txt";
+ File file = new File(zyncPreviousFileNamesPath);
+ if (file.exists()) {
+ try {
+ InputStream inputStream = new FileInputStream(file);
+ InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
+ BufferedReader reader = new BufferedReader(inputStreamReader);
+ try {
+ String line;
+ while ((line=reader.readLine())!=null) {
+ previousLocalFileNames.add(line);
+ }
+ } finally {
+ inputStream.close();
+ }
+ } catch (Exception e) {
+ throw new RuntimeException("problem reading "+zyncPreviousFileNamesPath+": "+e.getMessage());
+ }
+ }
+ }
+
+ private static void loadConfiguration() {
+ String zyncCfgPath = System.getProperty("user.home")+"/.zync/zync.properties";
+ File file = new File(zyncCfgPath);
+ if (!file.exists()) {
+ throw new RuntimeException("zync config file "+zyncCfgPath+" does not exist");
+ }
+
+ Properties properties = new Properties();
+ try {
+ FileInputStream inputStream = new FileInputStream(file);
+ properties.load(inputStream);
+ } catch (Exception e) {
+ throw new RuntimeException("couldn't load zync config file "+zyncCfgPath+": "+e.getMessage(), e);
+ }
+
+ ftpServer = properties.getProperty("ftp.server");
+ ftpUsername = properties.getProperty("ftp.username");
+ ftpPassword = properties.getProperty("ftp.password");
+ ftpDirectory = properties.getProperty("ftp.directory");
+ localDirectory = properties.getProperty("local.directory");
+ }
+
+ static void connect() throws Exception {
+ int reply;
+ log("Connecting to " + ftpServer + "...");
+ ftpClient.connect(ftpServer);
+ ftpClient.login(ftpUsername, ftpPassword);
+ ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
+ log("Connected to " + ftpServer + ".");
+ log(ftpClient.getReplyString());
+
+ // After connection attempt, you should check the reply code to verify
+ // success.
+ reply = ftpClient.getReplyCode();
+
+ if(!FTPReply.isPositiveCompletion(reply)) {
+ ftpClient.disconnect();
+ System.err.println("FTP server refused connection.");
+ return;
+ }
+ }
+
+ static void disconnect() {
+ if(ftpClient.isConnected()) {
+ try {
+ ftpClient.disconnect();
+ } catch(IOException ioe) {
+ // do nothing
+ }
+ }
+ }
+
+ static void syncDirectory(String directory) {
+ try {
+ log("syncing directory "+directory);
+
+ Set<String> subDirectories = new HashSet<String>();
+
+ Map<String, File> localFiles = new HashMap<String, File>();
+ String localDirectoryPathname = ("".equals(directory) ? localDirectory : localDirectory+"/"+directory);
+ log("scanning local directory "+localDirectoryPathname);
+ File localDirFile = new File(localDirectoryPathname);
+ if (!localDirFile.exists()) {
+ log("creating local directory "+localDirectoryPathname);
+ localDirFile.mkdirs();
+ }
+ File[] directoryFiles = localDirFile.listFiles();
+ if (directoryFiles!=null) {
+ for (File directoryFile: directoryFiles) {
+ String fileName = directoryFile.getName();
+ if (directoryFile.isFile()) {
+ localFiles.put(fileName, directoryFile);
+ localFileNames.add(directory+"/"+fileName);
+ } else if (directoryFile.isDirectory()) {
+ subDirectories.add(fileName);
+ }
+ }
+ }
+
+
+ String remoteDir = ftpDirectory+"/"+directory;
+ //ftpClient.mkd(remoteDir);
+ FTPFile[] ftpFilesArray = ftpClient.listFiles(remoteDir);
+ log("scanning remote directory " + directory);
+ Map<String, FTPFile> ftpFiles = new HashMap<String, FTPFile>();
+ if (ftpFilesArray!=null) {
+ for (FTPFile ftpFile: ftpFilesArray) {
+ String ftpFileName = ftpFile.getName();
+ if (ftpFile.isFile()) {
+ ftpFiles.put(ftpFileName, ftpFile);
+ } else if ( ftpFile.isDirectory()
+ && !".".equals(ftpFileName)
+ && !"..".equals(ftpFileName)
+ ) {
+ subDirectories.add(ftpFileName);
+ }
+ }
+ }
+
+ for (String localFileName: localFiles.keySet()) {
+ File localFile = localFiles.get(localFileName);
+ FTPFile ftpFile = ftpFiles.get(localFileName);
+
+ Calendar localTimestamp = new GregorianCalendar();
+ localTimestamp.setTimeInMillis(localFile.lastModified());
+ localTimestamp.set(Calendar.SECOND, 0);
+ localTimestamp.set(Calendar.MILLISECOND, 0);
+
+ if (ftpFile==null) {
+ log("remote file "+localFileName+" does not exist.");
+ uploadFile(localFile, directory);
+ } else if (isBefore(localTimestamp, ftpFile.getTimestamp())) {
+ log("local file "+localFileName+" is newest");
+ } else if (isBefore(ftpFile.getTimestamp(), localTimestamp)) {
+ log("remote file "+localFileName+" is newest");
+ } else if (localFile.length() != ftpFile.getSize()) {
+ log("warning: files of same date have different size "+localFileName+" local:"+localFile.length()+" remote:"+ftpFile.getSize());
+ } else {
+ log("file "+localFileName+" is in sync");
+ }
+ }
+
+ for (String ftpFileName: ftpFiles.keySet()) {
+ FTPFile ftpFile = ftpFiles.get(ftpFileName);
+ File localFile = localFiles.get(ftpFileName);
+
+ if (localFile==null) {
+ if (previousLocalFileNames.contains(directory+"/"+ftpFileName)) {
+ log("file "+ftpFileName+" was removed locally");
+ } else {
+ log("local file "+ftpFileName+" does not exist");
+ }
+ }
+ }
+
+ for (String subDirectory: subDirectories) {
+ syncDirectory( getRemoteFileName(directory, subDirectory) );
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ static void uploadFile(File localFile, String directory) throws Exception {
+ String localFileName = localFile.getName();
+ String remoteFileName = getRemoteFileName(directory, localFileName);
+ FileInputStream localFileStream = new FileInputStream(localFile);
+ boolean isTextFile = isTextFile(localFileName);
+ if (isTextFile) {
+ ftpClient.setFileType(FTP.ASCII_FILE_TYPE);
+ }
+ try {
+ log("uploading "+localFileName+" --> "+remoteFileName);
+ ftpClient.storeFile(remoteFileName, localFileStream);
+ int reply = ftpClient.getReplyCode();
+ if (FTPReply.isPositiveCompletion(reply)) {
+ log("file upload successfull");
+ } else {
+ log("file upload failed: "+reply);
+ }
+ } finally {
+ if (isTextFile) {
+ ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
+ }
+ }
+ }
+
+ private static String getRemoteFileName(String directory, String fileName) {
+ String remoteFileName = ftpDirectory;
+ if (!"".equals(ftpDirectory)) {
+ remoteFileName += "/";
+ }
+ remoteFileName += directory;
+ if (!"".equals(directory)){
+ remoteFileName += "/";
+ }
+ remoteFileName += fileName;
+ return remoteFileName;
+ }
+
+ private static boolean isTextFile(String fileName) {
+ int lastDotIndex = fileName.lastIndexOf('.');
+ if ( (lastDotIndex==-1) && (fileName.length()>=lastDotIndex+1) ) {
+ return false;
+ }
+ String extension = fileName.substring(lastDotIndex+1);
+ return textExtensions.contains(extension);
+ }
+
+ static boolean isBefore(Calendar first, Calendar second) {
+ return first.getTimeInMillis()<second.getTimeInMillis();
+ }
+
+ static void log(String msg) {
+ System.out.println(msg);
+ }
+}
Property changes on: projects/zync/src/Zync.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 7 months
JBoss JBPM SVN: r5636 - jbpm4/trunk/modules/pvm/src/main/resources.
by do-not-reply@jboss.org
Author: jbarrez
Date: 2009-09-14 10:34:10 -0400 (Mon, 14 Sep 2009)
New Revision: 5636
Modified:
jbpm4/trunk/modules/pvm/src/main/resources/jbpm.execution.hbm.xml
Log:
Added eager fetching of ProcessInstance and parent execution to the Execution hbm mapping. This is required since these objects are accessible through the API.
Modified: jbpm4/trunk/modules/pvm/src/main/resources/jbpm.execution.hbm.xml
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/resources/jbpm.execution.hbm.xml 2009-09-14 14:33:18 UTC (rev 5635)
+++ jbpm4/trunk/modules/pvm/src/main/resources/jbpm.execution.hbm.xml 2009-09-14 14:34:10 UTC (rev 5636)
@@ -18,7 +18,7 @@
<param name="org.jbpm.pvm.internal.type.converter.ShortToLongConverter" >short-long</param>
</typedef>
- <!-- ### PROCESS DEFINITION ############################################# -->
+ <!-- ### EXECUTION ############################################# -->
<class name="ExecutionImpl"
table="JBPM4_EXECUTION"
discriminator-value="pvm">
@@ -81,13 +81,15 @@
column="PARENT_"
class="ExecutionImpl"
foreign-key="FK_EXEC_PARENT"
- index="IDX_EXEC_PARENT" />
+ index="IDX_EXEC_PARENT"
+ lazy="false" />
<many-to-one name="processInstance"
class="ExecutionImpl"
column="INSTANCE_"
foreign-key="FK_EXEC_INSTANCE"
- index="IDX_EXEC_INSTANCE" />
+ index="IDX_EXEC_INSTANCE"
+ lazy="false" />
<many-to-one name="superProcessExecution"
column="SUPEREXEC_"
14 years, 7 months
JBoss JBPM SVN: r5635 - jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model.
by do-not-reply@jboss.org
Author: jbarrez
Date: 2009-09-14 10:33:18 -0400 (Mon, 14 Sep 2009)
New Revision: 5635
Modified:
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ScopeInstanceImpl.java
Log:
Fix for JBPM-2513
Modified: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ScopeInstanceImpl.java
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ScopeInstanceImpl.java 2009-09-14 13:06:24 UTC (rev 5634)
+++ jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/model/ScopeInstanceImpl.java 2009-09-14 14:33:18 UTC (rev 5635)
@@ -136,11 +136,12 @@
variable.setTask(getTask());
variable.setHistoryEnabled(isHistoryEnabled);
+ variable.setValue(value);
+
if (isHistoryEnabled) {
HistoryEvent.fire(new VariableCreate(variable));
}
- variable.setValue(value);
return variable;
}
14 years, 7 months
JBoss JBPM SVN: r5634 - jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/execution.
by do-not-reply@jboss.org
Author: jbarrez
Date: 2009-09-14 09:06:24 -0400 (Mon, 14 Sep 2009)
New Revision: 5634
Added:
jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/execution/ExecutionExpressionTest.java
Log:
Test case for JBPM-2494
Added: jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/execution/ExecutionExpressionTest.java
===================================================================
--- jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/execution/ExecutionExpressionTest.java (rev 0)
+++ jbpm4/trunk/modules/test-db/src/test/java/org/jbpm/test/execution/ExecutionExpressionTest.java 2009-09-14 13:06:24 UTC (rev 5634)
@@ -0,0 +1,91 @@
+/*
+ * 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.test.execution;
+
+import org.jbpm.api.Execution;
+import org.jbpm.test.JbpmTestCase;
+
+
+/**
+ * @author Joram Barrez
+ */
+public class ExecutionExpressionTest extends JbpmTestCase {
+
+ public ExecutionExpressionTest() { }
+
+ public void testProcessInstanceExpression() {
+
+ deployJpdlXmlString(
+ "<process name='p'>" +
+ " <start>" +
+ " <transition to='java_activity' />" +
+ " </start>" +
+ " <java name='java_activity' " +
+ " class='" + this.getClass().getName() + "' " +
+ " method='assertIsExecution'>" +
+ " <arg>" +
+ " <object expr='#{execution.processInstance}' />" +
+ " </arg>" +
+ " <transition to='theEnd' />" +
+ " </java>" +
+ " <end name='theEnd' />" +
+ "</process>"
+ );
+
+ executionService.startProcessInstanceByKey("p");
+ }
+
+ public void testIsProcessInstanceExpression() {
+
+ deployJpdlXmlString(
+ "<process name='p'>" +
+ " <start>" +
+ " <transition to='java_activity' />" +
+ " </start>" +
+ " <java name='java_activity' " +
+ " class='" + this.getClass().getName() + "' " +
+ " method='assertIsTrue'>" +
+ " <arg>" +
+ " <object expr='#{execution.isProcessInstance}' />" +
+ " </arg>" +
+ " <transition to='theEnd' />" +
+ " </java>" +
+ " <end name='theEnd' />" +
+ "</process>"
+ );
+
+ executionService.startProcessInstanceByKey("p");
+ }
+
+
+ public void assertIsExecution(Object obj) {
+ assertTrue(obj instanceof Execution);
+ }
+
+ public void assertIsTrue(Boolean trueOrFalse) {
+ assertTrue(trueOrFalse);
+ }
+
+}
14 years, 7 months