[jboss-svn-commits] JBL Code SVN: r37977 - in labs/jbossesb/trunk/product/samples/quickstarts/helloworld: lib and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Apr 2 23:58:49 EDT 2012


Author: tcunning
Date: 2012-04-02 23:58:48 -0400 (Mon, 02 Apr 2012)
New Revision: 37977

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/Evaluation.bpmn
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/lib/drools-persistence-jpa-5.3.1.Final.jar
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/lib/jbpm-persistence-jpa-5.2.0.Final.jar
Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/deployment.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/hornetq-jms.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbm-queue-service.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbmq-queue-service.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/readme.txt
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendJMSMessage.java
Log:
JBESB-3761
Implement persistence with bpm5processor.


Added: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/Evaluation.bpmn
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/Evaluation.bpmn	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/Evaluation.bpmn	2012-04-03 03:58:48 UTC (rev 37977)
@@ -0,0 +1,272 @@
+<?xml version="1.0" encoding="UTF-8"?> 
+<definitions id="Definition"
+             targetNamespace="http://www.jboss.org/drools"
+             typeLanguage="http://www.java.com/javaTypes"
+             expressionLanguage="http://www.mvel.org/2.0"
+             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
+             xmlns:g="http://www.jboss.org/drools/flow/gpd"
+             xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
+             xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
+             xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
+             xmlns:tns="http://www.jboss.org/drools">
+
+  <itemDefinition id="_employeeItem" />
+  <itemDefinition id="_reasonItem" />
+  <itemDefinition id="_performanceItem" />
+  <itemDefinition id="_contentItem" />
+
+  <process processType="Private" isExecutable="true" id="com.sample.evaluation" name="Evaluation" tns:packageName="defaultPackage" >
+
+    <!-- process variables -->
+    <property id="employee" itemSubjectRef="_employeeItem"/>
+    <property id="reason" itemSubjectRef="_reasonItem"/>
+    <property id="performance" itemSubjectRef="_performanceItem"/>
+    <property id="content" itemSubjectRef="_contentItem"/>
+
+    <!-- nodes -->
+    <startEvent id="_1" name="Start" />
+    <userTask id="_2" name="Self Evaluation" >
+      <extensionElements>
+        <tns:onEntry-script scriptFormat="http://www.java.com/java">
+          <script>java.util.Map contentParam = new java.util.HashMap();
+contentParam.put("reason", reason);
+kcontext.setVariable("content", contentParam);</script>
+        </tns:onEntry-script>
+      </extensionElements>
+      <ioSpecification>
+        <dataInput id="_2_ContentInput" name="Content" />
+        <dataInput id="_2_CommentInput" name="Comment" />
+        <dataInput id="_2_SkippableInput" name="Skippable" />
+        <dataInput id="_2_TaskNameInput" name="TaskName" />
+        <dataOutput id="_2_performanceOutput" name="performance" />
+        <inputSet>
+          <dataInputRefs>_2_ContentInput</dataInputRefs>
+          <dataInputRefs>_2_CommentInput</dataInputRefs>
+          <dataInputRefs>_2_SkippableInput</dataInputRefs>
+          <dataInputRefs>_2_TaskNameInput</dataInputRefs>
+        </inputSet>
+        <outputSet>
+          <dataOutputRefs>_2_performanceOutput</dataOutputRefs>
+        </outputSet>
+      </ioSpecification>
+      <dataInputAssociation>
+        <sourceRef>content</sourceRef>
+        <targetRef>_2_ContentInput</targetRef>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_2_CommentInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">Please perform a self-evalutation.</from>
+          <to xsi:type="tFormalExpression">_2_CommentInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_2_SkippableInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">false</from>
+          <to xsi:type="tFormalExpression">_2_SkippableInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_2_TaskNameInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">Performance Evaluation</from>
+          <to xsi:type="tFormalExpression">_2_TaskNameInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataOutputAssociation>
+        <sourceRef>_2_performanceOutput</sourceRef>
+        <targetRef>performance</targetRef>
+      </dataOutputAssociation>
+      <potentialOwner>
+        <resourceAssignmentExpression>
+          <formalExpression>#{employee}</formalExpression>
+        </resourceAssignmentExpression>
+      </potentialOwner>
+    </userTask>
+    <userTask id="_3" name="PM Evaluation" >
+      <extensionElements>
+        <tns:onEntry-script>
+          <script>java.util.Map contentParam = new java.util.HashMap();
+contentParam.put("reason", reason);
+contentParam.put("performance", performance);
+kcontext.setVariable("content", contentParam);</script>
+        </tns:onEntry-script>
+      </extensionElements>
+      <ioSpecification>
+        <dataInput id="_3_ContentInput" name="Content" />
+        <dataInput id="_3_CommentInput" name="Comment" />
+        <dataInput id="_3_SkippableInput" name="Skippable" />
+        <dataInput id="_3_TaskNameInput" name="TaskName" />
+        <inputSet>
+          <dataInputRefs>_3_ContentInput</dataInputRefs>
+          <dataInputRefs>_3_CommentInput</dataInputRefs>
+          <dataInputRefs>_3_SkippableInput</dataInputRefs>
+          <dataInputRefs>_3_TaskNameInput</dataInputRefs>
+        </inputSet>
+        <outputSet>
+        </outputSet>
+      </ioSpecification>
+      <dataInputAssociation>
+        <sourceRef>content</sourceRef>
+        <targetRef>_3_ContentInput</targetRef>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_3_CommentInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>
+          <to xsi:type="tFormalExpression">_3_CommentInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_3_SkippableInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">false</from>
+          <to xsi:type="tFormalExpression">_3_SkippableInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_3_TaskNameInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">Performance Evaluation</from>
+          <to xsi:type="tFormalExpression">_3_TaskNameInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <potentialOwner>
+        <resourceAssignmentExpression>
+          <formalExpression>john</formalExpression>
+        </resourceAssignmentExpression>
+      </potentialOwner>
+    </userTask>
+    <userTask id="_4" name="HR Evaluation" >
+      <extensionElements>
+        <tns:onEntry-script scriptFormat="http://www.java.com/java">
+          <script>java.util.Map contentParam = new java.util.HashMap();
+contentParam.put("reason", reason);
+contentParam.put("performance", performance);
+kcontext.setVariable("content", contentParam);</script>
+        </tns:onEntry-script>
+      </extensionElements>
+      <ioSpecification>
+        <dataInput id="_4_ContentInput" name="Content" />
+        <dataInput id="_4_CommentInput" name="Comment" />
+        <dataInput id="_4_SkippableInput" name="Skippable" />
+        <dataInput id="_4_TaskNameInput" name="TaskName" />
+        <inputSet>
+          <dataInputRefs>_4_ContentInput</dataInputRefs>
+          <dataInputRefs>_4_CommentInput</dataInputRefs>
+          <dataInputRefs>_4_SkippableInput</dataInputRefs>
+          <dataInputRefs>_4_TaskNameInput</dataInputRefs>
+        </inputSet>
+        <outputSet>
+        </outputSet>
+      </ioSpecification>
+      <dataInputAssociation>
+        <sourceRef>content</sourceRef>
+        <targetRef>_4_ContentInput</targetRef>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_4_CommentInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>
+          <to xsi:type="tFormalExpression">_4_CommentInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_4_SkippableInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">false</from>
+          <to xsi:type="tFormalExpression">_4_SkippableInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <dataInputAssociation>
+        <targetRef>_4_TaskNameInput</targetRef>
+        <assignment>
+          <from xsi:type="tFormalExpression">Performance Evaluation</from>
+          <to xsi:type="tFormalExpression">_4_TaskNameInput</to>
+        </assignment>
+      </dataInputAssociation>
+      <potentialOwner>
+        <resourceAssignmentExpression>
+          <formalExpression>mary</formalExpression>
+        </resourceAssignmentExpression>
+      </potentialOwner>
+    </userTask>
+    <parallelGateway id="_5" name="Gateway" gatewayDirection="Diverging" />
+    <parallelGateway id="_6" name="Gateway" gatewayDirection="Converging" />
+    <endEvent id="_7" name="End" >
+        <terminateEventDefinition/>
+    </endEvent>
+
+    <!-- connections -->
+    <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
+    <sequenceFlow id="_5-_3" sourceRef="_5" targetRef="_3" />
+    <sequenceFlow id="_5-_4" sourceRef="_5" targetRef="_4" />
+    <sequenceFlow id="_2-_5" sourceRef="_2" targetRef="_5" />
+    <sequenceFlow id="_4-_6" sourceRef="_4" targetRef="_6" />
+    <sequenceFlow id="_3-_6" sourceRef="_3" targetRef="_6" />
+    <sequenceFlow id="_6-_7" sourceRef="_6" targetRef="_7" />
+
+  </process>
+
+  <bpmndi:BPMNDiagram>
+    <bpmndi:BPMNPlane bpmnElement="com.sample.evaluation" >
+      <bpmndi:BPMNShape bpmnElement="_1" >
+        <dc:Bounds x="16" y="56" width="48" height="48" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="_2" >
+        <dc:Bounds x="96" y="56" width="135" height="48" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="_3" >
+        <dc:Bounds x="344" y="96" width="136" height="48" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="_4" >
+        <dc:Bounds x="344" y="16" width="136" height="48" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="_5" >
+        <dc:Bounds x="263" y="56" width="48" height="48" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="_6" >
+        <dc:Bounds x="512" y="56" width="48" height="48" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="_7" >
+        <dc:Bounds x="593" y="56" width="48" height="48" />
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge bpmnElement="_1-_2" >
+        <di:waypoint x="40" y="80" />
+        <di:waypoint x="163" y="80" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="_5-_3" >
+        <di:waypoint x="287" y="80" />
+        <di:waypoint x="287" y="120" />
+        <di:waypoint x="412" y="120" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="_5-_4" >
+        <di:waypoint x="287" y="80" />
+        <di:waypoint x="287" y="40" />
+        <di:waypoint x="412" y="40" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="_2-_5" >
+        <di:waypoint x="163" y="80" />
+        <di:waypoint x="287" y="80" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="_4-_6" >
+        <di:waypoint x="412" y="40" />
+        <di:waypoint x="536" y="40" />
+        <di:waypoint x="536" y="80" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="_3-_6" >
+        <di:waypoint x="412" y="120" />
+        <di:waypoint x="537" y="120" />
+        <di:waypoint x="536" y="80" />
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="_6-_7" >
+        <di:waypoint x="536" y="80" />
+        <di:waypoint x="617" y="80" />
+      </bpmndi:BPMNEdge>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+
+</definitions>
\ No newline at end of file

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml	2012-04-03 03:58:48 UTC (rev 37977)
@@ -1,15 +1,20 @@
-<project name="Quickstart_helloworld" default="run" basedir=".">
+<project name="Quickstart_bpm5processor" default="run" basedir=".">
 	
 	<description> 
 		${ant.project.name}
 		${line.separator}
 	</description>
+
+	<!--
+        <property name="additional.deploys" value="Evaluation.bpmn, META-INF/persistence.xml, META-INF/JBPMorm.xml, META-INF/hibernate.cfg.xml"/>
+	-->
+	<property name="additional.deploys" value="Evaluation.bpmn"/>
 	
 	<!-- Import the base Ant build script... -->
 	<import file="../conf/base-build.xml"/>
 	
 	<target name="runtest" depends="compile" 
-		description="sends a JMS message to queue/quickstart_helloworld_Request_gw">
+		description="sends a JMS message to queue/quickstart_bpm5processor_Request_gw">
 		<echo>Runs Test JMS Sender</echo>
 
 		<java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage" failonerror="true">

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/deployment.xml	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/deployment.xml	2012-04-03 03:58:48 UTC (rev 37977)
@@ -1,5 +1,7 @@
 <?xml version="1.0"?>
 <jbossesb-deployment>
-  <jmsQueue>quickstart_helloworld_Request_esb</jmsQueue>
-  <jmsQueue>quickstart_helloworld_Request_gw</jmsQueue>
+  <jmsQueue>quickstart_bpm5processor_Request_esb</jmsQueue>
+  <jmsQueue>quickstart_bpm5processor_Request_gw</jmsQueue>
+  <depends>jboss.esb:deployment=jbpm5.esb</depends>
+  <depends>jboss.jca:name=jboss/datasources/jbpm5DS,service=DataSourceBinding</depends>
 </jbossesb-deployment>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/hornetq-jms.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/hornetq-jms.xml	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/hornetq-jms.xml	2012-04-03 03:58:48 UTC (rev 37977)
@@ -1,9 +1,15 @@
 <?xml version="1.0"?>
 <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
-  <queue name="quickstart_helloworld_Request_esb">
-    <entry name="queue/quickstart_helloworld_Request_esb"/>
+  <queue name="quickstart_bpm5processor_Request_esb">
+    <entry name="queue/quickstart_bpm5processor_Request_esb"/>
   </queue>
-  <queue name="quickstart_helloworld_Request_gw">
-    <entry name="queue/quickstart_helloworld_Request_gw"/>
+  <queue name="quickstart_bpm5processor_Request_gw">
+    <entry name="queue/quickstart_bpm5processor_Request_gw"/>
   </queue>
+  <queue name="quickstart_bpm5processor_Request_esb">
+    <entry name="queue/quickstart_bpm5processor_Request_abort"/>
+  </queue>
+  <queue name="quickstart_bpm5processor_Request_esb">
+    <entry name="queue/quickstart_bpm5processor_Request_signal"/>
+  </queue>
 </configuration>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbm-queue-service.xml	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbm-queue-service.xml	2012-04-03 03:58:48 UTC (rev 37977)
@@ -1,15 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <server>
   <mbean code="org.jboss.jms.server.destination.QueueService"
-    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_Request_esb"
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_esb"
     xmbean-dd="xmdesc/Queue-xmbean.xml">
 	<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
 	<depends>jboss.messaging:service=PostOffice</depends>
   </mbean>
   <mbean code="org.jboss.jms.server.destination.QueueService"
-    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_Request_gw"
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_gw"
     xmbean-dd="xmdesc/Queue-xmbean.xml">
     <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
 	<depends>jboss.messaging:service=PostOffice</depends>
   </mbean>
+
+<mbean code="org.jboss.jms.server.destination.QueueService"
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_abort"
+    xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+  </mbean>
+
+<mbean code="org.jboss.jms.server.destination.QueueService"
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_signal"
+    xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+  </mbean>
+
+
 </server>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbmq-queue-service.xml	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbmq-queue-service.xml	2012-04-03 03:58:48 UTC (rev 37977)
@@ -1,15 +1,27 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <server>
   <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_Request_esb">
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_esb">
     <depends optional-attribute-name="DestinationManager">
       jboss.mq:service=DestinationManager
     </depends>
   </mbean>
   <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_Request_gw">
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_gw">
     <depends optional-attribute-name="DestinationManager">
       jboss.mq:service=DestinationManager
     </depends>
   </mbean>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_abort">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Request_signal">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
 </server>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml	2012-04-03 03:58:48 UTC (rev 37977)
@@ -9,16 +9,31 @@
               <jms-bus busid="quickstartGwChannel">
                   <jms-message-filter
                       dest-type="QUEUE"
-                      dest-name="queue/quickstart_helloworld_Request_gw"
+                      dest-name="queue/quickstart_bpm5processor_Request_gw"
                    />
               </jms-bus>
               <jms-bus busid="quickstartEsbChannel">
                   <jms-message-filter
                       dest-type="QUEUE"
-                      dest-name="queue/quickstart_helloworld_Request_esb"
+                      dest-name="queue/quickstart_bpm5processor_Request_esb"
                   />
               </jms-bus>
 
+              <jms-bus busid="quickstartAbortChannel">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/quickstart_bpm5processor_Request_abort"
+                  />
+              </jms-bus>
+
+              <jms-bus busid="quickstartSignalChannel">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/quickstart_bpm5processor_Request_signal"
+                  />
+              </jms-bus>
+
+
           </jms-provider>
       </providers>
       
@@ -37,15 +52,53 @@
                 />
             </listeners>
             <actions mep="OneWay">
-                   <action name="action1" 
-                   	class="org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction" 
-                   	process="displayMessage" 
-                   	/>      
                     <action name="action2" class="org.jboss.soa.esb.actions.SystemPrintln">
                       <property name="printfull" value="false"/>
                     </action>
-                    <!-- The next action is for Continuous Integration testing -->
-                    <action name="testStore" class="org.jboss.soa.esb.actions.TestMessageStore"/>
+
+		   <action name="jbpm5" class="org.jboss.soa.esb.services.jbpm5.actions.Bpm5Processor">
+	              <property name="process-definition-name" value="Evaluation.bpmn"/>
+                      <property name="process-id" value="com.sample.evaluation"/>
+                      <property name="process-action" value="startProcess"/>
+                      <property name="esbToBpmParams">
+                        <mapping esb="employee" bpm="employee" value="krisv"/>
+                        <mapping esb="reason" bpm="reason" value="Yearly performance review"/>
+                      </property>
+
+		   </action>
+
+                   <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
+                       <property name="destinations">
+                           <route-to service-category="FirstServiceESB" service-name="AbortListener"/>
+                      </property>
+                   </action>
+             </actions>
+	</service>
+        <service
+                category="FirstServiceESB"
+                name="AbortListener"
+                description="Hello World">
+            <listeners>
+                <jms-listener name="helloWorld"
+                              busidref="quickstartAbortChannel"
+                />
+            </listeners>
+            <actions mep="OneWay">
+                   <action name="jbpm5-2" class="org.jboss.soa.esb.services.jbpm5.actions.Bpm5Processor">
+                      <property name="process-definition-name" value="Evaluation.bpmn"/>
+                      <property name="process-id" value="com.sample.evaluation"/>
+                      <property name="process-action" value="abortProcessInstance"/>
+                      <property name="esbToBpmParams">
+                        <mapping esb="employee" bpm="employee" value="krisv"/>
+                        <mapping esb="reason" bpm="reason" value="Yearly performance review"/>
+                      </property>
+
+                   </action>
+
+                   <action name="action3" class="org.jboss.soa.esb.actions.SystemPrintln">
+                      <property name="printfull" value="true"/>
+                    </action>
+
             </actions>
         </service>
       </services>

Added: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/lib/drools-persistence-jpa-5.3.1.Final.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/lib/drools-persistence-jpa-5.3.1.Final.jar
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/lib/jbpm-persistence-jpa-5.2.0.Final.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/lib/jbpm-persistence-jpa-5.2.0.Final.jar
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/readme.txt	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/readme.txt	2012-04-03 03:58:48 UTC (rev 37977)
@@ -1,14 +1,21 @@
 Overview:
 =========
-  The purpose of the helloworld quickstart sample is to prove that the ESB is
-  is properly configured and happy.  As well as to demonstrate the needed
-  minimal files to make a basic ESB component execute.
+  The purpose of the bpm5processor quickstart sample is to demonstrate the
+  ability of the ESB to process an action on a single JBPM 5 process. 
 
 Running this quickstart:
 ========================
   Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
   and a more detailed descripton of the different ways to run the quickstarts.
 
+  This quickstart shows how to start, and then abort a process.   This 
+  quickstart uses the jBPM 5 evaluation demo, starts the process as
+  'krisv', and then aborts it.
+
+  The session and process ID information are stored within the message
+  context.
+  
+
 To Run:
 ===========================
   1. In a command terminal window in this folder ("Window1"), type 'ant deploy'.

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendJMSMessage.java	2012-04-03 03:42:02 UTC (rev 37976)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendJMSMessage.java	2012-04-03 03:58:48 UTC (rev 37977)
@@ -46,13 +46,13 @@
 				"org.jnp.interfaces.NamingContextFactory");
 		properties1.put(Context.URL_PKG_PREFIXES,
 				"org.jboss.naming:org.jnp.interfaces");
-		properties1.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
+		properties1.put(Context.PROVIDER_URL, "jnp://localhost:1099");
 		InitialContext iniCtx = new InitialContext(properties1);
 
     	Object tmp = iniCtx.lookup("ConnectionFactory");
     	QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
     	conn = qcf.createQueueConnection();
-    	que = (Queue) iniCtx.lookup("queue/quickstart_helloworld_Request_gw");
+    	que = (Queue) iniCtx.lookup("queue/quickstart_bpm5processor_Request_gw");
     	session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
     	conn.start();
     	System.out.println("Connection Started");



More information about the jboss-svn-commits mailing list