[jboss-svn-commits] JBL Code SVN: r38142 - labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Jul 18 22:21:58 EDT 2012
Author: tcunning
Date: 2012-07-18 22:21:57 -0400 (Wed, 18 Jul 2012)
New Revision: 38142
Modified:
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/hornetq-jms.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbm-queue-service.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbmq-queue-service.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jboss-esb.xml
labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/sample.bpmn
Log:
JBESB-3830
Commit bpm5processor quickstart changes necessary to show off ESBActionHandler.
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/hornetq-jms.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/hornetq-jms.xml 2012-07-16 15:00:38 UTC (rev 38141)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/hornetq-jms.xml 2012-07-19 02:21:57 UTC (rev 38142)
@@ -12,4 +12,7 @@
<queue name="quickstart_bpm5processor_Request_signal">
<entry name="queue/quickstart_bpm5processor_Request_signal"/>
</queue>
+ <queue name="quickstart_bpm5processor_Callback5Queue">
+ <entry name="queue/quickstart_bpm5processor_Callback5Queue"/>
+ </queue>
</configuration>
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbm-queue-service.xml 2012-07-16 15:00:38 UTC (rev 38141)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbm-queue-service.xml 2012-07-19 02:21:57 UTC (rev 38142)
@@ -27,5 +27,10 @@
<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_Callback5Queue"
+ 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/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbmq-queue-service.xml 2012-07-16 15:00:38 UTC (rev 38141)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jbmq-queue-service.xml 2012-07-19 02:21:57 UTC (rev 38142)
@@ -24,4 +24,10 @@
jboss.mq:service=DestinationManager
</depends>
</mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_bpm5processor_Callback5Queue">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
</server>
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jboss-esb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jboss-esb.xml 2012-07-16 15:00:38 UTC (rev 38141)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/jboss-esb.xml 2012-07-19 02:21:57 UTC (rev 38142)
@@ -35,6 +35,14 @@
</jms-provider>
+ <jms-jca-provider name="CallbackQueue-JMS-Provider" connection-factory="ConnectionFactory">
+ <jms-bus busid="jBPMCallbackBus">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_bpm5processor_Callback5Queue"
+ />
+ </jms-bus>
+ </jms-jca-provider>
</providers>
<services>
@@ -66,6 +74,8 @@
<property name="esbToBpmParams">
<mapping esb="ServiceCategory" bpm="ServiceCategory" value="EsbJbpm5Example"/>
<mapping esb="ServiceName" bpm="ServiceName" value="Printer"/>
+ <mapping esb="CallbackServiceCategory" bpm="CallbackServiceCategory" value="EsbJbpm5Example"/>
+ <mapping esb="CallbackServiceName" bpm="CallbackServiceName" value="JBpm5CallbackService"/>
</property>
</action>
</actions>
@@ -79,7 +89,7 @@
busidref="quickstartAbortChannel"
/>
</listeners>
- <actions mep="OneWay">
+ <actions>
<action name="action2" class="org.jboss.soa.esb.actions.SystemPrintln">
<property name="printfull" value="true"/>
</action>
@@ -87,6 +97,21 @@
</actions>
</service>
+ <service category="EsbJbpm5Example"
+ name="JBpm5CallbackService"
+ description="Service which makes Callbacks into jBPM">
+ <listeners>
+ <jms-listener name="JMS-DCQListener"
+ busidref="jBPMCallbackBus"
+ maxThreads="1"
+ />
+ </listeners>
+ <actions mep="OneWay">
+ <action name="action" class="org.jboss.soa.esb.services.jbpm5.actions.Bpm5Callback">
+ <property name="process-definition-name" value="sample.bpmn"/>
+ </action>
+ </actions>
+ </service>
</services>
</jbossesb>
Modified: labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/sample.bpmn
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/sample.bpmn 2012-07-16 15:00:38 UTC (rev 38141)
+++ labs/jbossesb/branches/JBESB_4_11_CP/product/samples/quickstarts/bpm5processor/sample.bpmn 2012-07-19 02:21:57 UTC (rev 38142)
@@ -12,30 +12,45 @@
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
xmlns:tns="http://www.jboss.org/drools">
+ <itemDefinition id="_ServiceNameItem" structureRef="String" />
<itemDefinition id="_ServiceCategoryItem" structureRef="String" />
- <itemDefinition id="_ServiceNameItem" structureRef="String" />
+ <itemDefinition id="_jbpm5-session-idItem" structureRef="String" />
+ <itemDefinition id="_CallbackServiceNameItem" structureRef="String" />
+ <itemDefinition id="_CallbackServiceCategoryItem" structureRef="String" />
+ <itemDefinition id="_4-ServiceNameItem" structureRef="String" />
<itemDefinition id="_4-ServiceCategoryItem" structureRef="String" />
- <itemDefinition id="_4-ServiceNameItem" structureRef="String" />
+ <itemDefinition id="_4-jbpm5-session-idItem" structureRef="String" />
+ <itemDefinition id="_4-CallbackServiceNameItem" structureRef="String" />
+ <itemDefinition id="_4-CallbackServiceCategoryItem" structureRef="String" />
<process processType="Private" isExecutable="true" id="com.sample.bpmn.hello" name="Hello World" >
<!-- process variables -->
+ <property id="ServiceName" itemSubjectRef="_ServiceNameItem"/>
<property id="ServiceCategory" itemSubjectRef="_ServiceCategoryItem"/>
- <property id="ServiceName" itemSubjectRef="_ServiceNameItem"/>
+ <property id="jbpm5-session-id" itemSubjectRef="_jbpm5-session-idItem"/>
+ <property id="CallbackServiceName" itemSubjectRef="_CallbackServiceNameItem"/>
+ <property id="CallbackServiceCategory" itemSubjectRef="_CallbackServiceCategoryItem"/>
<!-- nodes -->
<startEvent id="_1" name="StartProcess" />
<endEvent id="_3" name="EndProcess" >
<terminateEventDefinition/>
</endEvent>
- <task id="_4" name="JBossESB" tns:taskName="JBossESB" >
+ <task id="_4" name="ESBAction" tns:taskName="ESBAction" >
<ioSpecification>
<dataInput id="_4_ServiceNameInput" name="ServiceName" />
+ <dataInput id="_4_jbpm5-session-idInput" name="jbpm5-session-id" />
<dataInput id="_4_ServiceCategoryInput" name="ServiceCategory" />
+ <dataInput id="_4_CallbackServiceNameInput" name="CallbackServiceName" />
+ <dataInput id="_4_CallbackServiceCategoryInput" name="CallbackServiceCategory" />
<inputSet>
<dataInputRefs>_4_ServiceNameInput</dataInputRefs>
+ <dataInputRefs>_4_jbpm5-session-idInput</dataInputRefs>
<dataInputRefs>_4_ServiceCategoryInput</dataInputRefs>
+ <dataInputRefs>_4_CallbackServiceNameInput</dataInputRefs>
+ <dataInputRefs>_4_CallbackServiceCategoryInput</dataInputRefs>
</inputSet>
<outputSet>
</outputSet>
@@ -48,12 +63,33 @@
</assignment>
</dataInputAssociation>
<dataInputAssociation>
+ <targetRef>_4_jbpm5-session-idInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">#{jbpm5-session-id}</from>
+ <to xsi:type="tFormalExpression">_4_jbpm5-session-idInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
<targetRef>_4_ServiceCategoryInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression">#{ServiceCategory}</from>
<to xsi:type="tFormalExpression">_4_ServiceCategoryInput</to>
</assignment>
</dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_4_CallbackServiceNameInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">#{CallbackServiceName}</from>
+ <to xsi:type="tFormalExpression">_4_CallbackServiceNameInput</to>
+ </assignment>
+ </dataInputAssociation>
+ <dataInputAssociation>
+ <targetRef>_4_CallbackServiceCategoryInput</targetRef>
+ <assignment>
+ <from xsi:type="tFormalExpression">#{CallbackServiceCategory}</from>
+ <to xsi:type="tFormalExpression">_4_CallbackServiceCategoryInput</to>
+ </assignment>
+ </dataInputAssociation>
</task>
<!-- connections -->
@@ -68,18 +104,18 @@
<dc:Bounds x="16" y="16" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_3" >
- <dc:Bounds x="228" y="16" width="48" height="48" />
+ <dc:Bounds x="206" y="17" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_4" >
- <dc:Bounds x="96" y="16" width="100" height="48" />
+ <dc:Bounds x="88" y="36" width="100" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_4-_3" >
- <di:waypoint x="146" y="40" />
- <di:waypoint x="252" y="40" />
+ <di:waypoint x="138" y="60" />
+ <di:waypoint x="230" y="41" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_1-_4" >
<di:waypoint x="40" y="40" />
- <di:waypoint x="146" y="40" />
+ <di:waypoint x="138" y="60" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
More information about the jboss-svn-commits
mailing list