[jboss-svn-commits] JBL Code SVN: r38028 - in labs/jbossesb/branches/JBESB_4_11_CP/product: install and 3 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Apr 18 00:59:18 EDT 2012
Author: tcunning
Date: 2012-04-18 00:59:17 -0400 (Wed, 18 Apr 2012)
New Revision: 38028
Added:
labs/jbossesb/branches/JBESB_4_11_CP/product/install/task-ds.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/lib/ext/jbpm-human-task-5.3.0.BRMS-ER6.war
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadGroups.mvel
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadUsers.mvel
Modified:
labs/jbossesb/branches/JBESB_4_11_CP/product/build-distr.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/install/build.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/ivy.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/readme.txt
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/deployment.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/persistence.xml
Log:
JBESB-3784
Incorporate the human task server, the task datasource, sample MVEL
user and group files, and the trove4j JAR.
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/build-distr.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/build-distr.xml 2012-04-17 10:42:04 UTC (rev 38027)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/build-distr.xml 2012-04-18 04:59:17 UTC (rev 38028)
@@ -142,6 +142,12 @@
<fileset dir="${lib.dir}" includes="juddi-core-*.jar"/>
<fileset dir="${build.lib.dir}" includes="jbossesb-registry.jar"/>
</copy>
+
+ <copy todir="${build.lib.dir}">
+ <fileset dir="${lib.ext.dir}">
+ <include name="jbpm-human-task-5.3.0.BRMS-ER6.war"/>
+ </fileset>
+ </copy>
<copy todir="${build.dir}/jbossesb-registry.sar/META-INF">
<fileset dir="${installation.files.dir}/jUDDI-registryV3" includes="persistence.xml, esb-juddi-orm.xml"/>
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/install/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/install/build.xml 2012-04-17 10:42:04 UTC (rev 38027)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/install/build.xml 2012-04-18 04:59:17 UTC (rev 38028)
@@ -267,7 +267,14 @@
<!-- install h2 jar -->
<copy file="${org.jboss.esb.dist.lib}/h2-1.2.124.jar" todir="${server.lib.dir}" overwrite="true"/>
-
+
+ <!-- install trove4j jar -->
+ <copy todir="${server.lib.dir}" overwrite="true">
+ <fileset dir="${org.jboss.esb.dist.lib}">
+ <include name="trove4j-*.jar"/>
+ </fileset>
+ </copy>
+
<!-- copy JBoss Identity jars -->
<copy todir="${server.lib.dir}" overwrite="true">
<fileset dir="${org.jboss.esb.dist.lib}">
@@ -411,6 +418,11 @@
<copy todir="${deploy.dir}"
file="${org.jboss.esb.dist.lib}/juddiv3.war"/>
+ <copy tofile="${deploy.dir}/jbpm-human-task.war"
+ file="${org.jboss.esb.dist.lib}/jbpm-human-task-5.3.0.BRMS-ER6.war"/>
+ <copy todir="${deploy.dir}"
+ file="${basedir}/task-ds.xml"/>
+
<copy tofile="${deploy.dir}/jbossesb.sar/META-INF/jboss-service.xml" file="${basedir}/jboss-service-jbossas5.xml" overwrite="true"/>
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/install/task-ds.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/install/task-ds.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/install/task-ds.xml 2012-04-18 04:59:17 UTC (rev 38028)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+ <local-tx-datasource>
+ <jndi-name>jboss/datasources/taskDS</jndi-name>
+ <connection-url>jdbc:h2:${jboss.server.data.dir}${/}h2${/}taskDB;MVCC=TRUE</connection-url>
+ <driver-class>org.h2.Driver</driver-class>
+ <user-name>sa</user-name>
+ <password/>
+ <min-pool-size>5</min-pool-size>
+ <max-pool-size>20</max-pool-size>
+ <idle-timeout-minutes>0</idle-timeout-minutes>
+ <prepared-statement-cache-size>32</prepared-statement-cache-size>
+ <depends>jboss:service=h2,database=taskDB</depends>
+ </local-tx-datasource>
+ <mbean code="org.jboss.internal.soa.esb.dependencies.H2Database"
+ name="jboss:service=h2,database=taskDB">
+ <attribute name="Database">taskDB</attribute>
+ <attribute name="DataDir">${jboss.server.data.dir}</attribute>
+ </mbean>
+</datasources>
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/ivy.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/ivy.xml 2012-04-17 10:42:04 UTC (rev 38027)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/ivy.xml 2012-04-18 04:59:17 UTC (rev 38028)
@@ -189,6 +189,9 @@
<exclude org="com.sun.xml.bind" module="jaxb-xjc"/>
</dependency>
+ <!-- trove4j for human-task-server -->
+ <dependency org="net.sf.trove4j" name="trove4j" rev="3.0.2" transitive="false"/>
+
<!--
<dependency org="org.jbpm" name="jbpm-gwt-console" rev="5.2.0.Final"
transitive="false">
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/lib/ext/jbpm-human-task-5.3.0.BRMS-ER6.war
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/branches/JBESB_4_11_CP/product/lib/ext/jbpm-human-task-5.3.0.BRMS-ER6.war
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadGroups.mvel
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadGroups.mvel (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadGroups.mvel 2012-04-18 04:59:17 UTC (rev 38028)
@@ -0,0 +1,9 @@
+groups = [ 'knightsTempler' : new Group( "Knights Templer" ),
+ 'crusaders' : new Group( "Crusaders" ),
+ 'HR' : new Group( "HR" ),
+ 'PM' : new Group( "PM" ),
+ 'sales' : new Group( "sales" )
+ ];
+
+return groups;
+
\ No newline at end of file
Added: labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadUsers.mvel
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadUsers.mvel (rev 0)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/LoadUsers.mvel 2012-04-18 04:59:17 UTC (rev 38028)
@@ -0,0 +1,14 @@
+users = [ 'darth' : new User('Darth Vader'),
+ 'bobba' : new User( 'Bobba Fet'), 'jabba' : new User('Jabba Hutt'),
+ 'dalai' : new User('Dalai Lama'), 'christoper' : new User('Christoper Columbus'),
+ 'stuart' : new User('Stuart Little'), 'jane' : new User('Jane Austin'),
+ 'peter' : new User('Peter Parker'), 'steve' : new User('Steve Rogers'),
+ 'sly' : new User('Sly Stalone'), 'liz' : new User('Elizabeth Windsor'),
+ 'bruce' : new User('Bruce Wayne' ), 'tony' : new User('Tony Stark'),
+ 'luke' : new User('Luke Cage'), 'admin' : new User('Administrator'),
+ 'krisv' : new User('krisv'), 'john' : new User('john'),
+ 'mary' : new User('mary'), 'sales' : new User('sales-rep')
+ ];
+
+return users;
+
\ No newline at end of file
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/readme.txt
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/readme.txt 2012-04-17 10:42:04 UTC (rev 38027)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/readme.txt 2012-04-18 04:59:17 UTC (rev 38028)
@@ -18,17 +18,30 @@
Setting up the Human Task server
=======================================
-Unzip the jbpm installer:
-sh% unzip jbpm-5.2.0.Final-installer-full.zip
-sh% cd jbpm-installer
+You need to add users and groups to the human task server in order to be able
+to run this example.
-Edit the build.properties file. Change the AS7 specific settings to JBoss AS 5.1.0.GA settings. In particular, you should look for "drools.guvnor.url", "jboss.server.version", "jboss.home" (point it to your jboss-5.1.0.GA application server), "jboss.server.configuration", "jboss.server.deploy", "jboss.server.data.dir".
+Copy the two MVEL files from this quickstart into jboss-human-task-server.war's
+WEB-INF/classes/org/jbpm directory.
-sh% ant install.jBPM.runtime
-sh% ant start.human.task
+Then, edit the web.xml of jbpm-human-task-server.war
+In the following section, specify the mvel scripts provided here to add users
+for this example :
+ <!-- DefaultUsers.mvel is used to insert Administrator as it is required for task server to operate -->
+ <init-param>
+ <param-name>load.users</param-name>
+ <param-value>classpath:/org/jbpm/LoadUsers.mvel</param-value>
+ </init-param>
+ <!-- use classpath:/org/jbpm/task/servlet/SampleGroups.mvel to configure sample users for demo purpose-->
+ <init-param>
+ <param-name>load.groups</param-name>
+ <param-value>classpath:/org/jbpm/LoadGroups.mvel</param-value>
+ </init-param>
+
+
How to get the jBPM GWT console running
=========================================
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/deployment.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/deployment.xml 2012-04-17 10:42:04 UTC (rev 38027)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/deployment.xml 2012-04-18 04:59:17 UTC (rev 38028)
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?><jbossesb-deployment>
<depends>jboss.esb:deployment=jbossesb.esb</depends>
+ <depends>jboss.jca:name=jboss/datasources/jbpm5DS,service=DataSourceBinding</depends>
</jbossesb-deployment>
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/persistence.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/persistence.xml 2012-04-17 10:42:04 UTC (rev 38027)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/services/jbpm5/src/main/resources/META-INF/persistence.xml 2012-04-18 04:59:17 UTC (rev 38028)
@@ -12,6 +12,7 @@
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/jbpm5DS</jta-data-source>
+ <mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>
<mapping-file>META-INF/JBPMorm.xml</mapping-file>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.drools.persistence.info.SessionInfo</class>
More information about the jboss-svn-commits
mailing list