117 lines
6.5 KiB
Plaintext
Raw Normal View History

<?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="Process_o02h16r" name="Пример использования внешнего сервиса" isExecutable="true">
<bpmn:documentation>Процесс получает данные из внешнего сервиса через АПИ и в следующей задаче отображает их пользователю.</bpmn:documentation>
<bpmn:ioSpecification>
<bpmn:dataInput id="DataInput-54855333-1" name="something" />
<bpmn:inputSet>
<bpmn:dataInputRefs>DataInput-54855333-1</bpmn:dataInputRefs>
</bpmn:inputSet>
<bpmn:outputSet />
</bpmn:ioSpecification>
<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" />
<bpmn:serviceTask id="Activity_09j1q2v" name="Запрос к API">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="http/GetRequest" resultVariable="formData">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="url" type="str" value="&#34;http://metaphorpsum.com/paragraphs/4/4&#34;" />
<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>
<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>
<bpmn:dataOutputAssociation id="DataOutputAssociation_06bwhfu">
<bpmn:targetRef>DataStoreReference_119yx2q</bpmn:targetRef>
</bpmn:dataOutputAssociation>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1eds99n" sourceRef="Activity_1ly2rek" targetRef="Event_085wz5e" />
<bpmn:userTask id="Activity_1ly2rek" name="Редактирование результатов">
<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>
<bpmn:dataObject id="input_data" />
<bpmn:dataObjectReference id="DataObjectReference_1gighxu" name="Input Data" dataObjectRef="input_data" />
<bpmn:dataStoreReference id="DataStoreReference_119yx2q" name="database" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_o02h16r">
<bpmndi:BPMNShape id="DataInput-54855333-1DI" bpmnElement="DataInput-54855333-1">
<dc:Bounds x="-28" y="185" width="36" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-35" y="242" width="51" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="112" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_085wz5e_di" bpmnElement="Event_085wz5e">
<dc:Bounds x="532" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1wxlxx3_di" bpmnElement="Activity_09j1q2v">
<dc:Bounds x="210" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1bdib3v_di" bpmnElement="Activity_1ly2rek">
<dc:Bounds x="390" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<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>
<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>
<bpmndi:BPMNEdge id="Flow_0740w4f_di" bpmnElement="Flow_0740w4f">
<di:waypoint x="148" y="177" />
<di:waypoint x="210" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15nz4sd_di" bpmnElement="Flow_15nz4sd">
<di:waypoint x="260" y="137" />
<di:waypoint x="260" y="117" />
<di:waypoint x="440" y="117" />
<di:waypoint x="440" y="137" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataInputAssociation_1vnyxx4_di" bpmnElement="DataInputAssociation_1vnyxx4">
<di:waypoint x="147" y="15" />
<di:waypoint x="232" y="137" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1eds99n_di" bpmnElement="Flow_1eds99n">
<di:waypoint x="490" y="177" />
<di:waypoint x="532" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataOutputAssociation_06bwhfu_di" bpmnElement="DataOutputAssociation_06bwhfu">
<di:waypoint x="276" y="217" />
<di:waypoint x="326" y="345" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>