mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-24 13:48:30 +00:00
I've re-worked the workflow form endpoint, so that it only accepts the data that should be in the form, and ignores any other values that come back from the front end. It seems Formly has some bugs that were introducing confusing information, and I want everything to behave consistently. I had to re-work some of the tests, which were relying on an ability to set data through a form post without having a corresponding form to do so.
71 lines
3.8 KiB
XML
71 lines
3.8 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_17fwemw" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.3">
|
|
<bpmn:process id="MultiInstance" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1" name="StartEvent_1">
|
|
<bpmn:outgoing>Flow_0t6p1sb</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0t6p1sb" sourceRef="StartEvent_1" targetRef="Task_1v0e2zu" />
|
|
<bpmn:endEvent id="Event_End" name="Event_End">
|
|
<bpmn:incoming>Flow_0ugjw69</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0ugjw69" sourceRef="MultiInstanceTask" targetRef="Event_End" />
|
|
<bpmn:userTask id="MultiInstanceTask" name="Gather more information" camunda:formKey="GetEmail">
|
|
<bpmn:documentation># Please provide addtional information about:
|
|
## Investigator ID: {{investigator.user_id}}
|
|
## Role: {{investigator.type_full}}</bpmn:documentation>
|
|
<bpmn:extensionElements>
|
|
<camunda:formData>
|
|
<camunda:formField id="investigator.email" label="Email Address:" type="string" />
|
|
</camunda:formData>
|
|
<camunda:properties>
|
|
<camunda:property name="display_name" value="investigator.label" />
|
|
</camunda:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>SequenceFlow_1p568pp</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0ugjw69</bpmn:outgoing>
|
|
<bpmn:multiInstanceLoopCharacteristics camunda:collection="StudyInfo.investigators" camunda:elementVariable="investigator" />
|
|
</bpmn:userTask>
|
|
<bpmn:sequenceFlow id="SequenceFlow_1p568pp" sourceRef="Task_1v0e2zu" targetRef="MultiInstanceTask" />
|
|
<bpmn:scriptTask id="Task_1v0e2zu" name="Load Personnel">
|
|
<bpmn:incoming>Flow_0t6p1sb</bpmn:incoming>
|
|
<bpmn:outgoing>SequenceFlow_1p568pp</bpmn:outgoing>
|
|
<bpmn:script>StudyInfo = {}
|
|
StudyInfo['investigators'] = study_info('investigators')</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="MultiInstance">
|
|
<bpmndi:BPMNEdge id="SequenceFlow_1p568pp_di" bpmnElement="SequenceFlow_1p568pp">
|
|
<di:waypoint x="350" y="117" />
|
|
<di:waypoint x="410" y="117" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0ugjw69_di" bpmnElement="Flow_0ugjw69">
|
|
<di:waypoint x="510" y="117" />
|
|
<di:waypoint x="582" y="117" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0t6p1sb_di" bpmnElement="Flow_0t6p1sb">
|
|
<di:waypoint x="178" y="117" />
|
|
<di:waypoint x="250" y="117" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="142" y="99" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="129" y="142" width="64" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1g0pmib_di" bpmnElement="Event_End">
|
|
<dc:Bounds x="582" y="99" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="575" y="142" width="54" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1iyilui_di" bpmnElement="MultiInstanceTask">
|
|
<dc:Bounds x="410" y="77" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="ScriptTask_0cbbirp_di" bpmnElement="Task_1v0e2zu">
|
|
<dc:Bounds x="250" y="77" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|