added another form to the test form bpmn

This commit is contained in:
jasquat 2022-07-19 16:59:06 -04:00
parent 98bac7573d
commit f23f02c086
2 changed files with 60 additions and 18 deletions

View File

@ -0,0 +1,10 @@
{
"title": "Enter a number to multiply with the previous product",
"description": "Your number will be multiplied with {{product}}",
"type": "object",
"required": ["second_user_generated_number"],
"properties": {
"product": {"type": "integer", "title": "Previous Product", "default": 0},
"second_user_generated_number": {"type": "integer", "title": "User Generated Number", "default": 0}
}
}

View File

@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?> <?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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_1v1rp1q" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.3"> <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="test_form" name="Test Form" isExecutable="true"> <bpmn:process id="test_form" name="Test Form" isExecutable="true">
<bpmn:startEvent id="StartEvent_1"> <bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_0lvudp8</bpmn:outgoing> <bpmn:outgoing>SequenceFlow_0lvudp8</bpmn:outgoing>
</bpmn:startEvent> </bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_0lvudp8" sourceRef="StartEvent_1" targetRef="set_system_generated_number" /> <bpmn:sequenceFlow id="SequenceFlow_0lvudp8" sourceRef="StartEvent_1" targetRef="set_system_generated_number" />
<bpmn:endEvent id="EndEvent_0q4qzl9"> <bpmn:endEvent id="EndEvent_0q4qzl9">
<bpmn:incoming>Flow_16gxvwr</bpmn:incoming> <bpmn:incoming>Flow_1hp8s94</bpmn:incoming>
</bpmn:endEvent> </bpmn:endEvent>
<bpmn:userTask id="get_user_generated_number" name="get_user_generated_number" camunda:formKey="ConfirmEmail"> <bpmn:userTask id="get_user_generated_number" name="get_user_generated_number" camunda:formKey="ConfirmEmail">
<bpmn:incoming>Flow_0kk2hzj</bpmn:incoming>
<bpmn:outgoing>Flow_1cck1pb</bpmn:outgoing>
<bpmn:extensionElements> <bpmn:extensionElements>
<spiffworkflow:properties> <spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="give_me_a_number_form.json" /> <spiffworkflow:property name="formJsonSchemaFilename" value="give_me_a_number_form.json" />
</spiffworkflow:properties> </spiffworkflow:properties>
</bpmn:extensionElements> </bpmn:extensionElements>
<bpmn:incoming>Flow_0kk2hzj</bpmn:incoming>
<bpmn:outgoing>Flow_1cck1pb</bpmn:outgoing>
</bpmn:userTask> </bpmn:userTask>
<bpmn:scriptTask id="multiply" name="multiply" scriptFormat="python"> <bpmn:scriptTask id="multiply" name="multiply" scriptFormat="python">
<bpmn:incoming>Flow_1cck1pb</bpmn:incoming> <bpmn:incoming>Flow_1cck1pb</bpmn:incoming>
@ -23,48 +23,80 @@
<bpmn:script>product = system_generated_number * user_generated_number</bpmn:script> <bpmn:script>product = system_generated_number * user_generated_number</bpmn:script>
</bpmn:scriptTask> </bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0kk2hzj" sourceRef="set_system_generated_number" targetRef="get_user_generated_number" /> <bpmn:sequenceFlow id="Flow_0kk2hzj" sourceRef="set_system_generated_number" targetRef="get_user_generated_number" />
<bpmn:sequenceFlow id="Flow_16gxvwr" sourceRef="multiply" targetRef="EndEvent_0q4qzl9" /> <bpmn:sequenceFlow id="Flow_16gxvwr" sourceRef="multiply" targetRef="Activity_05z7ccx" />
<bpmn:sequenceFlow id="Flow_1cck1pb" sourceRef="get_user_generated_number" targetRef="multiply" /> <bpmn:sequenceFlow id="Flow_1cck1pb" sourceRef="get_user_generated_number" targetRef="multiply" />
<bpmn:scriptTask id="set_system_generated_number" name="set_system_generated_number" scriptFormat="python"> <bpmn:scriptTask id="set_system_generated_number" name="set_system_generated_number" scriptFormat="python">
<bpmn:incoming>SequenceFlow_0lvudp8</bpmn:incoming> <bpmn:incoming>SequenceFlow_0lvudp8</bpmn:incoming>
<bpmn:outgoing>Flow_0kk2hzj</bpmn:outgoing> <bpmn:outgoing>Flow_0kk2hzj</bpmn:outgoing>
<bpmn:script>system_generated_number = 4</bpmn:script> <bpmn:script>system_generated_number = 4</bpmn:script>
</bpmn:scriptTask> </bpmn:scriptTask>
<bpmn:userTask id="Activity_05z7ccx" name="get_user_generated_number">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="give_me_another_number_form.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="Activity_05z7ccx" targetRef="Activity_00mekhp" />
<bpmn:scriptTask id="Activity_00mekhp" name="multiply" scriptFormat="python">
<bpmn:incoming>Flow_0k1q81g</bpmn:incoming>
<bpmn:outgoing>Flow_1hp8s94</bpmn:outgoing>
<bpmn:script>final_product = product * second_user_generated_number</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1hp8s94" sourceRef="Activity_00mekhp" targetRef="EndEvent_0q4qzl9" />
</bpmn:process> </bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> <bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="test_form"> <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="test_form">
<bpmndi:BPMNEdge id="Flow_1cck1pb_di" bpmnElement="Flow_1cck1pb"> <bpmndi:BPMNEdge id="Flow_1cck1pb_di" bpmnElement="Flow_1cck1pb">
<di:waypoint x="480" y="117" /> <di:waypoint x="420" y="117" />
<di:waypoint x="520" y="117" /> <di:waypoint x="450" y="117" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_16gxvwr_di" bpmnElement="Flow_16gxvwr"> <bpmndi:BPMNEdge id="Flow_16gxvwr_di" bpmnElement="Flow_16gxvwr">
<di:waypoint x="620" y="117" /> <di:waypoint x="550" y="117" />
<di:waypoint x="702" y="117" /> <di:waypoint x="580" y="117" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0kk2hzj_di" bpmnElement="Flow_0kk2hzj"> <bpmndi:BPMNEdge id="Flow_0kk2hzj_di" bpmnElement="Flow_0kk2hzj">
<di:waypoint x="330" y="117" /> <di:waypoint x="290" y="117" />
<di:waypoint x="380" y="117" /> <di:waypoint x="320" y="117" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_0lvudp8_di" bpmnElement="SequenceFlow_0lvudp8"> <bpmndi:BPMNEdge id="SequenceFlow_0lvudp8_di" bpmnElement="SequenceFlow_0lvudp8">
<di:waypoint x="147" y="110" /> <di:waypoint x="147" y="110" />
<di:waypoint x="230" y="110" /> <di:waypoint x="190" y="110" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0k1q81g_di" bpmnElement="Flow_0k1q81g">
<di:waypoint x="680" y="117" />
<di:waypoint x="730" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1hp8s94_di" bpmnElement="Flow_1hp8s94">
<di:waypoint x="830" y="117" />
<di:waypoint x="862" y="117" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="112" y="99" width="36" height="36" /> <dc:Bounds x="112" y="99" width="36" height="36" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_0q4qzl9_di" bpmnElement="EndEvent_0q4qzl9"> <bpmndi:BPMNShape id="Activity_0mhcmyh_di" bpmnElement="set_system_generated_number">
<dc:Bounds x="702" y="99" width="36" height="36" /> <dc:Bounds x="190" y="77" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0hkyp4b_di" bpmnElement="get_user_generated_number"> <bpmndi:BPMNShape id="Activity_0hkyp4b_di" bpmnElement="get_user_generated_number">
<dc:Bounds x="380" y="77" width="100" height="80" /> <dc:Bounds x="320" y="77" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fztkl6_di" bpmnElement="multiply"> <bpmndi:BPMNShape id="Activity_1fztkl6_di" bpmnElement="multiply">
<dc:Bounds x="520" y="77" width="100" height="80" /> <dc:Bounds x="450" y="77" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0mhcmyh_di" bpmnElement="set_system_generated_number"> <bpmndi:BPMNShape id="BPMNShape_03j894j" bpmnElement="Activity_05z7ccx">
<dc:Bounds x="230" y="77" width="100" height="80" /> <dc:Bounds x="580" y="77" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_0q4qzl9_di" bpmnElement="EndEvent_0q4qzl9">
<dc:Bounds x="862" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0idhj7o" bpmnElement="Activity_00mekhp">
<dc:Bounds x="730" y="77" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
</bpmndi:BPMNPlane> </bpmndi:BPMNPlane>