mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 13:58:18 +00:00
83 lines
4.6 KiB
XML
83 lines
4.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: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: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=""http://metaphorpsum.com/paragraphs/4/4"" />
|
|
<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: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:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_o02h16r">
|
|
<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="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: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="Flow_1eds99n_di" bpmnElement="Flow_1eds99n">
|
|
<di:waypoint x="490" y="177" />
|
|
<di:waypoint x="532" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|