[jboss-svn-commits] JBL Code SVN: r11360 - labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Apr 26 11:43:52 EDT 2007


Author: estebanschifman
Date: 2007-04-26 11:43:52 -0400 (Thu, 26 Apr 2007)
New Revision: 11360

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jboss-esb.xml
   labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jbossesb-properties.xml
   labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/juddi.properties
   labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/simpleProcessDefinition.xml
Removed:
   labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/process_01.xml
Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/build.xml
Log:
Restructure jbpm_simple1 quickstart

Modified: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/build.xml	2007-04-26 15:28:22 UTC (rev 11359)
+++ labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/build.xml	2007-04-26 15:43:52 UTC (rev 11360)
@@ -8,8 +8,8 @@
 	<!-- Import the base Ant build script... -->
 	<import file="../conf/base-build.xml"/>
 	
-	<property name="jbpm.services.dir" value="${product.dir}/services/jbpm"/>
-	<property name="jbpm.services.build.dir" value="${jbpm.services.dir}/build"/>
+	<property name="jbpm.services.build.dir" value="${product.dir}/build/services/jbpm.esb" />
+	<property name="esb.archive.name" value="jbpm_simple1" />
 	
 	<available file="${jbpm.services.build.dir}" type="dir" property="jbpm.isBuilt"/>
 	<fail unless="jbpm.isBuilt"
@@ -18,10 +18,27 @@
 	<path id="quickstart-dependencies-classpath">
       <fileset dir="${basedir}" includes="build/**/*.jar"/>
       <fileset dir="${basedir}" includes="build/**/*.xml"/>
-      <pathelement location="${jbpm.services.build.dir}/jbpm.esb" />
-      <fileset dir="${jbpm.services.build.dir}/jbpm.esb" includes="*jar"/>
+      <fileset dir="${jbpm.services.build.dir}" includes="*jar"/>
     </path>
 
+	<target name="clean">
+		<delete dir="build" />
+	</target>
+	
+	<target name="prepare" depends="clean">
+    	<copy todir="build/${esb.archive.name}.esb">
+			<fileset dir="${jbpm.services.build.dir}" />
+		</copy>
+		<mkdir dir="build/classes" />
+	</target>
+	
+    <target name="esb" depends="prepare">
+		<delete file="build/${esb.archive.name}.esb/META-INF/jboss-esb.xml" />
+        <copy todir="build/${esb.archive.name}.esb/META-INF">
+            <fileset dir="${basedir}" includes="jboss-esb.xml" />
+        </copy>
+    </target>
+
 	<target name="runtest" depends="compile"
 		description="run full jBPM process lifecycle test">
 		<echo>Example of a full jBPM process lifecycle</echo>
@@ -33,9 +50,9 @@
   </target>  
 	
 	<target name="quickstart-specific-deploys">
-		<echo message="deploying jbpm.esb to ${org.jboss.esb.server.deploy.dir}" />
-        <copy todir="${org.jboss.esb.server.deploy.dir}/jbpm.esb" >
-			<fileset dir="${jbpm.services.build.dir}/jbpm.esb"/>
+		<echo message="deploying ${esb,archive.name}.esb to ${org.jboss.esb.server.deploy.dir}" />
+        <copy todir="${org.jboss.esb.server.deploy.dir}/${esb.archive.name}.esb" >
+			<fileset dir="build/${esb.archive.name}.esb"/>
 		</copy>
     </target>
 

Added: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jboss-esb.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jboss-esb.xml	2007-04-26 15:43:52 UTC (rev 11360)
@@ -0,0 +1,69 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5" >
+
+    <providers>
+          <fs-provider name="FSprovider1">
+          	<fs-bus busid="helloFileChannel" >
+          		<fs-message-filter
+          			directory="/opt/jboss/esb/source/livetrunk/product/samples/quickstarts/helloworld_file_action/build/dirs/input"
+          			input-suffix=".dat"
+          			work-suffix=".esbWorking"
+          			post-delete="false"
+          			post-directory="/opt/jboss/esb/source/livetrunk/product/samples/quickstarts/helloworld_file_action/build/dirs/output"
+          			post-suffix=".sentToEsb"
+          			error-delete="false"
+          			error-directory="/opt/jboss/esb/source/livetrunk/product/samples/quickstarts/helloworld_file_action/build/dirs/error"
+          			error-suffix=".IN_ERROR"
+          		/>
+          	</fs-bus>
+          </fs-provider>
+      </providers>
+      
+      <services>         
+        <service 
+			category="myCategory"
+			name="myFileListener"
+        	description="Hello World File Action (esb listener)" >
+            <listeners>
+            	<fs-listener name="FileGateway"
+            		busidref="helloFileChannel"
+            		maxThreads="1"
+            		is-gateway="true"
+            		poll-frequency-seconds="10"
+            	/>
+            </listeners>
+            <actions>
+				<action	name="TestDeployFromFile" 
+						class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor"
+				>
+						<property name="command" value="DeployProcessDefinition" />
+						<property name="process-definition-file" value="simpleProcessDefinition.xml" />
+				</action>
+			
+				<action	name="aNewInstance" 
+						class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor"
+				>
+						<property name="command" value="NewProcessInstanceCommand" />
+						<property name="process-definition-name" value="simple"/>
+						<property name="actor" value="FrankSinatra"/>
+						<property name="variables">
+							<variable esb-name="eVar1" jbpm-name="j1"  value="AAAbbb111" />
+							<variable esb-name="eVar2" jbpm-name="vJ22"  value="998877" />
+						</property>
+				</action>
+			
+				<action	name="nowGetItBack" 
+						class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor"
+				>
+						<property name="command" value="GetProcessInstanceCommand" />
+						<property name="variables">
+							<variable esb-name="yyy" jbpm-name="vJ22" />
+							<variable esb-name="xxx" jbpm-name="j1"  />
+						</property>
+				</action>
+			
+            </actions>
+        </service>
+      </services>
+     
+</jbossesb>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jboss-esb.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jbossesb-properties.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jbossesb-properties.xml	2007-04-26 15:43:52 UTC (rev 11360)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  JBoss, Home of Professional Open Source
+  Copyright 2006, JBoss Inc., and others contributors as indicated 
+  by the @authors tag. All rights reserved. 
+  See the copyright.txt in the distribution for a
+  full listing of individual contributors. 
+  This copyrighted material is made available to anyone wishing to use,
+  modify, copy, or redistribute it subject to the terms and conditions
+  of the GNU Lesser General Public License, v. 2.1.
+  This program is distributed in the hope that it will be useful, but WITHOUT A 
+  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,
+  v.2.1 along with this distribution; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+  MA  02110-1301, USA.
+  
+  (C) 2005-2006,
+  @author JBoss Inc.
+-->
+<!-- $Id: jbossesb-unittest-properties.xml $ -->
+<!--
+  These options are described in the JBossESB manual.
+  Defaults are provided here for convenience only.
+ 
+  Please read through this file prior to using the system, and consider
+  updating the specified entries.
+-->
+<esb
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
+    <properties name="core">
+		<property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
+		<property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
+		<property name="org.jboss.soa.esb.persistence.connection.factory" 	value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
+    </properties>
+    <properties name="registry">      
+    	<property name="org.jboss.soa.esb.registry.queryManagerURI"     		
+    		value="jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire"/>    		
+    	<property name="org.jboss.soa.esb.registry.lifeCycleManagerURI"     		
+    		value="jnp://localhost:1099/PublishService?org.apache.juddi.registry.rmi.Publish#publish" />
+    	<property name="org.jboss.soa.esb.registry.implementationClass" 
+    		value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
+    	<property name="org.jboss.soa.esb.registry.factoryClass" 
+    		value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+    	<property name="org.jboss.soa.esb.registry.user" 
+    		value="jbossesb"/>
+    	<property name="org.jboss.soa.esb.registry.password" 
+    	  value="password"/>
+    	<!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
+    	<property name="org.jboss.soa.esb.scout.proxy.transportClass" 
+    		value="org.apache.ws.scout.transport.RMITransport"/>
+    </properties>
+    <properties name="transports" depends="core">
+    	<property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
+    	<property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
+    	<property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
+    	<property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+    </properties>
+    <properties name="connection">
+    	<property name="min-pool-size" value="5"/>
+    	<property name="max-pool=size" value="10"/>
+    	<property name="blocking-timeout-millis" value="5000"/>
+    	<property name="abandoned-connection-timeout" value="10000"/>
+    	<property name="abandoned-connection-time-interval" value="30000"/>
+    </properties>
+    <properties name="dbstore">
+		<property name="org.jboss.soa.esb.persistence.db.connection.url" 	value="jdbc:hsqldb:hsql://localhost:9001/jbossesb"/>
+		<property name="org.jboss.soa.esb.persistence.db.jdbc.driver" 		value="org.hsqldb.jdbcDriver"/>
+		<property name="org.jboss.soa.esb.persistence.db.user" 			value="sa"/>
+		<property name="org.jboss.soa.esb.persistence.db.pwd" 			value=""/>		
+		<property name="org.jboss.soa.esb.persistence.db.pool.initial.size"	value="2"/>
+		<property name="org.jboss.soa.esb.persistence.db.pool.min.size"	value="2"/>
+		<property name="org.jboss.soa.esb.persistence.db.pool.max.size"	value="5"/>
+		<!--table managed by pool to test for valid connections - created by pool automatically -->
+		<property name="org.jboss.soa.esb.persistence.db.pool.test.table"	value="pooltest"/>
+		<!-- # of milliseconds to timeout waiting for a connection from pool -->
+		<property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis"	value="5000"/> 
+    </properties>
+    <properties name="messagerouting">
+    	<property name="org.jboss.soa.esb.routing.cbrClass" value="org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter"/>
+    </properties>
+</esb>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/jbossesb-properties.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/juddi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/juddi.properties	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/juddi.properties	2007-04-26 15:43:52 UTC (rev 11360)
@@ -0,0 +1,69 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin at juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any 
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# use a dataSource (if set to false a direct 
+# jdbc connection will be used.
+juddi.isUseDataSource=false
+juddi.jdbcDriver=com.mysql.jdbc.Driver
+juddi.jdbcUrl=jdbc:mysql://localhost:3306/juddi
+juddi.jdbcUsername=root
+juddi.jdbcPassword=admin
+# jUDDI DataSource to use
+# juddi.dataSource=java:comp/env/jdbc/MySqlDS
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+ 
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+  


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/juddi.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Deleted: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/process_01.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/process_01.xml	2007-04-26 15:28:22 UTC (rev 11359)
+++ labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/process_01.xml	2007-04-26 15:43:52 UTC (rev 11360)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<process-definition 
-  xmlns="urn:jbpm.org:jpdl-3.1"
-  name="simple">
-   <start-state name="start">
-      <transition name="to_state" to="first">
-         
-      </transition>
-   </start-state>
-   <state name="first">
-      <transition name="to_end" to="end">
-         
-      </transition>
-   </state>
-   <end-state name="end"></end-state>
-</process-definition>
\ No newline at end of file

Copied: labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/simpleProcessDefinition.xml (from rev 11358, labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/process_01.xml)
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/simpleProcessDefinition.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/jbpm_simple1/simpleProcessDefinition.xml	2007-04-26 15:43:52 UTC (rev 11360)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-definition 
+  xmlns="urn:jbpm.org:jpdl-3.1"
+  name="simple">
+   <start-state name="start">
+      <transition name="to_state" to="first">
+         
+      </transition>
+   </start-state>
+   <state name="first">
+      <transition name="to_end" to="end">
+         
+      </transition>
+   </state>
+   <end-state name="end"></end-state>
+</process-definition>
\ No newline at end of file




More information about the jboss-svn-commits mailing list