Skip to content

Instantly share code, notes, and snippets.

@evacchi
Created March 5, 2021 08:25
Show Gist options
  • Save evacchi/9c831f4181373fbef779b37b04c844ad to your computer and use it in GitHub Desktop.
Save evacchi/9c831f4181373fbef779b37b04c844ad to your computer and use it in GitHub Desktop.
my-process.bpmn
<bpmn2:definitions 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="_P72zYV-6EDmrSITuK2tOlw" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:itemDefinition id="_nameItem" structureRef="String"/>
<bpmn2:itemDefinition id="_ageItem" structureRef="Integer"/>
<bpmn2:process id="my-process" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="my-process" isExecutable="true" processType="Public">
<bpmn2:property id="name" itemSubjectRef="_nameItem" name="name"/>
<bpmn2:property id="age" itemSubjectRef="_ageItem" name="age"/>
<bpmn2:sequenceFlow id="_A627D26C-DD92-4175-8372-77E98C7E4BD7" sourceRef="_BB7258FB-435F-447F-B52D-54D78D00F8D4" targetRef="_23D28193-C261-49AE-BB3F-BD748A8CAEE9">
<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="_F1F7CEBD-5546-461F-9908-840E582FA371" sourceRef="_DD95F53B-A07C-4CFF-9881-67F618023E61" targetRef="_BB7258FB-435F-447F-B52D-54D78D00F8D4">
<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:endEvent id="_23D28193-C261-49AE-BB3F-BD748A8CAEE9">
<bpmn2:incoming>_A627D26C-DD92-4175-8372-77E98C7E4BD7</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:scriptTask id="_BB7258FB-435F-447F-B52D-54D78D00F8D4" name="Task" scriptFormat="http://www.java.com/java">
<bpmn2:extensionElements>
<drools:metaData name="elementname">
<drools:metaValue><![CDATA[Task]]></drools:metaValue>
</drools:metaData>
</bpmn2:extensionElements>
<bpmn2:incoming>_F1F7CEBD-5546-461F-9908-840E582FA371</bpmn2:incoming>
<bpmn2:outgoing>_A627D26C-DD92-4175-8372-77E98C7E4BD7</bpmn2:outgoing>
<bpmn2:script>System.out.printf("Hello, %s!", name);
</bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:startEvent id="_DD95F53B-A07C-4CFF-9881-67F618023E61">
<bpmn2:outgoing>_F1F7CEBD-5546-461F-9908-840E582FA371</bpmn2:outgoing>
</bpmn2:startEvent>
</bpmn2:process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="my-process">
<bpmndi:BPMNShape id="shape__DD95F53B-A07C-4CFF-9881-67F618023E61" bpmnElement="_DD95F53B-A07C-4CFF-9881-67F618023E61">
<dc:Bounds height="56" width="56" x="322" y="165"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape__BB7258FB-435F-447F-B52D-54D78D00F8D4" bpmnElement="_BB7258FB-435F-447F-B52D-54D78D00F8D4">
<dc:Bounds height="102" width="154" x="458" y="142"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape__23D28193-C261-49AE-BB3F-BD748A8CAEE9" bpmnElement="_23D28193-C261-49AE-BB3F-BD748A8CAEE9">
<dc:Bounds height="56" width="56" x="692" y="165"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge_shape__DD95F53B-A07C-4CFF-9881-67F618023E61_to_shape__BB7258FB-435F-447F-B52D-54D78D00F8D4" bpmnElement="_F1F7CEBD-5546-461F-9908-840E582FA371">
<di:waypoint x="378" y="193"/>
<di:waypoint x="458" y="193"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="edge_shape__BB7258FB-435F-447F-B52D-54D78D00F8D4_to_shape__23D28193-C261-49AE-BB3F-BD748A8CAEE9" bpmnElement="_A627D26C-DD92-4175-8372-77E98C7E4BD7">
<di:waypoint x="612" y="193"/>
<di:waypoint x="692" y="193"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmn2:relationship type="BPSimData">
<bpmn2:extensionElements>
<bpsim:BPSimData>
<bpsim:Scenario id="default" name="Simulationscenario">
<bpsim:ScenarioParameters/>
<bpsim:ElementParameters elementRef="_DD95F53B-A07C-4CFF-9881-67F618023E61">
<bpsim:TimeParameters>
<bpsim:ProcessingTime>
<bpsim:NormalDistribution mean="0" standardDeviation="0"/>
</bpsim:ProcessingTime>
</bpsim:TimeParameters>
</bpsim:ElementParameters>
<bpsim:ElementParameters elementRef="_BB7258FB-435F-447F-B52D-54D78D00F8D4">
<bpsim:TimeParameters>
<bpsim:ProcessingTime>
<bpsim:NormalDistribution mean="0" standardDeviation="0"/>
</bpsim:ProcessingTime>
</bpsim:TimeParameters>
<bpsim:ResourceParameters>
<bpsim:Availability>
<bpsim:FloatingParameter value="0"/>
</bpsim:Availability>
<bpsim:Quantity>
<bpsim:FloatingParameter value="0"/>
</bpsim:Quantity>
</bpsim:ResourceParameters>
<bpsim:CostParameters>
<bpsim:UnitCost>
<bpsim:FloatingParameter value="0"/>
</bpsim:UnitCost>
</bpsim:CostParameters>
</bpsim:ElementParameters>
</bpsim:Scenario>
</bpsim:BPSimData>
</bpmn2:extensionElements>
<bpmn2:source>_P72zYV-6EDmrSITuK2tOlw</bpmn2:source>
<bpmn2:target>_P72zYV-6EDmrSITuK2tOlw</bpmn2:target>
</bpmn2:relationship>
</bpmn2:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment