Переглянути джерело

{/src/main/resources/net/p0f/samples/rhpam_fuse_integration/pam_simple_process/SayHello.bpmn}

rhpamAdmin 3 роки тому
батько
коміт
1cb9a8072a

+ 18 - 8
src/main/resources/net/p0f/samples/rhpam_fuse_integration/pam_simple_process/SayHello.bpmn

@@ -1,6 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_bAx14BBlEeyhjfOg7g60Jw" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd http://www.omg.org/spec/DD/20100524/DI DI.xsd " exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
+<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_TMbTUBBmEeyhjfOg7g60Jw" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd http://www.omg.org/spec/DD/20100524/DI DI.xsd " exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
+  <bpmn2:itemDefinition id="_customerItem" structureRef="net.p0f.samples.rhpam_fuse_integration.shared_dom.Customer"/>
+  <bpmn2:itemDefinition id="_awardItem" structureRef="net.p0f.samples.rhpam_fuse_integration.shared_dom.Award"/>
   <bpmn2:process id="pam-simple-process.SayHello" drools:packageName="net.p0f.samples.rhpam_fuse_integration.pam_simple_process" drools:version="1.0" drools:adHoc="false" name="SayHello" isExecutable="true" processType="Public">
+    <bpmn2:extensionElements>
+      <drools:import name="net.p0f.samples.rhpam_fuse_integration.shared_dom.Customer"/>
+      <drools:import name="net.p0f.samples.rhpam_fuse_integration.shared_dom.Award"/>
+    </bpmn2:extensionElements>
+    <bpmn2:property id="customer" itemSubjectRef="_customerItem" name="customer"/>
+    <bpmn2:property id="award" itemSubjectRef="_awardItem" name="award"/>
     <bpmn2:sequenceFlow id="_4D4F1D54-F7DD-4EFE-AFE0-4262F0786E3A" sourceRef="_FE055D3A-E557-4F65-9AA7-30FC1E816E51" targetRef="_F55E297B-374A-4C92-8997-AFD763054AE0">
       <bpmn2:extensionElements>
         <drools:metaData name="isAutoConnection.source">
@@ -29,6 +37,8 @@
       </bpmn2:extensionElements>
       <bpmn2:incoming>_4D4F1D54-F7DD-4EFE-AFE0-4262F0786E3A</bpmn2:incoming>
       <bpmn2:outgoing>_D6D61BAF-7D82-418A-B065-54D351499C48</bpmn2:outgoing>
+      <bpmn2:script><![CDATA[System.out.println("Hello, " + customer.getName());
+System.out.println("c: " + customer + ", a: " + award);]]></bpmn2:script>
     </bpmn2:scriptTask>
     <bpmn2:startEvent id="_FE055D3A-E557-4F65-9AA7-30FC1E816E51">
       <bpmn2:outgoing>_4D4F1D54-F7DD-4EFE-AFE0-4262F0786E3A</bpmn2:outgoing>
@@ -37,8 +47,8 @@
       <bpmn2:incoming>_D6D61BAF-7D82-418A-B065-54D351499C48</bpmn2:incoming>
     </bpmn2:endEvent>
   </bpmn2:process>
-  <bpmndi:BPMNDiagram id="_bAyc8BBlEeyhjfOg7g60Jw">
-    <bpmndi:BPMNPlane id="_bAyc8RBlEeyhjfOg7g60Jw" bpmnElement="pam-simple-process.SayHello">
+  <bpmndi:BPMNDiagram id="_TMb6YBBmEeyhjfOg7g60Jw">
+    <bpmndi:BPMNPlane id="_TMb6YRBmEeyhjfOg7g60Jw" bpmnElement="pam-simple-process.SayHello">
       <bpmndi:BPMNShape id="shape__99CDA01D-AC84-447E-966A-8CB8BB044A91" bpmnElement="_99CDA01D-AC84-447E-966A-8CB8BB044A91">
         <dc:Bounds height="56.0" width="56.0" x="461.0" y="61.0"/>
       </bpmndi:BPMNShape>
@@ -58,19 +68,19 @@
       </bpmndi:BPMNEdge>
     </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
-  <bpmn2:relationship id="_bAyc8hBlEeyhjfOg7g60Jw" type="BPSimData">
+  <bpmn2:relationship id="_TMb6YhBmEeyhjfOg7g60Jw" type="BPSimData">
     <bpmn2:extensionElements>
       <bpsim:BPSimData>
         <bpsim:Scenario xsi:type="bpsim:Scenario" id="default" name="Simulationscenario">
           <bpsim:ScenarioParameters xsi:type="bpsim:ScenarioParameters"/>
-          <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_FE055D3A-E557-4F65-9AA7-30FC1E816E51" id="_bAyc8xBlEeyhjfOg7g60Jw">
+          <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_FE055D3A-E557-4F65-9AA7-30FC1E816E51" id="_TMb6YxBmEeyhjfOg7g60Jw">
             <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">
               <bpsim:ProcessingTime xsi:type="bpsim:Parameter">
                 <bpsim:NormalDistribution mean="0.0" standardDeviation="0.0"/>
               </bpsim:ProcessingTime>
             </bpsim:TimeParameters>
           </bpsim:ElementParameters>
-          <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_F55E297B-374A-4C92-8997-AFD763054AE0" id="_bAyc9BBlEeyhjfOg7g60Jw">
+          <bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_F55E297B-374A-4C92-8997-AFD763054AE0" id="_TMb6ZBBmEeyhjfOg7g60Jw">
             <bpsim:TimeParameters xsi:type="bpsim:TimeParameters">
               <bpsim:ProcessingTime xsi:type="bpsim:Parameter">
                 <bpsim:NormalDistribution mean="0.0" standardDeviation="0.0"/>
@@ -93,7 +103,7 @@
         </bpsim:Scenario>
       </bpsim:BPSimData>
     </bpmn2:extensionElements>
-    <bpmn2:source>_bAx14BBlEeyhjfOg7g60Jw</bpmn2:source>
-    <bpmn2:target>_bAx14BBlEeyhjfOg7g60Jw</bpmn2:target>
+    <bpmn2:source>_TMbTUBBmEeyhjfOg7g60Jw</bpmn2:source>
+    <bpmn2:target>_TMbTUBBmEeyhjfOg7g60Jw</bpmn2:target>
   </bpmn2:relationship>
 </bpmn2:definitions>