89 lines
4.1 KiB
XML
89 lines
4.1 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
|
<bpmn:process id="MVP_Demo_Preload" name="MVP Demo Preload" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_0tccoiv</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0tccoiv" sourceRef="StartEvent_1" targetRef="Activity_05coiy3" />
|
|
<bpmn:userTask id="Activity_05coiy3" name="Choose Configuration">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="demo-preload_JSONSchema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="demo-preload_UISchema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0tccoiv</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1szj88a</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:endEvent id="Event_1by0v3h">
|
|
<bpmn:incoming>Flow_13l3max</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_1szj88a" sourceRef="Activity_05coiy3" targetRef="Activity_0k1o79j" />
|
|
<bpmn:sequenceFlow id="Flow_13l3max" sourceRef="Activity_0k1o79j" targetRef="Event_1by0v3h" />
|
|
<bpmn:scriptTask id="Activity_0k1o79j" name="Set Data Preload">
|
|
<bpmn:incoming>Flow_1szj88a</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_13l3max</bpmn:outgoing>
|
|
<bpmn:script>invoice = {}
|
|
|
|
# no numbers in contributor name validation
|
|
if " Number in contributor name" in ValidationChoices:
|
|
invoice["contributorName"] = "Harmee5 Singh"
|
|
else:
|
|
invoice["contributorName"] = "Harmeet Singh"
|
|
|
|
# Invoice amount number of decimals validation
|
|
if " Too many decimals in invoice amount" in ValidationChoices:
|
|
if scenarioChoices == "Correct invoice amount":
|
|
invoice["invoiceAmount"] = 10000.001
|
|
else:
|
|
invoice["invoiceAmount"] = 10001.001
|
|
else:
|
|
if scenarioChoices == "Correct invoice amount":
|
|
invoice["invoiceAmount"] = 10000.00
|
|
else:
|
|
invoice["invoiceAmount"] = 10001.00
|
|
|
|
# Due date validation
|
|
if " Due date before today's date" in ValidationChoices:
|
|
invoice["dueDate"] = "2021-12-12"
|
|
else:
|
|
invoice["dueDate"] = "2022-12-12"
|
|
|
|
# Set remainder of form fields
|
|
invoice["contributorId"] = 12
|
|
invoice["invoiceId"] = 1234
|
|
invoice["invoiceCurrency"] = "AUD"
|
|
|
|
test = 1.001</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="MVP_Demo_Preload">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1h9oyqm_di" bpmnElement="Activity_05coiy3">
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1by0v3h_di" bpmnElement="Event_1by0v3h">
|
|
<dc:Bounds x="622" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1j22zjx_di" bpmnElement="Activity_0k1o79j">
|
|
<dc:Bounds x="440" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0tccoiv_di" bpmnElement="Flow_0tccoiv">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="270" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1szj88a_di" bpmnElement="Flow_1szj88a">
|
|
<di:waypoint x="370" y="177" />
|
|
<di:waypoint x="440" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_13l3max_di" bpmnElement="Flow_13l3max">
|
|
<di:waypoint x="540" y="177" />
|
|
<di:waypoint x="622" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|