Skip to content

Instantly share code, notes, and snippets.

@romartin
Created January 8, 2020 23:03
Show Gist options
  • Save romartin/43ac8c70016cb32007b3a6387ba63c57 to your computer and use it in GitHub Desktop.
Save romartin/43ac8c70016cb32007b3a6387ba63c57 to your computer and use it in GitHub Desktop.
process1.bpmn
<?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="_7-hYMBu6EeqzOJl4vdovqg" 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="__214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_MessageInputXItem" structureRef="String"/>
<bpmn2:process id="test.process1" drools:packageName="com.myspace.test" drools:version="1.0" drools:adHoc="false" name="process1" isExecutable="true">
<bpmn2:sequenceFlow id="_031103A2-2431-45E6-8947-D051F0F6096A" sourceRef="_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA" targetRef="_AE4F79F4-D758-429D-A4AD-249679912BA5">
<bpmn2:extensionElements>
<drools:metaData name="isAutoConnection.source">
<drools:metaValue><![CDATA[true]]></drools:metaValue>
</drools:metaData>
<drools:metaData name="isAutoConnection.target">
<drools:metaValue><![CDATA[true]]></drools:metaValue>
</drools:metaData>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="_274398CA-E386-459F-90F5-7A45C0A213B2" sourceRef="_35079701-C6BC-450D-9A58-4670A1C093BC" targetRef="_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA">
<bpmn2:extensionElements>
<drools:metaData name="isAutoConnection.target">
<drools:metaValue><![CDATA[true]]></drools:metaValue>
</drools:metaData>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:endEvent id="_AE4F79F4-D758-429D-A4AD-249679912BA5">
<bpmn2:incoming>_031103A2-2431-45E6-8947-D051F0F6096A</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:startEvent id="_35079701-C6BC-450D-9A58-4670A1C093BC">
<bpmn2:outgoing>_274398CA-E386-459F-90F5-7A45C0A213B2</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:task id="_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA" drools:taskName="Log" name="Log">
<bpmn2:extensionElements>
<drools:metaData name="elementname">
<drools:metaValue><![CDATA[Log]]></drools:metaValue>
</drools:metaData>
<drools:onEntry-script scriptFormat="http://www.java.com/java">
<drools:script><![CDATA[return true;]]></drools:script>
</drools:onEntry-script>
<drools:onExit-script scriptFormat="http://www.java.com/java">
<drools:script><![CDATA[return true;]]></drools:script>
</drools:onExit-script>
</bpmn2:extensionElements>
<bpmn2:incoming>_274398CA-E386-459F-90F5-7A45C0A213B2</bpmn2:incoming>
<bpmn2:outgoing>_031103A2-2431-45E6-8947-D051F0F6096A</bpmn2:outgoing>
<bpmn2:ioSpecification id="_7-hYMRu6EeqzOJl4vdovqg">
<bpmn2:dataInput id="_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_MessageInputX" drools:dtype="String" itemSubjectRef="__214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_MessageInputXItem" name="Message"/>
<bpmn2:dataInput id="_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_TaskNameInputX" drools:dtype="Object" name="TaskName"/>
<bpmn2:inputSet id="_7-hYMhu6EeqzOJl4vdovqg">
<bpmn2:dataInputRefs>_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_MessageInputX</bpmn2:dataInputRefs>
<bpmn2:dataInputRefs>_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_TaskNameInputX</bpmn2:dataInputRefs>
</bpmn2:inputSet>
<bpmn2:outputSet id="_7-hYMxu6EeqzOJl4vdovqg"/>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="_7-hYNBu6EeqzOJl4vdovqg">
<bpmn2:targetRef>_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_TaskNameInputX</bpmn2:targetRef>
<bpmn2:assignment id="_7-hYNRu6EeqzOJl4vdovqg">
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_7-hYNhu6EeqzOJl4vdovqg"><![CDATA[Log]]></bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_7-hYNxu6EeqzOJl4vdovqg">_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_TaskNameInputX</bpmn2:to>
</bpmn2:assignment>
</bpmn2:dataInputAssociation>
</bpmn2:task>
</bpmn2:process>
<bpmndi:BPMNDiagram id="_7-hYOBu6EeqzOJl4vdovqg">
<bpmndi:BPMNPlane id="_7-hYORu6EeqzOJl4vdovqg" bpmnElement="test.process1">
<bpmndi:BPMNShape id="shape__214C05AF-CFDB-4E30-A760-E7AC7A4EACCA" bpmnElement="_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA">
<dc:Bounds height="102.0" width="154.0" x="335.0" y="194.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape__35079701-C6BC-450D-9A58-4670A1C093BC" bpmnElement="_35079701-C6BC-450D-9A58-4670A1C093BC">
<dc:Bounds height="56.0" width="56.0" x="188.0" y="217.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape__AE4F79F4-D758-429D-A4AD-249679912BA5" bpmnElement="_AE4F79F4-D758-429D-A4AD-249679912BA5">
<dc:Bounds height="56.0" width="56.0" x="569.0" y="217.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge_shape__35079701-C6BC-450D-9A58-4670A1C093BC_to_shape__214C05AF-CFDB-4E30-A760-E7AC7A4EACCA" bpmnElement="_274398CA-E386-459F-90F5-7A45C0A213B2">
<di:waypoint xsi:type="dc:Point" x="216.0" y="245.0"/>
<di:waypoint xsi:type="dc:Point" x="335.0" y="245.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="edge_shape__214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_to_shape__AE4F79F4-D758-429D-A4AD-249679912BA5" bpmnElement="_031103A2-2431-45E6-8947-D051F0F6096A">
<di:waypoint xsi:type="dc:Point" x="489.0" y="245.0"/>
<di:waypoint xsi:type="dc:Point" x="569.0" y="245.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmn2:relationship id="_7-h_QBu6EeqzOJl4vdovqg" 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="_214C05AF-CFDB-4E30-A760-E7AC7A4EACCA" id="_7-h_QRu6EeqzOJl4vdovqg">
<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:ResourceParameters xsi:type="bpsim:ResourceParameters">
<bpsim:Availability xsi:type="bpsim:Parameter">
<bpsim:FloatingParameter value="0.0"/>
</bpsim:Availability>
<bpsim:Quantity xsi:type="bpsim:Parameter">
<bpsim:FloatingParameter value="0.0"/>
</bpsim:Quantity>
</bpsim:ResourceParameters>
<bpsim:CostParameters xsi:type="bpsim:CostParameters">
<bpsim:UnitCost xsi:type="bpsim:Parameter">
<bpsim:FloatingParameter value="0.0"/>
</bpsim:UnitCost>
</bpsim:CostParameters>
</bpsim:ElementParameters>
<bpsim:ElementParameters xsi:type="bpsim:ElementParameters" elementRef="_35079701-C6BC-450D-9A58-4670A1C093BC" id="_7-h_Qhu6EeqzOJl4vdovqg">
<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:Scenario>
</bpsim:BPSimData>
</bpmn2:extensionElements>
<bpmn2:source>_7-hYMBu6EeqzOJl4vdovqg</bpmn2:source>
<bpmn2:target>_7-hYMBu6EeqzOJl4vdovqg</bpmn2:target>
</bpmn2:relationship>
</bpmn2:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment