73 lines
3.7 KiB
XML
73 lines
3.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: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="Proccess_uwqsq7r" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_12lrt4m</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_12lrt4m" sourceRef="StartEvent_1" targetRef="Activity_0x8wsup" />
|
|
<bpmn:sequenceFlow id="Flow_0pxbkxt" sourceRef="Activity_0x8wsup" targetRef="Activity_0cpfbkq" />
|
|
<bpmn:endEvent id="Event_0hexrrt">
|
|
<bpmn:incoming>Flow_0ihjxu5</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0ihjxu5" sourceRef="Activity_0cpfbkq" targetRef="Event_0hexrrt" />
|
|
<bpmn:scriptTask id="Activity_0x8wsup" name="Set Name">
|
|
<bpmn:incoming>Flow_12lrt4m</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0pxbkxt</bpmn:outgoing>
|
|
<bpmn:script>contributorName = "Natalia"</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:scriptTask id="Activity_0cpfbkq" name="Check Name">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:unitTests>
|
|
<spiffworkflow:unitTest id="ScriptTest_true">
|
|
<spiffworkflow:inputJson>{"contributorName":"Natalia1"}</spiffworkflow:inputJson>
|
|
<spiffworkflow:expectedOutputJson>{"contributorName":"Natalia1","isNameNum":true}</spiffworkflow:expectedOutputJson>
|
|
</spiffworkflow:unitTest>
|
|
<spiffworkflow:unitTest id="ScriptTest_false">
|
|
<spiffworkflow:inputJson>{"contributorName":"Natalia"}</spiffworkflow:inputJson>
|
|
<spiffworkflow:expectedOutputJson>{"contributorName":"Natalia","isNameNum":false}</spiffworkflow:expectedOutputJson>
|
|
</spiffworkflow:unitTest>
|
|
</spiffworkflow:unitTests>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0pxbkxt</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0ihjxu5</bpmn:outgoing>
|
|
<bpmn:script>isNameNum = False
|
|
for c in contributorName:
|
|
if c.isdigit():
|
|
isNameNum = True
|
|
break
|
|
|
|
del c</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_uwqsq7r">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0hexrrt_di" bpmnElement="Event_0hexrrt">
|
|
<dc:Bounds x="592" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0cpke5h_di" bpmnElement="Activity_0x8wsup">
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0qj62f6_di" bpmnElement="Activity_0cpfbkq">
|
|
<dc:Bounds x="430" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_12lrt4m_di" bpmnElement="Flow_12lrt4m">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="270" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0pxbkxt_di" bpmnElement="Flow_0pxbkxt">
|
|
<di:waypoint x="370" y="177" />
|
|
<di:waypoint x="430" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0ihjxu5_di" bpmnElement="Flow_0ihjxu5">
|
|
<di:waypoint x="530" y="177" />
|
|
<di:waypoint x="592" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|