cr-connect-workflow/tests/data/enum_options_all/enum_options_all.bpmn

132 lines
6.6 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:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_6e556e1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.10.0">
<bpmn:process id="Process_6e556e1" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_173zivg</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_173zivg" sourceRef="StartEvent_1" targetRef="CreateDataSetup" />
<bpmn:sequenceFlow id="Flow_1e3q669" sourceRef="CreateDataSetup" targetRef="myFormTask" />
<bpmn:endEvent id="Event_03y3h9u">
<bpmn:documentation># This is what was entered</bpmn:documentation>
<bpmn:incoming>Flow_0f9fac8</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0f9fac8" sourceRef="myFormTask" targetRef="Event_03y3h9u" />
<bpmn:scriptTask id="CreateDataSetup" name="Create Data Setup">
<bpmn:incoming>Flow_173zivg</bpmn:incoming>
<bpmn:outgoing>Flow_1e3q669</bpmn:outgoing>
<bpmn:script>dogs = [
{'label':'Ham','value':'ham'},
{'label':'Ginger','value':'ginger'},
{'label':'Etta','value':'etta'},
{'label':'Simo','value':'simo'},
]
</bpmn:script>
</bpmn:scriptTask>
<bpmn:userTask id="myFormTask" name="Render Form" camunda:formKey="my_form">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="ldap" label="'LDAP Lookup'" type="autocomplete">
<camunda:properties>
<camunda:property id="ldap.lookup" value="True" />
<camunda:property id="value.column" value="uid" />
<camunda:property id="label.column" value="display_name" />
<camunda:property id="autocomplete_num" value="20" />
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
</camunda:formField>
<camunda:formField id="standard_enum" label="'Standard Enum'" type="enum">
<camunda:properties>
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
<camunda:value id="one" name="1" />
<camunda:value id="two" name="2" />
<camunda:value id="three" name="3" />
<camunda:value id="four" name="4" />
<camunda:value id="five" name="5" />
</camunda:formField>
<camunda:formField id="spreadsheet" label="'Spreadsheet'" type="autocomplete">
<camunda:properties>
<camunda:property id="label.column" value="desc" />
<camunda:property id="value.column" value="code" />
<camunda:property id="spreadsheet.name" value="my_list.xlsx" />
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
</camunda:formField>
<camunda:formField id="data" label="'My Data'" type="enum">
<camunda:properties>
<camunda:property id="data.name" value="dogs" />
<camunda:property id="value.column" value="value" />
<camunda:property id="label.column" value="label" />
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
</camunda:formField>
<camunda:formField id="checkbox" label="'My Checkbox'" type="enum">
<camunda:properties>
<camunda:property id="enum_type" value="checkbox" />
<camunda:property id="data.name" value="dogs" />
<camunda:property id="value.column" value="value" />
<camunda:property id="label.column" value="label" />
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
</camunda:formField>
<camunda:formField id="standard" label="'Simple'" type="string">
<camunda:properties>
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
</camunda:formField>
<camunda:formField id="pets" label="'Prefered Pet'" type="enum">
<camunda:properties>
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
<camunda:value id="cats" name="Cats" />
<camunda:value id="dogs" name="Dogs" />
<camunda:value id="other" name="other" />
</camunda:formField>
<camunda:formField id="petsOther" label="'Prefered Pet (Other)'" type="string">
<camunda:properties>
<camunda:property id="hide_expression" value="pets != &#39;other&#39;" />
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
</camunda:formField>
<camunda:formField id="file" label="'upload file'" type="file">
<camunda:properties>
<camunda:property id="repeat" value="repeatme" />
</camunda:properties>
</camunda:formField>
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1e3q669</bpmn:incoming>
<bpmn:outgoing>Flow_0f9fac8</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_6e556e1">
<bpmndi:BPMNEdge id="Flow_0f9fac8_di" bpmnElement="Flow_0f9fac8">
<di:waypoint x="570" y="117" />
<di:waypoint x="712" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1e3q669_di" bpmnElement="Flow_1e3q669">
<di:waypoint x="370" y="117" />
<di:waypoint x="470" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_173zivg_di" bpmnElement="Flow_173zivg">
<di:waypoint x="215" y="117" />
<di:waypoint x="270" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_03y3h9u_di" bpmnElement="Event_03y3h9u">
<dc:Bounds x="712" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13epga6_di" bpmnElement="CreateDataSetup">
<dc:Bounds x="270" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1g2ib52_di" bpmnElement="myFormTask">
<dc:Bounds x="470" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>