2024-01-21 21:59:47 +00:00
|
|
|
<?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">
|
2024-01-22 07:59:24 +00:00
|
|
|
<bpmn:process id="Process_o02h16r" name="Пример использования внешнего сервиса" isExecutable="true">
|
2024-01-22 08:00:09 +00:00
|
|
|
<bpmn:documentation>Процесс получает данные из внешнего сервиса через АПИ и в следующей задаче отображает их пользователю.</bpmn:documentation>
|
2024-01-31 17:23:57 +00:00
|
|
|
<bpmn:ioSpecification>
|
2024-01-31 17:25:31 +00:00
|
|
|
<bpmn:dataInput id="DataInput-54855333-1" name="something" />
|
2024-01-31 17:23:57 +00:00
|
|
|
<bpmn:inputSet>
|
|
|
|
<bpmn:dataInputRefs>DataInput-54855333-1</bpmn:dataInputRefs>
|
|
|
|
</bpmn:inputSet>
|
|
|
|
<bpmn:outputSet />
|
|
|
|
</bpmn:ioSpecification>
|
2024-01-21 21:59:47 +00:00
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_0740w4f</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_0740w4f" sourceRef="StartEvent_1" targetRef="Activity_09j1q2v" />
|
|
|
|
<bpmn:endEvent id="Event_085wz5e">
|
|
|
|
<bpmn:incoming>Flow_1eds99n</bpmn:incoming>
|
|
|
|
</bpmn:endEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_15nz4sd" sourceRef="Activity_09j1q2v" targetRef="Activity_1ly2rek" />
|
2024-01-22 07:30:30 +00:00
|
|
|
<bpmn:serviceTask id="Activity_09j1q2v" name="Запрос к API">
|
2024-01-21 21:59:47 +00:00
|
|
|
<bpmn:extensionElements>
|
2024-01-22 07:48:16 +00:00
|
|
|
<spiffworkflow:serviceTaskOperator id="http/GetRequest" resultVariable="formData">
|
2024-01-21 21:59:47 +00:00
|
|
|
<spiffworkflow:parameters>
|
2024-01-22 07:31:07 +00:00
|
|
|
<spiffworkflow:parameter id="url" type="str" value=""http://metaphorpsum.com/paragraphs/4/4"" />
|
2024-01-21 21:59:47 +00:00
|
|
|
<spiffworkflow:parameter id="headers" type="any" />
|
|
|
|
<spiffworkflow:parameter id="params" type="any" />
|
|
|
|
<spiffworkflow:parameter id="basic_auth_username" type="str" />
|
|
|
|
<spiffworkflow:parameter id="basic_auth_password" type="str" />
|
|
|
|
</spiffworkflow:parameters>
|
|
|
|
</spiffworkflow:serviceTaskOperator>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_0740w4f</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_15nz4sd</bpmn:outgoing>
|
2024-01-31 17:23:57 +00:00
|
|
|
<bpmn:property id="Property_1h15cjz" name="__targetRef_placeholder" />
|
|
|
|
<bpmn:dataInputAssociation id="DataInputAssociation_1vnyxx4">
|
|
|
|
<bpmn:sourceRef>DataObjectReference_1gighxu</bpmn:sourceRef>
|
|
|
|
<bpmn:targetRef>Property_1h15cjz</bpmn:targetRef>
|
|
|
|
</bpmn:dataInputAssociation>
|
2024-01-31 17:25:31 +00:00
|
|
|
<bpmn:dataOutputAssociation id="DataOutputAssociation_06bwhfu">
|
|
|
|
<bpmn:targetRef>DataStoreReference_119yx2q</bpmn:targetRef>
|
|
|
|
</bpmn:dataOutputAssociation>
|
2024-01-21 21:59:47 +00:00
|
|
|
</bpmn:serviceTask>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1eds99n" sourceRef="Activity_1ly2rek" targetRef="Event_085wz5e" />
|
2024-01-22 07:30:30 +00:00
|
|
|
<bpmn:userTask id="Activity_1ly2rek" name="Редактирование результатов">
|
2024-01-21 21:59:47 +00:00
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:properties>
|
|
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="service-schema.json" />
|
|
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="service-uischema.json" />
|
|
|
|
</spiffworkflow:properties>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_15nz4sd</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1eds99n</bpmn:outgoing>
|
|
|
|
</bpmn:userTask>
|
2024-01-31 17:22:51 +00:00
|
|
|
<bpmn:dataObject id="input_data" />
|
|
|
|
<bpmn:dataObjectReference id="DataObjectReference_1gighxu" name="Input Data" dataObjectRef="input_data" />
|
2024-01-31 17:25:31 +00:00
|
|
|
<bpmn:dataStoreReference id="DataStoreReference_119yx2q" name="database" />
|
2024-01-21 21:59:47 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_o02h16r">
|
2024-01-31 17:23:57 +00:00
|
|
|
<bpmndi:BPMNShape id="DataInput-54855333-1DI" bpmnElement="DataInput-54855333-1">
|
2024-01-31 17:25:31 +00:00
|
|
|
<dc:Bounds x="-28" y="185" width="36" height="50" />
|
|
|
|
<bpmndi:BPMNLabel>
|
|
|
|
<dc:Bounds x="-35" y="242" width="51" height="14" />
|
|
|
|
</bpmndi:BPMNLabel>
|
2024-01-31 17:23:57 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2024-01-22 13:59:12 +00:00
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
|
|
<dc:Bounds x="112" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2024-01-31 17:20:46 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_085wz5e_di" bpmnElement="Event_085wz5e">
|
|
|
|
<dc:Bounds x="532" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2024-01-22 13:59:12 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1wxlxx3_di" bpmnElement="Activity_09j1q2v">
|
|
|
|
<dc:Bounds x="210" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2024-01-31 17:20:46 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1bdib3v_di" bpmnElement="Activity_1ly2rek">
|
|
|
|
<dc:Bounds x="390" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2024-01-31 17:23:57 +00:00
|
|
|
<bpmndi:BPMNShape id="DataObjectReference_1gighxu_di" bpmnElement="DataObjectReference_1gighxu">
|
|
|
|
<dc:Bounds x="112" y="-35" width="36" height="50" />
|
|
|
|
<bpmndi:BPMNLabel>
|
|
|
|
<dc:Bounds x="105" y="22" width="51" height="14" />
|
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNShape>
|
2024-01-31 17:25:31 +00:00
|
|
|
<bpmndi:BPMNShape id="DataStoreReference_119yx2q_di" bpmnElement="DataStoreReference_119yx2q">
|
|
|
|
<dc:Bounds x="315" y="345" width="50" height="50" />
|
|
|
|
<bpmndi:BPMNLabel>
|
|
|
|
<dc:Bounds x="318" y="402" width="46" height="14" />
|
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNShape>
|
2024-01-21 21:59:47 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_0740w4f_di" bpmnElement="Flow_0740w4f">
|
2024-01-22 13:59:12 +00:00
|
|
|
<di:waypoint x="148" y="177" />
|
|
|
|
<di:waypoint x="210" y="177" />
|
2024-01-21 21:59:47 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_15nz4sd_di" bpmnElement="Flow_15nz4sd">
|
2024-01-22 13:59:12 +00:00
|
|
|
<di:waypoint x="260" y="137" />
|
|
|
|
<di:waypoint x="260" y="117" />
|
2024-01-21 21:59:47 +00:00
|
|
|
<di:waypoint x="440" y="117" />
|
|
|
|
<di:waypoint x="440" y="137" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2024-01-31 17:25:31 +00:00
|
|
|
<bpmndi:BPMNEdge id="DataInputAssociation_1vnyxx4_di" bpmnElement="DataInputAssociation_1vnyxx4">
|
|
|
|
<di:waypoint x="147" y="15" />
|
|
|
|
<di:waypoint x="232" y="137" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2024-01-21 21:59:47 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_1eds99n_di" bpmnElement="Flow_1eds99n">
|
|
|
|
<di:waypoint x="490" y="177" />
|
|
|
|
<di:waypoint x="532" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2024-01-31 17:25:31 +00:00
|
|
|
<bpmndi:BPMNEdge id="DataOutputAssociation_06bwhfu_di" bpmnElement="DataOutputAssociation_06bwhfu">
|
|
|
|
<di:waypoint x="276" y="217" />
|
|
|
|
<di:waypoint x="326" y="345" />
|
2024-01-31 17:23:57 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2024-01-21 21:59:47 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|