sample-process-models/acceptance-tests-group-one/acceptance-tests-model-2/test_form.bpmn

188 lines
9.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1v1rp1q" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.3">
<bpmn:process id="Process_acceptance_tests_group_one_acceptance_tests_model_2_test_form_test_form" name="Test Form" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_0lvudp8</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_0lvudp8" sourceRef="StartEvent_1" targetRef="set_system_generated_number" />
<bpmn:endEvent id="EndEvent_0q4qzl9">
<bpmn:incoming>Flow_17my2ps</bpmn:incoming>
</bpmn:endEvent>
<bpmn:userTask id="form1" name="get_user_generated_number_one" camunda:formKey="ConfirmEmail">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="form1.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="form1_ui.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0kk2hzj</bpmn:incoming>
<bpmn:outgoing>Flow_1cck1pb</bpmn:outgoing>
</bpmn:userTask>
<bpmn:scriptTask id="multiply1" name="multiply" scriptFormat="python">
<bpmn:incoming>Flow_1cck1pb</bpmn:incoming>
<bpmn:outgoing>Flow_16gxvwr</bpmn:outgoing>
<bpmn:script>product_one = system_generated_number * user_generated_number_1</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0kk2hzj" sourceRef="set_system_generated_number" targetRef="form1" />
<bpmn:sequenceFlow id="Flow_16gxvwr" sourceRef="multiply1" targetRef="form2" />
<bpmn:sequenceFlow id="Flow_1cck1pb" sourceRef="form1" targetRef="multiply1" />
<bpmn:scriptTask id="set_system_generated_number" name="set_system_generated_number" scriptFormat="python">
<bpmn:incoming>SequenceFlow_0lvudp8</bpmn:incoming>
<bpmn:outgoing>Flow_0kk2hzj</bpmn:outgoing>
<bpmn:script>system_generated_number = 4</bpmn:script>
</bpmn:scriptTask>
<bpmn:userTask id="form2" name="get_user_generated_number_two">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="form2.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="form2_ui.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_16gxvwr</bpmn:incoming>
<bpmn:outgoing>Flow_0k1q81g</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0k1q81g" sourceRef="form2" targetRef="multiply2" />
<bpmn:scriptTask id="multiply2" name="multiply" scriptFormat="python">
<bpmn:incoming>Flow_0k1q81g</bpmn:incoming>
<bpmn:outgoing>Flow_1dhe346</bpmn:outgoing>
<bpmn:script>product_two = product_one * user_generated_number_2</bpmn:script>
</bpmn:scriptTask>
<bpmn:userTask id="form3" name="get_user_generated_number_three">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="form3.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="form3_ui.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1dhe346</bpmn:incoming>
<bpmn:outgoing>Flow_0h8gnje</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1dhe346" sourceRef="multiply2" targetRef="form3" />
<bpmn:scriptTask id="multiply3" name="multiply" scriptFormat="python">
<bpmn:incoming>Flow_0h8gnje</bpmn:incoming>
<bpmn:outgoing>Flow_0lq17rq</bpmn:outgoing>
<bpmn:script>product_three = product_two * user_generated_number_3</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0h8gnje" sourceRef="form3" targetRef="multiply3" />
<bpmn:userTask id="form4" name="get_user_generated_number_four">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="form4.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="form4_ui.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0lq17rq</bpmn:incoming>
<bpmn:outgoing>Flow_0lxveac</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0lq17rq" sourceRef="multiply3" targetRef="form4" />
<bpmn:scriptTask id="multiply4" name="multiply" scriptFormat="python">
<bpmn:incoming>Flow_0lxveac</bpmn:incoming>
<bpmn:outgoing>Flow_17my2ps</bpmn:outgoing>
<bpmn:script>product_four = product_three * user_generated_number_4</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_17my2ps" sourceRef="multiply4" targetRef="EndEvent_0q4qzl9" />
<bpmn:sequenceFlow id="Flow_0lxveac" sourceRef="form4" targetRef="multiply4" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_acceptance_tests_group_one_acceptance_tests_model_2_test_form_test_form">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="112" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_0q4qzl9_di" bpmnElement="EndEvent_0q4qzl9">
<dc:Bounds x="892" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0hkyp4b_di" bpmnElement="form1">
<dc:Bounds x="230" y="210" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fztkl6_di" bpmnElement="multiply1">
<dc:Bounds x="330" y="77" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0mhcmyh_di" bpmnElement="set_system_generated_number">
<dc:Bounds x="190" y="77" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_03j894j" bpmnElement="form2">
<dc:Bounds x="400" y="210" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0idhj7o" bpmnElement="multiply2">
<dc:Bounds x="460" y="77" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0cn57hn" bpmnElement="form3">
<dc:Bounds x="550" y="210" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_16rdx33" bpmnElement="multiply3">
<dc:Bounds x="600" y="77" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1kxlo7p" bpmnElement="form4">
<dc:Bounds x="680" y="210" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0z9w0sv" bpmnElement="multiply4">
<dc:Bounds x="760" y="77" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0lvudp8_di" bpmnElement="SequenceFlow_0lvudp8">
<di:waypoint x="147" y="110" />
<di:waypoint x="190" y="110" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0kk2hzj_di" bpmnElement="Flow_0kk2hzj">
<di:waypoint x="240" y="157" />
<di:waypoint x="240" y="184" />
<di:waypoint x="280" y="184" />
<di:waypoint x="280" y="210" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_16gxvwr_di" bpmnElement="Flow_16gxvwr">
<di:waypoint x="380" y="157" />
<di:waypoint x="380" y="184" />
<di:waypoint x="430" y="184" />
<di:waypoint x="430" y="210" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1cck1pb_di" bpmnElement="Flow_1cck1pb">
<di:waypoint x="330" y="250" />
<di:waypoint x="350" y="250" />
<di:waypoint x="350" y="157" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0k1q81g_di" bpmnElement="Flow_0k1q81g">
<di:waypoint x="470" y="210" />
<di:waypoint x="470" y="184" />
<di:waypoint x="480" y="184" />
<di:waypoint x="480" y="157" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1dhe346_di" bpmnElement="Flow_1dhe346">
<di:waypoint x="540" y="160" />
<di:waypoint x="540" y="184" />
<di:waypoint x="580" y="184" />
<di:waypoint x="580" y="210" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0h8gnje_di" bpmnElement="Flow_0h8gnje">
<di:waypoint x="620" y="210" />
<di:waypoint x="620" y="184" />
<di:waypoint x="630" y="184" />
<di:waypoint x="630" y="157" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lq17rq_di" bpmnElement="Flow_0lq17rq">
<di:waypoint x="650" y="157" />
<di:waypoint x="650" y="180" />
<di:waypoint x="700" y="180" />
<di:waypoint x="700" y="210" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_17my2ps_di" bpmnElement="Flow_17my2ps">
<di:waypoint x="860" y="117" />
<di:waypoint x="892" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lxveac_di" bpmnElement="Flow_0lxveac">
<di:waypoint x="730" y="210" />
<di:waypoint x="730" y="184" />
<di:waypoint x="810" y="184" />
<di:waypoint x="810" y="157" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>