Загрузка данных
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:color="http://www.omg.org/spec/BPMN/non-normative/color/1.0" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Web Modeler" exporterVersion="70aaa0c" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.7.0">
<bpmn:message id="Message_3pa4qc5" name="DOCS_UPLOADED">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_37nubaf" name="DOCS_TO_OCR">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_32oti5r" name="MAIN_START" />
<bpmn:message id="Message_3or6jv1" name="WAIT_COMMAND">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_1ummfj1" name="STOP_FACTORS_CHECK">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:escalation id="Escalation_2uc2rih" name="APP_TIMEOUT" />
<bpmn:message id="Message_1nof29o" name="DOC_RECOGNITION_START">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_1lnznmu" name="49828ca7-c0c8-4942-b910-cb641c4a7d26" />
<bpmn:message id="Message_1hbitb8" name="Message_1hbitb8" />
<bpmn:message id="Message_3a70g57" name="Message_3a70g57" />
<bpmn:message id="Message_0ce97p4" name="CANCEL">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_1fr24nn" name="CHANGE_STATUS">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicotionId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_3mpbs16" name="=STATUS_SET">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_3i9ms1b" name="STATUS_SET">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_397udd8" name="STATE_SET">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:signal id="Signal_1pb7hov" name="StopMainProcess" />
<bpmn:signal id="Signal_2uq4fuj" name="RejectedByStopFactors" />
<bpmn:escalation id="Escalation_00rq2lr" name="RejectedByStopFactors" escalationCode="RejectedByStopFactors" />
<bpmn:error id="Error_1je1rxe" name="bankruptcyStatus" errorCode="500" />
<bpmn:error id="Error_1p4ex35" name="ErrorCode" errorCode="REST_ERROR" />
<bpmn:message id="Message_0dann06" name="START_APP_POLLING">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:signal id="Signal_1i79mh3" name="CheckBankruptcyError" />
<bpmn:signal id="Signal_0f3e3d2" name="bankruptcyStatusPassed" />
<bpmn:message id="Message_30g8q1v" name="bankruptcyStatusPassed">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_2meg1f3" name="CheckBankruptcyError">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_2ipc7ha" name="RECEIVE_COMMAND">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_0f9lqkg" name="MANUAL_BILLING">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_32bvq9j" name="START_PAYMENT">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:error id="Error_1sf4lj0" name="ErrorCode500" errorCode="REST_ERROR500" />
<bpmn:error id="Error_09083xc" name="ErrorCode500" errorCode="REST_ERROR500" />
<bpmn:error id="Error_1ts5rfw" name="ErrorCode" errorCode="REST_ERROR" />
<bpmn:error id="Error_1sngljm" name="ErrorCode500" errorCode="REST_ERROR500" />
<bpmn:error id="Error_1ue4arv" name="ErrorCode" errorCode="REST_ERROR" />
<bpmn:error id="Error_1iaegmf" name="ErrorCode500" errorCode="REST_ERROR500" />
<bpmn:error id="Error_01cgzmb" name="ErrorCode" errorCode="REST_ERROR" />
<bpmn:error id="Error_15im148" name="ErrorCode500" errorCode="REST_ERROR500" />
<bpmn:error id="Error_0iotilx" name="ErrorCode" errorCode="REST_ERROR" />
<bpmn:error id="Error_0s8sc0t" name="ErrorCode500" errorCode="REST_ERROR500" />
<bpmn:error id="Error_07pjwdd" name="ErrorCode" errorCode="REST_ERROR" />
<bpmn:message id="Message_38sj4hm" name="manualBillingForbidden">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_0mam67g" name="start_fullpayment_process">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_3mn3br0" name="RECEIVE_KAFKA_MESSAGES_END">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_2fmu75p" name="FirstPaymentRepeat">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_3hk82s1" name="RepeatPaymentRepeat">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_3cb50io" name="CreateTrxError">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_2rl6c0b" name="REPEAT_PAYMENT">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_0j0qbcb" name="ReCreateTrxError">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_27t3kb2" name="subscription_expired">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_0qk394n" name="subscription_expired_end">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_39oujg4" name="CheckBankruptcyLimit">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:process id="Process_mexqegj" name="Stop-factors check" isExecutable="true">
<bpmn:extensionElements>
<zeebe:versionTag value="v.1" />
</bpmn:extensionElements>
<bpmn:endEvent id="Event_0no5mme">
<bpmn:incoming>Flow_057chp5</bpmn:incoming>
</bpmn:endEvent>
<bpmn:startEvent id="Event_11h8n8b">
<bpmn:outgoing>Flow_0os2dvk</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:subProcess id="Activity_1g0r2a0" name="Parser-API call">
<bpmn:incoming>Flow_0os2dvk</bpmn:incoming>
<bpmn:outgoing>Flow_057chp5</bpmn:outgoing>
<bpmn:intermediateThrowEvent id="Event_1u92muc" name="SendNotify" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="SendNotify" target="messageName" />
<zeebe:input source="={ "statusForNotify": "ManualCheck", "applicationId": applicationId }" target="variables" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_12z1krs</bpmn:incoming>
<bpmn:outgoing>Flow_19lvfiu</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_0q1ffd0" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateThrowEvent id="Event_0x9ueqk" name="checkVin" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="checkVin" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="resultExpression" value="={ "CriticalSFChecked": true }" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_12nh3jz</bpmn:incoming>
<bpmn:incoming>Flow_1qd5hml</bpmn:incoming>
<bpmn:outgoing>Flow_0pcjxhj</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1pdvd80" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateCatchEvent id="Event_1x2uk0j" name="checkVin">
<bpmn:incoming>Flow_1f53e1o</bpmn:incoming>
<bpmn:outgoing>Flow_03sp60z</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_0uub1ab" messageRef="Message_0ga60lu" />
</bpmn:intermediateCatchEvent>
<bpmn:inclusiveGateway id="Gateway_0lkfper">
<bpmn:incoming>Flow_0gparec</bpmn:incoming>
<bpmn:incoming>Flow_09jk6cc</bpmn:incoming>
<bpmn:outgoing>Flow_00i8uem</bpmn:outgoing>
</bpmn:inclusiveGateway>
<bpmn:inclusiveGateway id="Gateway_03cgzus">
<bpmn:incoming>Flow_1g7feej</bpmn:incoming>
<bpmn:incoming>Flow_0iu66ax</bpmn:incoming>
<bpmn:outgoing>Flow_0gparec</bpmn:outgoing>
</bpmn:inclusiveGateway>
<bpmn:parallelGateway id="Gateway_1hfn4zv">
<bpmn:incoming>Flow_1f523hi</bpmn:incoming>
<bpmn:outgoing>Flow_1f53e1o</bpmn:outgoing>
<bpmn:outgoing>Flow_0gxck86</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:exclusiveGateway id="Gateway_09co298">
<bpmn:incoming>Flow_002r73l</bpmn:incoming>
<bpmn:incoming>Flow_0dgp9b3</bpmn:incoming>
<bpmn:outgoing>Flow_1g7feej</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_0mt0x6u">
<bpmn:incoming>Flow_0gxck86</bpmn:incoming>
<bpmn:incoming>Flow_1lo7px5</bpmn:incoming>
<bpmn:outgoing>Flow_144hftg</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_1cvo9qx" name="lastCheckTime>3h?" default="Flow_1z058g9">
<bpmn:incoming>Flow_1bvhz3i</bpmn:incoming>
<bpmn:outgoing>Flow_1z058g9</bpmn:outgoing>
<bpmn:outgoing>Flow_003kzjo</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:scriptTask id="Activity_0684ned" name="afterThreeHours">
<bpmn:extensionElements>
<zeebe:script expression="=true" resultVariable="afterThreeHours" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1z058g9</bpmn:incoming>
<bpmn:incoming>Flow_02m1rbv</bpmn:incoming>
<bpmn:outgoing>Flow_09p593p</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:scriptTask id="Activity_0jkyipo" name="Changed Fields (empty array)">
<bpmn:extensionElements>
<zeebe:script expression="=[]" resultVariable="changedFields" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_09p593p</bpmn:incoming>
<bpmn:outgoing>Flow_0sxr7nq</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:exclusiveGateway id="Gateway_1r28nvo">
<bpmn:incoming>Flow_04mo2jv</bpmn:incoming>
<bpmn:incoming>Flow_1e6qmgv</bpmn:incoming>
<bpmn:outgoing>Flow_1t3o3jt</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_1nhgn3a" name="isFirstCheck?" default="Flow_011ayan">
<bpmn:incoming>Flow_1q0nr3d</bpmn:incoming>
<bpmn:outgoing>Flow_011ayan</bpmn:outgoing>
<bpmn:outgoing>Flow_1e6qmgv</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="Event_0r3jcg1">
<bpmn:incoming>Flow_1oys3kc</bpmn:incoming>
<bpmn:terminateEventDefinition id="TerminateEventDefinition_150n0xh" />
</bpmn:endEvent>
<bpmn:intermediateThrowEvent id="Event_0sfqbu7" name="RECEIVE_COMMAND_END" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="RECEIVE_COMMAND_END" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0f6nfeo</bpmn:incoming>
<bpmn:outgoing>Flow_1oys3kc</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_0sggape" />
</bpmn:intermediateThrowEvent>
<bpmn:startEvent id="Event_0hbtslh">
<bpmn:outgoing>Flow_1hjos47</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:exclusiveGateway id="Gateway_0t3x4w3">
<bpmn:incoming>Flow_1qefgc2</bpmn:incoming>
<bpmn:incoming>Flow_0gd5cnx</bpmn:incoming>
<bpmn:outgoing>Flow_0qt2o4u</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_0rhlzq2" name="lastCheckTime>3h?" default="Flow_02m1rbv">
<bpmn:incoming>Flow_1xxv4ng</bpmn:incoming>
<bpmn:outgoing>Flow_02m1rbv</bpmn:outgoing>
<bpmn:outgoing>Flow_15ibh20</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_15zytk4" name="Был ли передан или изменен regNumber или sts ?" default="Flow_002r73l">
<bpmn:incoming>Flow_0pcjxhj</bpmn:incoming>
<bpmn:outgoing>Flow_002r73l</bpmn:outgoing>
<bpmn:outgoing>Flow_0thxe6w</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_1td10nc" name="VIN был передан / изменен?" default="Flow_1lo7px5">
<bpmn:incoming>Flow_0cs046x</bpmn:incoming>
<bpmn:outgoing>Flow_1lo7px5</bpmn:outgoing>
<bpmn:outgoing>Flow_0jt8iwr</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_17ekkqz" name="Били ли переданы или изменены какие-либо из этих параметров?" default="Flow_0eqcgec">
<bpmn:incoming>Flow_144hftg</bpmn:incoming>
<bpmn:outgoing>Flow_0eqcgec</bpmn:outgoing>
<bpmn:outgoing>Flow_0hhashk</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:parallelGateway id="Gateway_1p4we6k">
<bpmn:incoming>Flow_1nplqbg</bpmn:incoming>
<bpmn:outgoing>Flow_0cs046x</bpmn:outgoing>
<bpmn:outgoing>Flow_0n2ro2d</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:scriptTask id="Activity_0pmgxcs" name="Set lastCheckTime">
<bpmn:extensionElements>
<zeebe:script expression="=string(now())" resultVariable="lastCheckTime" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0n2ro2d</bpmn:incoming>
</bpmn:scriptTask>
<bpmn:parallelGateway id="Gateway_0olyi2t">
<bpmn:incoming>Flow_1t3o3jt</bpmn:incoming>
<bpmn:incoming>Flow_0yhp9kg</bpmn:incoming>
<bpmn:outgoing>Flow_024w88h</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:scriptTask id="Activity_0ytfsbz" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="StopFactorsCheck"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1wemz29</bpmn:incoming>
<bpmn:outgoing>Flow_0yhp9kg</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:parallelGateway id="Gateway_04lr0ug">
<bpmn:incoming>Flow_1vyfljt</bpmn:incoming>
<bpmn:outgoing>Flow_1q0nr3d</bpmn:outgoing>
<bpmn:outgoing>Flow_1wemz29</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:scriptTask id="Activity_0i19mkg" name="Update previous data">
<bpmn:extensionElements>
<zeebe:script expression="=IncomMessagePayload" resultVariable="previousPayload" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0sxr7nq</bpmn:incoming>
<bpmn:incoming>Flow_1kwyhfl</bpmn:incoming>
<bpmn:outgoing>Flow_1vyfljt</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:scriptTask id="Activity_0fsw78e" name="Changed Fields">
<bpmn:extensionElements>
<zeebe:script expression="=[ if previousPayload.vin != IncomMessagePayload.vin and IncomMessagePayload.vin != "" then "vin" else null, if previousPayload.passportNumber != IncomMessagePayload.passportNumber and IncomMessagePayload.passportNumber != "" then "passportNumber" else null, if previousPayload.firstName != IncomMessagePayload.firstName and IncomMessagePayload.firstName != "" then "firstName" else null, if previousPayload.lastName != IncomMessagePayload.lastName and IncomMessagePayload.lastName != "" then "lastName" else null, if previousPayload.patronymic != IncomMessagePayload.patronymic and IncomMessagePayload.patronymic != "" then "patronymic" else null, if previousPayload.dob != IncomMessagePayload.dob and IncomMessagePayload.dob != "" then "dob" else null, if previousPayload.regNumber != IncomMessagePayload.regNumber and IncomMessagePayload.regNumber != "" then "regNumber" else null, if previousPayload.passportSeries != IncomMessagePayload.passportSeries and IncomMessagePayload.passportSeries != "" then "passportSeries" else null, if previousPayload.sts != IncomMessagePayload.sts and IncomMessagePayload.sts != "" then "sts" else null ] [item != null]" resultVariable="changedFields" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_003kzjo</bpmn:incoming>
<bpmn:outgoing>Flow_1kwyhfl</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:exclusiveGateway id="Gateway_07u3oym" name="isDataChanged?">
<bpmn:incoming>Flow_1hjos47</bpmn:incoming>
<bpmn:outgoing>Flow_1bvhz3i</bpmn:outgoing>
<bpmn:outgoing>Flow_1xxv4ng</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:scriptTask id="Activity_0jmmci5" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="ManualCheck"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1rh4uoj</bpmn:incoming>
<bpmn:outgoing>Flow_184a1vb</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:parallelGateway id="Gateway_1lesmt9">
<bpmn:incoming>Flow_19lvfiu</bpmn:incoming>
<bpmn:incoming>Flow_184a1vb</bpmn:incoming>
<bpmn:outgoing>Flow_0f6nfeo</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:parallelGateway id="Gateway_0go3zv5">
<bpmn:incoming>Flow_0qt2o4u</bpmn:incoming>
<bpmn:outgoing>Flow_1rh4uoj</bpmn:outgoing>
<bpmn:outgoing>Flow_1v05xnl</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:serviceTask id="Activity_01cr4uj" name="App Module Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "checks": put all( if reestrStatusAuto = "passed" or reestrStatusAuto = "error" or reestrStatusAuto = "limit_day_exceeded" or reestrStatusAuto = "limit_month_exceeded" or reestrStatusAuto = "null" or reestrStatusAuto = "subscription_expired" then { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": gibddRestrictResponse.response.restrictions }, if gibddRestrictStatus = "passed" then { "verificationStatus": "approved" } else {} ), "wanted": put all( { "status": gibddWantedStatus, "searches": gibddWantedResponse.response.searches }, if gibddWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "pledges": put all( { "history": if reestrResponseAuto.response.records != null then for item in latestHistories return { "lastEventDate": item.date, "lastEventNumber": item.number, "lastEventType": item.type } else [] }, if reestrStatusAuto = "null" then { "status": "passed" } else put all ( { "status": reestrStatusAuto }, if reestrStatusAuto = "passed" then { "verificationStatus": "approved" } else {} ) ) } } else {}, { "clientChecks": put all ( if passportStatus = "passed" or passportStatus = "error" or passportStatus = "limit_day_exceeded" or passportStatus = "limit_month_exceeded" or passportStatus = "subscription_expired" then { "passport": put all( { "status": passportStatus, "statusText": passportResponse.response.status }, if passportStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {}, if terroristsStatus = "passed" or terroristsStatus = "error" or terroristsStatus = "limit_day_exceeded" or terroristsStatus = "limit_month_exceeded" or terroristsStatus = "subscription_expired" then { "wanted": put all( { "status": mvdWantedStatus, "records": if mvdWantedResponse.response.records != null then mvdWantedResponse.response.records else [] }, if mvdWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "terroristsExtremists": put all( { "status": terroristsStatus, "records": if terroristsResponse.response.records != null then terroristsResponse.response.records else [] }, if terroristsStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {} ) } ) } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ "CriticalSFChecked": true }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_091g98t</bpmn:incoming>
<bpmn:outgoing>Flow_0je9qhs</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_1uecg37" name="App Module Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "checks": { "vehicleChecks": put all ( if elptsStatus != null then { "epts": { "status": elptsStatus, "details": { "found": string(elptsResponse.response.found), "status": elptsResponse.response.status, "country": elptsResponse.response.records[1].country, "passportType": elptsResponse.response.records[1].type, "disposalFee": elptsResponse.response.records[1].displosal_fee, "restrictions": elptsResponse.response.records[1].restrictions_status, "customsRestrictions": elptsResponse.response.records[1].customs_restrictions_status, "lastAction": elptsResponse.response.records[1].last_reg_action } } } else {}, if historyStatus != null then { "registrationHistory": { "status": historyStatus, "record": if historyResponse.response.record != null then { "vin": historyResponse.response.record.vin, "bodyNumber": historyResponse.response.record.bodyNumber, "regNumber": historyResponse.response.record.regNumber, "sts": historyResponse.response.record.sts, "pts": historyResponse.response.record.pts, "model": historyResponse.response.record.model, "engineVolume": historyResponse.response.record.engineVolume, "color": historyResponse.response.record.color, "powerHp": historyResponse.response.record.powerHp, "powerKwt": historyResponse.response.record.powerKwt, "year": historyResponse.response.record.year, "maxWeight": historyResponse.response.record.maxWeight, "weightWithoutLoading": historyResponse.response.record.weightWithoutLoading, "category": historyResponse.response.record.category, "lastRegAction": historyResponse.response.record.lastRegAction, "ownershipPeriods": if historyResponse.response.record.ownershipPeriods != [] then for o in historyResponse.response.record.ownershipPeriods return { "personType": o.personType, "from": o.from, "to": o.to } else [] } else { "vin": null, "bodyNumber": null, "regNumber": null, "sts": null, "pts": null, "model": null, "engineVolume": null, "color": null, "powerHp": null, "powerKwt": null, "year": null, "maxWeight": null, "weightWithoutLoading": null, "category": null, "lastRegAction": null, "ownershipPeriods": [] }, "verificationStatus": null } } else {}, if mileageStatus != null then { "mileage": { "status": mileageStatus, "diagnoseCard": if mileageResponse.response.diagnose_cards = null then null else { "number": mileageResponse.response.diagnose_cards[1].number, "startDate": substring(mileageResponse.response.diagnose_cards[1].startDate, 7, 4) + "-" + substring(mileageResponse.response.diagnose_cards[1].startDate, 4, 2) + "-" + substring(mileageResponse.response.diagnose_cards[1].startDate, 1, 2), "endDate": substring(mileageResponse.response.diagnose_cards[1].endDate, 7, 4) + "-" + substring(mileageResponse.response.diagnose_cards[1].endDate, 4, 2) + "-" + substring(mileageResponse.response.diagnose_cards[1].endDate, 1, 2), "vin": mileageResponse.response.diagnose_cards[1].vin }, "history": if mileageResponse.response.mileages = null then [] else mileageResponse.response.mileages } } else {}, if accidentStatus != null then { "accidents": put all( { "status": accidentStatus, "list": if accidentResponse.response.accidents != [] then for r in (accidentResponse.response.accidents) return { "type": r.accidentType, "region": r.regionName, "place": r.accidentPlace, "vehicleState": r.vehicleDamageState, "damageDescription": r.damageDescription, "damageScheme": r.damageSvg, "dateTime": r.accidentDatetime } else [] }, if (accidentResponse.response.accidents = [] or accidentResponse.response.accidents = null) and accidentStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {}, if rasArbitrStatusAuto != null then { "arbitrationCases": put all( { "status": rasArbitrStatusAuto, "list": if rasArbitrResponseAuto.response.items != null then for r in rasArbitrResponseAuto.response.items return { "caseNumber": r.CaseNumber, "registrationDate": r.RegistrationDate, "fileLink": r.FileUrl, "caseUrl": r.CaseUrl } else [] }, if (rasArbitrStatusAuto = "passed" and rasArbitrResponseAuto.response.items = null) then { "verificationStatus": "approved" } else {} ) } else {}, if monitorInsuranceStatus != null then { "osago": { "status": monitorInsuranceStatus, "policyNumber": if monitorInsuranceResponse.response.policies = null then null else monitorInsuranceResponse.response.policies[1].policyNumber } } else {}, if taxiStatus != null then { "taxiPermit": put all( { "status": taxiStatus, "records": if taxiResponse.response.records != [] then for r in (taxiResponse.response.records) return { "dateFrom": r.dateFrom, "dateTo": r.dateTo } else [] }, if taxiResponse.response.records = [] then { "verificationStatus": "approved" } else {} ) } else {}, if finesStatus != null then { "fines": put all( { "status": finesStatus, "list": if finesResponse.response.fines != null then for r in (finesResponse.response.fines) return { "datetime": r.date_post, "amount": r.sum } else [] }, if (finesResponse.response.fines = [] or finesResponse.response.fines = null) and finesStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {} ), "clientChecks": put all( if reestrStatusPerson != null then { "pledges": put all( { "history": if reestrResponsePerson.response.records != null then for i in 1..count(reestrResponsePerson.response.records) return put all( { "registerDate": reestrResponsePerson.response.records[i].register_date, "lastEventDate": latestPersonHistories[i].date, "lastEventType": latestPersonHistories[i].type, "lastEventNumber": reestrResponsePerson.response.records[i].number }, if reestrResponsePerson.response.records[i].pledgors != null then { "pledgor":reestrResponsePerson.response.records[i].pledgors } else {}, if reestrResponsePerson.response.records[i].pledgees != null then { "pledgee": reestrResponsePerson.response.records[i].pledgees } else {}, if reestrResponsePerson.response.records[i].objects != null then { "pledgedObject": reestrResponsePerson.response.records[i].objects } else {} ) else [] }, if reestrStatusPerson = "null" then { "status": "passed" } else put all ( { "status": reestrStatusPerson }, if reestrStatusPerson = "passed" then { "verificationStatus": "approved" } else {} ) ) } else {}, if fsspSearchFizStatus != null then { "fssp": put all( { "status": fsspSearchFizStatus, "records": if fsspSearchFizResponse.response.result = [] then [] else for r in (fsspSearchFizResponse.response.result) return { "startDate": r.process_date, "endDate": r.stop_date, "endReason": r.stop_reason, "participant": r.debtor_name, "amount": r.subjects[item.title = "Сумма долга"].sum[1] } }, if fsspSearchFizResponse.response.result = [] then { "verificationStatus": "approved" } else {} ) } else {}, if rasArbitrStatusPerson != null then { "arbitrationCases": put all( { "status": rasArbitrStatusPerson, "records": if rasArbitrResponsePerson.response.items != null then for r in (rasArbitrResponsePerson.response.items) return { "RegistrationDate": r.RegistrationDate, "FileUrl": r.FileUrl } else [] }, if rasArbitrResponsePerson.response.items = null and rasArbitrStatusPerson = "passed" then { "verificationStatus": "approved" } else {} ) } else {}, if bankruptcyStatusMessageDetail != null then { "bankruptcy": put all( { "status": bankruptcyStatusMessageDetail, "records": if bankruptcyResponseMessageDetail = null or count(bankruptcyResponseMessageDetail) = 0 then [] else bankruptcyResponseMessageDetail.responseDetail }, if (bankruptcyResponseMessageDetail = null or count(bankruptcyResponseMessageDetail) = 0) and bankruptcyStatusMessageDetail = "passed" then { "verificationStatus": "approved" } else {} ) } else {} ) } } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_00i8uem</bpmn:incoming>
<bpmn:outgoing>Flow_1qefgc2</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:subProcess id="Activity_16lstom" name="Vehicle checking for stop-factors">
<bpmn:incoming>Flow_0jt8iwr</bpmn:incoming>
<bpmn:intermediateThrowEvent id="Event_10crzw5" name="SendNotify" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="SendNotify" target="messageName" />
<zeebe:input source="={ "statusForNotify": "RejectedByStopFactors", "applicationId": applicationId }" target="variables" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1jc1qdb</bpmn:incoming>
<bpmn:outgoing>Flow_1604d5t</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_00brygw" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateThrowEvent id="Event_0ixfvmt" name="SendNotify" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="SendNotify" target="messageName" />
<zeebe:input source="={ "statusForNotify": "RejectedByStopFactors", "applicationId": applicationId }" target="variables" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0hs2hzx</bpmn:incoming>
<bpmn:outgoing>Flow_0ylyom5</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_18bfh1i" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateThrowEvent id="Event_1l0xgdy" name="SendNotify" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="SendNotify" target="messageName" />
<zeebe:input source="={ "statusForNotify": "RejectedByStopFactors", "applicationId": applicationId }" target="variables" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_15j2ize</bpmn:incoming>
<bpmn:outgoing>Flow_08way2e</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1t5nrw3" />
</bpmn:intermediateThrowEvent>
<bpmn:endEvent id="Event_1nnrj7j" name="RECEIVE_COMMAND" zeebe:modelerTemplate="io.camunda.connectors.message.end.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="RECEIVE_COMMAND" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1604d5t</bpmn:incoming>
<bpmn:messageEventDefinition id="MessageEventDefinition_00noy11" />
</bpmn:endEvent>
<bpmn:serviceTask id="Activity_0lfiix2" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckPledgeRegistry" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ reestrResponseAuto: response.body, latestHistories: for r in reestrResponseAuto.response.records return sort( r.history, function(a, b) date and time( substring(a.date, 7, 4) + "-" + substring(a.date, 4, 2) + "-" + substring(a.date, 1, 2) + "T" + substring(a.date, 12, 5) + ":00" ) < date and time( substring(b.date, 7, 4) + "-" + substring(b.date, 4, 2) + "-" + substring(b.date, 1, 2) + "T" + substring(b.date, 12, 5) + ":00" ) )[-1], hasAppearance: some h in latestHistories satisfies h.type = "Возникновение", allNotAppearance: every h in latestHistories satisfies h.type != "Возникновение", reestrStatusAuto: if reestrResponseAuto.response.reestr_done = 0 then "error" else if reestrResponseAuto.response.reestr_done = 1 and hasAppearance then "failed" else if reestrResponseAuto.response.reestr_done = 1 and reestrResponseAuto.response.records != null and allNotAppearance then "null" else if reestrResponseAuto.response.reestr_done = 1 and reestrResponseAuto.response.records = null then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageReestrResponseAuto: error.variables.response.body.response.error_code, errorResponseReestrResponseAuto: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseReestrResponseAuto: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1h8pa0i</bpmn:incoming>
<bpmn:outgoing>Flow_098sow0</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:scriptTask id="Activity_0an7h47" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="Cancel"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ufq2x0</bpmn:incoming>
<bpmn:outgoing>Flow_1dmaikq</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:exclusiveGateway id="Gateway_1q7jlls" name="Стоп-фактор?">
<bpmn:incoming>Flow_098sow0</bpmn:incoming>
<bpmn:incoming>Flow_0nucrw6</bpmn:incoming>
<bpmn:outgoing>Flow_1ufq2x0</bpmn:outgoing>
<bpmn:outgoing>Flow_07u3n1n</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="Event_0qmahpx" name="RECEIVE_COMMAND" zeebe:modelerTemplate="io.camunda.connectors.message.end.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="RECEIVE_COMMAND" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0ylyom5</bpmn:incoming>
<bpmn:messageEventDefinition id="MessageEventDefinition_1vhu9pp" />
</bpmn:endEvent>
<bpmn:serviceTask id="Activity_0atn96l" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckGIBDDWanted" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ gibddWantedResponse:response.body, gibddWantedStatus: if gibddWantedResponse.response.success = 0 then "error" else if gibddWantedResponse.response.success = 1 and count(gibddWantedResponse.response.searches) = 0 then "passed" else if gibddWantedResponse.response.success = 1 and count(gibddWantedResponse.response.searches) > 0 then "failed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageGibddWanted: error.variables.response.body.response.error_code, errorResponseGibddWanted: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseGibddWanted: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1p1b0nz</bpmn:incoming>
<bpmn:outgoing>Flow_1b5fl54</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_1dobm0z" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckGIBDDRestrictions" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ gibddRestrictResponse:response.body, gibddRestrictStatus: if gibddRestrictResponse.response.success = 0 then "error" else if gibddRestrictResponse.response.success = 1 and count(gibddRestrictResponse.response.restrictions) = 0 then "passed" else if gibddRestrictResponse.response.success = 1 and count(gibddRestrictResponse.response.restrictions) > 0 then "failed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageGibddRestrict: error.variables.response.body.response.error_code, errorResponseGibddRestrict: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseGibddRestrict: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1uh7za6</bpmn:incoming>
<bpmn:outgoing>Flow_0j0x8pm</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:scriptTask id="Activity_11u2j54" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="Cancel"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1wnx650</bpmn:incoming>
<bpmn:outgoing>Flow_1mi4sv6</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:scriptTask id="Activity_1n9dpiq" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="Cancel"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0it8mh1</bpmn:incoming>
<bpmn:outgoing>Flow_19f66bu</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:exclusiveGateway id="Gateway_183pjyy" name="Стоп-фактор?">
<bpmn:incoming>Flow_1b5fl54</bpmn:incoming>
<bpmn:incoming>Flow_0ptfrrn</bpmn:incoming>
<bpmn:outgoing>Flow_1h8pa0i</bpmn:outgoing>
<bpmn:outgoing>Flow_1wnx650</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_1k6t2ju" name="Стоп-фактор?">
<bpmn:incoming>Flow_0j0x8pm</bpmn:incoming>
<bpmn:incoming>Flow_0ilm708</bpmn:incoming>
<bpmn:outgoing>Flow_1p1b0nz</bpmn:outgoing>
<bpmn:outgoing>Flow_0it8mh1</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:startEvent id="Event_1wz664h">
<bpmn:outgoing>Flow_1uh7za6</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_0tlu0pu" name="Vehicle SF check completed">
<bpmn:incoming>Flow_07u3n1n</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_1rj9wc9" escalationRef="Escalation_16f2j0r" />
</bpmn:endEvent>
<bpmn:boundaryEvent id="Event_0tr8w5c" name="Error 403" attachedToRef="Activity_0lfiix2">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageReestrResponseAuto = 40302 then "subscription_expired" else if errorMessageReestrResponseAuto = 40304 then "limit_day_exceeded" else if errorMessageReestrResponseAuto = 40305 then "limit_month_exceeded" else "error"" target="reestrStatusAuto" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0nucrw6</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0f8nq7r" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_0lgk8h1" name="Error 403" attachedToRef="Activity_1dobm0z">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageGibddRestrict = 40302 then "subscription_expired" else if errorMessageGibddRestrict = 40304 then "limit_day_exceeded" else if errorMessageGibddRestrict = 40305 then "limit_month_exceeded" else "error"" target="gibddRestrictStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0ilm708</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_153rt7r" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_1604d5t" sourceRef="Event_10crzw5" targetRef="Event_1nnrj7j" />
<bpmn:sequenceFlow id="Flow_0ylyom5" sourceRef="Event_0ixfvmt" targetRef="Event_0qmahpx" />
<bpmn:sequenceFlow id="Flow_0nucrw6" sourceRef="Event_0tr8w5c" targetRef="Gateway_1q7jlls" />
<bpmn:sequenceFlow id="Flow_1h8pa0i" name="Нет" sourceRef="Gateway_183pjyy" targetRef="Activity_0lfiix2">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=gibddWantedStatus = "passed" or gibddWantedStatus = "error" or gibddWantedStatus = "limit_day_exceeded" or gibddWantedStatus = "limit_month_exceeded" or gibddWantedStatus = "subscription_expired"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_098sow0" sourceRef="Activity_0lfiix2" targetRef="Gateway_1q7jlls" />
<bpmn:sequenceFlow id="Flow_1ufq2x0" name="Да" sourceRef="Gateway_1q7jlls" targetRef="Activity_0an7h47">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=reestrStatusAuto = "failed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_07u3n1n" name="Нет" sourceRef="Gateway_1q7jlls" targetRef="Event_0tlu0pu">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=reestrStatusAuto = "passed" or reestrStatusAuto = "error" or reestrStatusAuto = "limit_day_exceeded" or reestrStatusAuto = "limit_month_exceeded" or reestrStatusAuto = "null" or reestrStatusAuto = "subscription_expired"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0ilm708" sourceRef="Event_0lgk8h1" targetRef="Gateway_1k6t2ju" />
<bpmn:sequenceFlow id="Flow_1p1b0nz" name="Нет" sourceRef="Gateway_1k6t2ju" targetRef="Activity_0atn96l">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=gibddRestrictStatus = "passed" or gibddRestrictStatus = "error" or gibddRestrictStatus = "limit_day_exceeded" or gibddRestrictStatus = "limit_month_exceeded" or gibddRestrictStatus = "subscription_expired"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1b5fl54" sourceRef="Activity_0atn96l" targetRef="Gateway_183pjyy" />
<bpmn:sequenceFlow id="Flow_1uh7za6" sourceRef="Event_1wz664h" targetRef="Activity_1dobm0z" />
<bpmn:sequenceFlow id="Flow_0j0x8pm" sourceRef="Activity_1dobm0z" targetRef="Gateway_1k6t2ju" />
<bpmn:sequenceFlow id="Flow_1wnx650" name="Да" sourceRef="Gateway_183pjyy" targetRef="Activity_11u2j54">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=gibddWantedStatus = "failed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0it8mh1" name="Да" sourceRef="Gateway_1k6t2ju" targetRef="Activity_1n9dpiq">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=gibddRestrictStatus = "failed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_19f66bu" sourceRef="Activity_1n9dpiq" targetRef="Activity_1xza5u5" />
<bpmn:boundaryEvent id="Event_1v484x9" name="Error 403" attachedToRef="Activity_0atn96l">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageGibddWanted = 40302 then "subscription_expired" else if errorMessageGibddWanted = 40304 then "limit_day_exceeded" else if errorMessageGibddWanted = 40305 then "limit_month_exceeded" else "error"" target="gibddWantedStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0ptfrrn</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0xww2uj" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_0ptfrrn" sourceRef="Event_1v484x9" targetRef="Gateway_183pjyy" />
<bpmn:endEvent id="Event_1reo298" name="RECEIVE_COMMAND" zeebe:modelerTemplate="io.camunda.connectors.message.end.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="RECEIVE_COMMAND" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_08way2e</bpmn:incoming>
<bpmn:messageEventDefinition id="MessageEventDefinition_197vz0q" />
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_08way2e" sourceRef="Event_1l0xgdy" targetRef="Event_1reo298" />
<bpmn:subProcess id="Activity_1xza5u5" name="App module Call">
<bpmn:incoming>Flow_19f66bu</bpmn:incoming>
<bpmn:outgoing>Flow_15j2ize</bpmn:outgoing>
<bpmn:serviceTask id="Activity_00alit0" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ) else [ { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ] } }, "checks": { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": if gibddRestrictResponse.response.restrictions != [] then for r in (gibddRestrictResponse.response.restrictions) return { "restrictionType": r.restriction_name, "restrictionDate": r.restriction_date } else [] }, if gibddRestrictStatus = "failed" then { "verificationStatus": "rejected" } else {} ) } } } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_07oq9h7</bpmn:incoming>
<bpmn:outgoing>Flow_08g8enx</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0jr2b8s" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0z5u4sn</bpmn:incoming>
<bpmn:outgoing>Flow_07oq9h7</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_03uyu5j">
<bpmn:outgoing>Flow_0z5u4sn</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_1i472nu">
<bpmn:incoming>Flow_08g8enx</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_07oq9h7" sourceRef="Activity_0jr2b8s" targetRef="Activity_00alit0" />
<bpmn:sequenceFlow id="Flow_08g8enx" sourceRef="Activity_00alit0" targetRef="Event_1i472nu" />
<bpmn:sequenceFlow id="Flow_0z5u4sn" sourceRef="Event_03uyu5j" targetRef="Activity_0jr2b8s" />
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_15j2ize" sourceRef="Activity_1xza5u5" targetRef="Event_1l0xgdy" />
<bpmn:subProcess id="Activity_061ox8j" name="App module Call">
<bpmn:incoming>Flow_1mi4sv6</bpmn:incoming>
<bpmn:outgoing>Flow_0hs2hzx</bpmn:outgoing>
<bpmn:serviceTask id="Activity_0guct9r" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ) else [ { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ] } }, "checks": { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": gibddRestrictResponse.response.restrictions }, if gibddRestrictStatus = "passed" then { "verificationStatus": "approved" } else {} ), "wanted": put all( { "status": gibddWantedStatus, "searches": if gibddWantedResponse.response.searches != [] then for r in (gibddWantedResponse.response.searches) return { "region": r.region, "startDate": r.search_date } else [] }, if gibddWantedStatus = "failed" then { "verificationStatus": "rejected" } else {} ) } } } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_11fn0lr</bpmn:incoming>
<bpmn:outgoing>Flow_0sm2rh7</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_1jo2037" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0cvv61l</bpmn:incoming>
<bpmn:outgoing>Flow_11fn0lr</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_1imu0pe">
<bpmn:outgoing>Flow_0cvv61l</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_0zajiwt">
<bpmn:incoming>Flow_0sm2rh7</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_11fn0lr" sourceRef="Activity_1jo2037" targetRef="Activity_0guct9r" />
<bpmn:sequenceFlow id="Flow_0sm2rh7" sourceRef="Activity_0guct9r" targetRef="Event_0zajiwt" />
<bpmn:sequenceFlow id="Flow_0cvv61l" sourceRef="Event_1imu0pe" targetRef="Activity_1jo2037" />
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_1mi4sv6" sourceRef="Activity_11u2j54" targetRef="Activity_061ox8j" />
<bpmn:sequenceFlow id="Flow_0hs2hzx" sourceRef="Activity_061ox8j" targetRef="Event_0ixfvmt" />
<bpmn:subProcess id="Activity_0mri2jx" name="App module Call">
<bpmn:incoming>Flow_1dmaikq</bpmn:incoming>
<bpmn:outgoing>Flow_1jc1qdb</bpmn:outgoing>
<bpmn:serviceTask id="Activity_0rt87eg" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ) else [ { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ] } }, "checks": { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": gibddRestrictResponse.response.restrictions }, if gibddRestrictStatus = "passed" then { "verificationStatus": "approved" } else {} ), "wanted": put all( { "status": gibddWantedStatus, "searches": gibddWantedResponse.response.searches }, if gibddWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "pledges": put all( { "status": reestrStatusAuto, "history": if reestrResponseAuto.response.records != null then for item in latestHistories return { "lastEventDate": item.date, "lastEventNumber": item.number, "lastEventType": item.type } else [] }, if reestrStatusAuto = "failed" then { "verificationStatus": "rejected" } else {} ) } } } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0qkicsk</bpmn:incoming>
<bpmn:outgoing>Flow_0aklvo1</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_1ub65s1" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1dsgcpt</bpmn:incoming>
<bpmn:outgoing>Flow_0qkicsk</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_13074tf">
<bpmn:outgoing>Flow_1dsgcpt</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_0i2ib72">
<bpmn:incoming>Flow_0aklvo1</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0qkicsk" sourceRef="Activity_1ub65s1" targetRef="Activity_0rt87eg" />
<bpmn:sequenceFlow id="Flow_0aklvo1" sourceRef="Activity_0rt87eg" targetRef="Event_0i2ib72" />
<bpmn:sequenceFlow id="Flow_1dsgcpt" sourceRef="Event_13074tf" targetRef="Activity_1ub65s1" />
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_1dmaikq" sourceRef="Activity_0an7h47" targetRef="Activity_0mri2jx" />
<bpmn:sequenceFlow id="Flow_1jc1qdb" sourceRef="Activity_0mri2jx" targetRef="Event_10crzw5" />
<bpmn:association id="Association_071tsjp" associationDirection="None" sourceRef="Activity_0lfiix2" targetRef="TextAnnotation_0in4eaj" />
<bpmn:association id="Association_03i3are" associationDirection="None" sourceRef="Activity_0atn96l" targetRef="TextAnnotation_1dkavuq" />
<bpmn:association id="Association_1a2vx54" associationDirection="None" sourceRef="Activity_1dobm0z" targetRef="TextAnnotation_06lbc5r" />
<bpmn:textAnnotation id="TextAnnotation_1dkavuq">
<bpmn:text>CheckGIBDDWanted</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_06lbc5r">
<bpmn:text>CheckGIBDDRestrictions</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0in4eaj">
<bpmn:text>CheckPledgeRegistry</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_1duyi5w">
<bpmn:text>Обновлении истории изменения и сохранения статусов</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_0n0ug34" associationDirection="None" sourceRef="Activity_1xza5u5" targetRef="TextAnnotation_1duyi5w" />
<bpmn:textAnnotation id="TextAnnotation_0znxb3u">
<bpmn:text>Обновлении истории изменения и сохранения статусов</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_0he34eb" associationDirection="None" sourceRef="Activity_061ox8j" targetRef="TextAnnotation_0znxb3u" />
<bpmn:association id="Association_01pf2pq" associationDirection="None" sourceRef="Activity_061ox8j" targetRef="TextAnnotation_1duyi5w" />
<bpmn:association id="Association_1uxyqx6" associationDirection="None" sourceRef="Activity_0mri2jx" targetRef="TextAnnotation_0znxb3u" />
</bpmn:subProcess>
<bpmn:subProcess id="Activity_1dzp7w6" name="Vehicle checking">
<bpmn:incoming>Flow_03sp60z</bpmn:incoming>
<bpmn:serviceTask id="Activity_052lmai" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/MonitorInsurance" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ monitorInsuranceResponse: response.body, monitorInsuranceStatus: if monitorInsuranceResponse.response.success = 0 then "error" else if monitorInsuranceResponse.response.success = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageMonitorInsurance: error.variables.response.body.response.error_code, errorResponseMonitorInsurance: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseMonitorInsurance: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1wd0a1s</bpmn:incoming>
<bpmn:outgoing>Flow_01bspdb</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0s18fjd" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckArbitrationAuto" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "text": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ rasArbitrResponseAuto: response.body, rasArbitrStatusAuto: if rasArbitrResponseAuto.response.done = 0 then "error" else if rasArbitrResponseAuto.response.done = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageRasArbitrAuto: error.variables.response.body.response.error_code, errorResponseRasArbitrAuto: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseRasArbitrAuto: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1gs1lo2</bpmn:incoming>
<bpmn:outgoing>Flow_1wsfbuc</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_19eqzie" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckAccidents" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ accidentResponse:response.body, accidentStatus: if accidentResponse.response.success = 0 then "error" else if accidentResponse.response.success = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageAccidentResponse: error.variables.response.body.response.error_code, errorResponseAccident: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseAccident: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1khujlf</bpmn:incoming>
<bpmn:outgoing>Flow_011dgyk</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0vsa24z" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckMileage" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ mileageResponse:response.body, mileageStatus: if mileageResponse.response.kbm_done = 0 and mileageResponse.response.mileages_done = 0 then "error" else if mileageResponse.response.kbm_done = 1 and mileageResponse.response.mileages_done = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageMileageResponse: error.variables.response.body.response.error_code, errorResponseMileage: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseMileage: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1qq1nyt</bpmn:incoming>
<bpmn:outgoing>Flow_0bdzcvj</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_06x1ijq" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/GetRegistrationHistory" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ historyResponse:response.body, historyStatus: if historyResponse.response.success = 0 then "error" else if historyResponse.response.success = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageHistoryResponse: error.variables.response.body.response.error_code, errorResponseHistory: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseHistory: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1n4ycx8</bpmn:incoming>
<bpmn:outgoing>Flow_0rvwjck</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_10qhh1y" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckEPTS" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "vin": IncomMessagePayload.vin }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ elptsResponse:response.body, elptsStatus: if elptsResponse.response.success = 0 then "error" else if elptsResponse.response.success = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageElptsResponse: error.variables.response.body.response.error_code, errorResponseElpts: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseElpts: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0eitasi</bpmn:incoming>
<bpmn:outgoing>Flow_0xwng36</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_1egdpk1">
<bpmn:outgoing>Flow_195pf24</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_1p6izjv" name="Vehicle check completed">
<bpmn:incoming>Flow_1wclukq</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_1qf7hlb" escalationRef="Escalation_30m8nhq" />
</bpmn:endEvent>
<bpmn:boundaryEvent id="Event_15fdkvs" name="Error 403" attachedToRef="Activity_052lmai">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageMonitorInsurance = 40302 then "subscription_expired" else if errorMessageMonitorInsurance = 40304 then "limit_day_exceeded" else if errorMessageMonitorInsurance = 40305 then "limit_month_exceeded" else "error"" target="monitorInsuranceStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0j8p9qm</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_1nyme8m" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_0kphidb" name="Error 403" attachedToRef="Activity_0s18fjd">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageRasArbitrAuto = 40302 then "subscription_expired" else if errorMessageRasArbitrAuto = 40304 then "limit_day_exceeded" else if errorMessageRasArbitrAuto = 40305 then "limit_month_exceeded" else "error"" target="rasArbitrStatusAuto" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_14zncyu</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_1xdrgd8" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1s2kweo" name="Error 403" attachedToRef="Activity_19eqzie">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageAccidentResponse = 40302 then "subscription_expired" else if errorMessageAccidentResponse = 40304 then "limit_day_exceeded" else if errorMessageAccidentResponse = 40305 then "limit_month_exceeded" else "error"" target="accidentStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0dc7j1m</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0ijb5ei" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1r93f40" name="Error 403" attachedToRef="Activity_0vsa24z">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageMileageResponse = 40302 then "subscription_expired" else if errorMessageMileageResponse = 40304 then "limit_day_exceeded" else if errorMessageMileageResponse = 40305 then "limit_month_exceeded" else "error"" target="mileageStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0vw0gah</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_04vgzba" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1uoqpu7" name="Error 403" attachedToRef="Activity_06x1ijq">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageHistoryResponse = 40302 then "subscription_expired" else if errorMessageHistoryResponse = 40304 then "limit_day_exceeded" else if errorMessageHistoryResponse = 40305 then "limit_month_exceeded" else "error"" target="historyStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1gez7h4</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_03w7wub" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_0u4eeuw" name="Error 403" attachedToRef="Activity_10qhh1y">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageElptsResponse = 40302 then "subscription_expired" else if errorMessageElptsResponse = 40304 then "limit_day_exceeded" else if errorMessageElptsResponse = 40305 then "limit_month_exceeded" else "error"" target="elptsStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1mwc5qs</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_1pq9z7v" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_195pf24" sourceRef="Event_1egdpk1" targetRef="Gateway_0eo9yya" />
<bpmn:sequenceFlow id="Flow_0eitasi" sourceRef="Gateway_0eo9yya" targetRef="Activity_10qhh1y" />
<bpmn:parallelGateway id="Gateway_0eo9yya">
<bpmn:incoming>Flow_195pf24</bpmn:incoming>
<bpmn:outgoing>Flow_0eitasi</bpmn:outgoing>
<bpmn:outgoing>Flow_1n4ycx8</bpmn:outgoing>
<bpmn:outgoing>Flow_1qq1nyt</bpmn:outgoing>
<bpmn:outgoing>Flow_1khujlf</bpmn:outgoing>
<bpmn:outgoing>Flow_1gs1lo2</bpmn:outgoing>
<bpmn:outgoing>Flow_1wd0a1s</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_1n4ycx8" sourceRef="Gateway_0eo9yya" targetRef="Activity_06x1ijq" />
<bpmn:sequenceFlow id="Flow_1qq1nyt" sourceRef="Gateway_0eo9yya" targetRef="Activity_0vsa24z" />
<bpmn:sequenceFlow id="Flow_1khujlf" sourceRef="Gateway_0eo9yya" targetRef="Activity_19eqzie" />
<bpmn:sequenceFlow id="Flow_1gs1lo2" sourceRef="Gateway_0eo9yya" targetRef="Activity_0s18fjd" />
<bpmn:sequenceFlow id="Flow_1wd0a1s" sourceRef="Gateway_0eo9yya" targetRef="Activity_052lmai" />
<bpmn:parallelGateway id="Gateway_11kjfmx">
<bpmn:incoming>Flow_08oorkb</bpmn:incoming>
<bpmn:incoming>Flow_0xxp18c</bpmn:incoming>
<bpmn:incoming>Flow_0gkh7yw</bpmn:incoming>
<bpmn:incoming>Flow_0lillir</bpmn:incoming>
<bpmn:incoming>Flow_19ji6j6</bpmn:incoming>
<bpmn:incoming>Flow_0c3wtym</bpmn:incoming>
<bpmn:outgoing>Flow_1wclukq</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:exclusiveGateway id="Gateway_0ev89hu">
<bpmn:incoming>Flow_0xwng36</bpmn:incoming>
<bpmn:incoming>Flow_1mwc5qs</bpmn:incoming>
<bpmn:outgoing>Flow_08oorkb</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0xwng36" sourceRef="Activity_10qhh1y" targetRef="Gateway_0ev89hu" />
<bpmn:sequenceFlow id="Flow_1mwc5qs" sourceRef="Event_0u4eeuw" targetRef="Gateway_0ev89hu" />
<bpmn:exclusiveGateway id="Gateway_1hwmuwo">
<bpmn:incoming>Flow_0rvwjck</bpmn:incoming>
<bpmn:incoming>Flow_1gez7h4</bpmn:incoming>
<bpmn:outgoing>Flow_0xxp18c</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0rvwjck" sourceRef="Activity_06x1ijq" targetRef="Gateway_1hwmuwo" />
<bpmn:sequenceFlow id="Flow_1gez7h4" sourceRef="Event_1uoqpu7" targetRef="Gateway_1hwmuwo" />
<bpmn:exclusiveGateway id="Gateway_0327105">
<bpmn:incoming>Flow_0bdzcvj</bpmn:incoming>
<bpmn:incoming>Flow_0vw0gah</bpmn:incoming>
<bpmn:outgoing>Flow_0gkh7yw</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0bdzcvj" sourceRef="Activity_0vsa24z" targetRef="Gateway_0327105" />
<bpmn:sequenceFlow id="Flow_0vw0gah" sourceRef="Event_1r93f40" targetRef="Gateway_0327105" />
<bpmn:exclusiveGateway id="Gateway_1429puo">
<bpmn:incoming>Flow_011dgyk</bpmn:incoming>
<bpmn:incoming>Flow_0dc7j1m</bpmn:incoming>
<bpmn:outgoing>Flow_0lillir</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_011dgyk" sourceRef="Activity_19eqzie" targetRef="Gateway_1429puo" />
<bpmn:sequenceFlow id="Flow_0dc7j1m" sourceRef="Event_1s2kweo" targetRef="Gateway_1429puo" />
<bpmn:exclusiveGateway id="Gateway_1g5439k">
<bpmn:incoming>Flow_1wsfbuc</bpmn:incoming>
<bpmn:incoming>Flow_14zncyu</bpmn:incoming>
<bpmn:outgoing>Flow_19ji6j6</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1wsfbuc" sourceRef="Activity_0s18fjd" targetRef="Gateway_1g5439k" />
<bpmn:sequenceFlow id="Flow_14zncyu" sourceRef="Event_0kphidb" targetRef="Gateway_1g5439k" />
<bpmn:exclusiveGateway id="Gateway_123d99c">
<bpmn:incoming>Flow_01bspdb</bpmn:incoming>
<bpmn:incoming>Flow_0j8p9qm</bpmn:incoming>
<bpmn:outgoing>Flow_0c3wtym</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_01bspdb" sourceRef="Activity_052lmai" targetRef="Gateway_123d99c" />
<bpmn:sequenceFlow id="Flow_0j8p9qm" sourceRef="Event_15fdkvs" targetRef="Gateway_123d99c" />
<bpmn:sequenceFlow id="Flow_08oorkb" sourceRef="Gateway_0ev89hu" targetRef="Gateway_11kjfmx" />
<bpmn:sequenceFlow id="Flow_0xxp18c" sourceRef="Gateway_1hwmuwo" targetRef="Gateway_11kjfmx" />
<bpmn:sequenceFlow id="Flow_0gkh7yw" sourceRef="Gateway_0327105" targetRef="Gateway_11kjfmx" />
<bpmn:sequenceFlow id="Flow_0lillir" sourceRef="Gateway_1429puo" targetRef="Gateway_11kjfmx" />
<bpmn:sequenceFlow id="Flow_19ji6j6" sourceRef="Gateway_1g5439k" targetRef="Gateway_11kjfmx" />
<bpmn:sequenceFlow id="Flow_0c3wtym" sourceRef="Gateway_123d99c" targetRef="Gateway_11kjfmx" />
<bpmn:sequenceFlow id="Flow_1wclukq" sourceRef="Gateway_11kjfmx" targetRef="Event_1p6izjv" />
<bpmn:association id="Association_1t4yxos" associationDirection="None" sourceRef="Activity_052lmai" targetRef="TextAnnotation_002qlx4" />
<bpmn:association id="Association_1n7ru77" associationDirection="None" sourceRef="Activity_0s18fjd" targetRef="TextAnnotation_14rnsso" />
<bpmn:association id="Association_1btrc1e" associationDirection="None" sourceRef="Activity_19eqzie" targetRef="TextAnnotation_06f9l3i" />
<bpmn:association id="Association_15yk91x" associationDirection="None" sourceRef="Activity_0vsa24z" targetRef="TextAnnotation_18d4rv4" />
<bpmn:association id="Association_0qox2ff" associationDirection="None" sourceRef="Activity_06x1ijq" targetRef="TextAnnotation_18mfegl" />
<bpmn:association id="Association_17sm97l" associationDirection="None" sourceRef="Activity_10qhh1y" targetRef="TextAnnotation_1w8a6iz" />
<bpmn:textAnnotation id="TextAnnotation_002qlx4">
<bpmn:text>MonitorInsurance</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_1w8a6iz">
<bpmn:text>CheckEPTS</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_18mfegl">
<bpmn:text>GetRegistrationHistory</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_18d4rv4">
<bpmn:text>CheckMileage</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_06f9l3i">
<bpmn:text>CheckAccidents</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_14rnsso">
<bpmn:text>CheckArbitrationAuto</bpmn:text>
</bpmn:textAnnotation>
</bpmn:subProcess>
<bpmn:subProcess id="Activity_0r7by3d" name="Client checking for stop-factors">
<bpmn:incoming>Flow_0hhashk</bpmn:incoming>
<bpmn:intermediateThrowEvent id="Event_14328mq" name="SendNotify" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="SendNotify" target="messageName" />
<zeebe:input source="={ "statusForNotify": "RejectedByStopFactors", "applicationId": applicationId }" target="variables" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0qb0exd</bpmn:incoming>
<bpmn:outgoing>Flow_08t3xms</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_0vfwftp" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateThrowEvent id="Event_0ko8pjn" name="SendNotify" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="SendNotify" target="messageName" />
<zeebe:input source="={ "statusForNotify": "RejectedByStopFactors", "applicationId": applicationId }" target="variables" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0jvqu39</bpmn:incoming>
<bpmn:outgoing>Flow_0lnak4c</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1y6vugn" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateThrowEvent id="Event_0ci2pq1" name="SendNotify" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="SendNotify" target="messageName" />
<zeebe:input source="={ "statusForNotify": "RejectedByStopFactors", "applicationId": applicationId }" target="variables" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1pxv5oq</bpmn:incoming>
<bpmn:outgoing>Flow_1keje64</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_11ni9cn" />
</bpmn:intermediateThrowEvent>
<bpmn:exclusiveGateway id="Gateway_1j3wzt3">
<bpmn:incoming>Flow_0lqh74p</bpmn:incoming>
<bpmn:incoming>Flow_1lxkqos</bpmn:incoming>
<bpmn:outgoing>Flow_0oo5pfa</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:serviceTask id="Activity_0hz4clo" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckPassport" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "passportSeries": IncomMessagePayload.passportSeries, "passportNumber": IncomMessagePayload.passportNumber, "firstName": IncomMessagePayload.firstName, "lastName": IncomMessagePayload.lastName }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ passportResponse: response.body, passportStatus: if passportResponse.response.success = 0 then "error" else if passportResponse.response.success = 1 and passportResponse.response.status = "VALID" then "passed" else if passportResponse.response.success = 1 and (passportResponse.response.status = "NOT_VALID" or passportResponse.response.status = "NOT_FOUND") then "failed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessagePassport: error.variables.response.body.response.error_code, errorResponsePassport: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponsePassport: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1g2jj3p</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:scriptTask id="Activity_0rujpth" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="Cancel"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1x580h9</bpmn:incoming>
<bpmn:outgoing>Flow_073pn9r</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:exclusiveGateway id="Gateway_0zmnb52" name="Стоп-фактор?">
<bpmn:incoming>Flow_1g2jj3p</bpmn:incoming>
<bpmn:incoming>Flow_1lyyiz0</bpmn:incoming>
<bpmn:outgoing>Flow_1x580h9</bpmn:outgoing>
<bpmn:outgoing>Flow_0md115z</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_0z8cvnx">
<bpmn:incoming>Flow_0md115z</bpmn:incoming>
<bpmn:incoming>Flow_0dp8ucz</bpmn:incoming>
<bpmn:incoming>Flow_1rqkqll</bpmn:incoming>
<bpmn:outgoing>Flow_1r79utd</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_0ofxmoh" name="Был ли передан каждый из этих параметров и изменен какой либо из них: firstName, lastName, passportSeries, passportNumber ?" default="Flow_0dp8ucz">
<bpmn:incoming>Flow_012b631</bpmn:incoming>
<bpmn:outgoing>Flow_0dp8ucz</bpmn:outgoing>
<bpmn:outgoing>Flow_1rqkqll</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:scriptTask id="Activity_17gvvs9" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="Cancel"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0aizxt9</bpmn:incoming>
<bpmn:outgoing>Flow_1g4yuo2</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:exclusiveGateway id="Gateway_1xasn78" name="Стоп-фактор?">
<bpmn:incoming>Flow_1vexmsi</bpmn:incoming>
<bpmn:incoming>Flow_03sxgm0</bpmn:incoming>
<bpmn:outgoing>Flow_0lqh74p</bpmn:outgoing>
<bpmn:outgoing>Flow_0aizxt9</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:serviceTask id="Activity_1sx7vgk" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckTerrorist" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "firstName": IncomMessagePayload.firstName, "lastName": IncomMessagePayload.lastName, "middleName": IncomMessagePayload.patronymic, "dob": IncomMessagePayload.dob }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ terroristsResponse:response.body, terroristsStatus: if terroristsResponse.response.success = 0 then "error" else if terroristsResponse.response.success = 1 and count(terroristsResponse.response.records) = 0 then "passed" else if terroristsResponse.response.success = 1 and count(terroristsResponse.response.records) > 0 then "failed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageTerroristsResponse: error.variables.response.body.response.error_code, errorResponseTerrorists: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseTerrorists: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_05f5f0v</bpmn:incoming>
<bpmn:outgoing>Flow_1vexmsi</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0slpyc4" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckMVDWanted" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "firstName": IncomMessagePayload.firstName, "lastName": IncomMessagePayload.lastName, "patronymic": IncomMessagePayload.patronymic, "dob": IncomMessagePayload.dob }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ mvdWantedResponse:response.body, mvdWantedStatus: if mvdWantedResponse.response.success = 0 then "error" else if mvdWantedResponse.response.success = 1 and mvdWantedResponse.response.count = 0 then "passed" else if mvdWantedResponse.response.success = 1 and mvdWantedResponse.response.count > 0 then "failed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageMVDWantedResponse: error.variables.response.body.response.error_code, errorResponseMVDWantedResponse: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseMVDWantedResponse: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0hms2h4</bpmn:incoming>
<bpmn:outgoing>Flow_1kwua5e</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:scriptTask id="Activity_1bmnvqm" name="NEW_STATE">
<bpmn:extensionElements>
<zeebe:script expression="="Cancel"" resultVariable="state" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1813q0i</bpmn:incoming>
<bpmn:outgoing>Flow_02thtx5</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:exclusiveGateway id="Gateway_0o2kc00" name="Стоп-фактор?">
<bpmn:incoming>Flow_1kwua5e</bpmn:incoming>
<bpmn:incoming>Flow_1406y4i</bpmn:incoming>
<bpmn:outgoing>Flow_05f5f0v</bpmn:outgoing>
<bpmn:outgoing>Flow_1813q0i</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_1rbnblm" name="Был ли передан каждый из этих параметров (кроме patronymic) и изменен какой-либо из них: firstName, lastName, patronymic, dob ?" default="Flow_1lxkqos">
<bpmn:incoming>Flow_1r79utd</bpmn:incoming>
<bpmn:outgoing>Flow_1lxkqos</bpmn:outgoing>
<bpmn:outgoing>Flow_0hms2h4</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:startEvent id="Event_0nfh21h">
<bpmn:outgoing>Flow_012b631</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_08i94r8" name="Client SF check completed">
<bpmn:incoming>Flow_0oo5pfa</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_026rm13" escalationRef="Escalation_1d8vvu2" />
</bpmn:endEvent>
<bpmn:boundaryEvent id="Event_1soiob7" name="Error 403" attachedToRef="Activity_0hz4clo">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessagePassport = 40302 then "subscription_expired" else if errorMessagePassport = 40304 then "limit_day_exceeded" else if errorMessagePassport = 40305 then "limit_month_exceeded" else "error"" target="passportStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1lyyiz0</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0eq7aub" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1snzi1i" name="Error 403" attachedToRef="Activity_1sx7vgk">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageTerroristsResponse = 40302 then "subscription_expired" else if errorMessageTerroristsResponse = 40304 then "limit_day_exceeded" else if errorMessageTerroristsResponse = 40305 then "limit_month_exceeded" else "error"" target="terroristsStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_03sxgm0</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_1fu23d9" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1npswa4" name="Error 403" attachedToRef="Activity_0slpyc4">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageMVDWantedResponse = 40302 then "subscription_expired" else if errorMessageMVDWantedResponse = 40304 then "limit_day_exceeded" else if errorMessageMVDWantedResponse = 40305 then "limit_month_exceeded" else "error"" target="mvdWantedStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1406y4i</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_046wnhi" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_1keje64" sourceRef="Event_0ci2pq1" targetRef="Event_1wrpod5" />
<bpmn:sequenceFlow id="Flow_0lqh74p" name="Нет" sourceRef="Gateway_1xasn78" targetRef="Gateway_1j3wzt3">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=terroristsStatus = "passed" or terroristsStatus = "error" or terroristsStatus = "limit_day_exceeded" or terroristsStatus = "limit_month_exceeded" or terroristsStatus = "subscription_expired"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1lxkqos" name="Нет" sourceRef="Gateway_1rbnblm" targetRef="Gateway_1j3wzt3" />
<bpmn:sequenceFlow id="Flow_0oo5pfa" sourceRef="Gateway_1j3wzt3" targetRef="Event_08i94r8" />
<bpmn:sequenceFlow id="Flow_1lyyiz0" sourceRef="Event_1soiob7" targetRef="Gateway_0zmnb52" />
<bpmn:sequenceFlow id="Flow_1g2jj3p" sourceRef="Activity_0hz4clo" targetRef="Gateway_0zmnb52" />
<bpmn:sequenceFlow id="Flow_1x580h9" name="Да" sourceRef="Gateway_0zmnb52" targetRef="Activity_0rujpth">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=passportStatus = "failed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0md115z" name="Нет" sourceRef="Gateway_0zmnb52" targetRef="Gateway_0z8cvnx">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=passportStatus = "passed" or passportStatus = "error" or passportStatus = "limit_day_exceeded" or passportStatus = "limit_month_exceeded" or passportStatus = "subscription_expired"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0dp8ucz" name="Нет" sourceRef="Gateway_0ofxmoh" targetRef="Gateway_0z8cvnx" />
<bpmn:sequenceFlow id="Flow_1rqkqll" name="Да" sourceRef="Gateway_0ofxmoh" targetRef="Gateway_0z8cvnx">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(
IncomMessagePayload.firstName != null and IncomMessagePayload.firstName != "" and
IncomMessagePayload.lastName != null and IncomMessagePayload.lastName != "" and
IncomMessagePayload.passportSeries != null and IncomMessagePayload.passportSeries != "" and
IncomMessagePayload.passportNumber != null and IncomMessagePayload.passportNumber != ""
)
and
((changedFields = [] and afterThreeHours = true) or (some f in ["firstName","lastName","passportSeries","passportNumber"]
satisfies f in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1r79utd" sourceRef="Gateway_0z8cvnx" targetRef="Gateway_1rbnblm" />
<bpmn:sequenceFlow id="Flow_012b631" sourceRef="Event_0nfh21h" targetRef="Gateway_0ofxmoh" />
<bpmn:sequenceFlow id="Flow_1g4yuo2" sourceRef="Activity_17gvvs9" targetRef="Activity_0t6des0" />
<bpmn:sequenceFlow id="Flow_0aizxt9" name="Да" sourceRef="Gateway_1xasn78" targetRef="Activity_17gvvs9">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=terroristsStatus = "failed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1vexmsi" sourceRef="Activity_1sx7vgk" targetRef="Gateway_1xasn78" />
<bpmn:sequenceFlow id="Flow_03sxgm0" sourceRef="Event_1snzi1i" targetRef="Gateway_1xasn78" />
<bpmn:sequenceFlow id="Flow_05f5f0v" name="Нет" sourceRef="Gateway_0o2kc00" targetRef="Activity_1sx7vgk">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=mvdWantedStatus = "passed" or mvdWantedStatus = "error" or mvdWantedStatus = "limit_day_exceeded" or mvdWantedStatus = "limit_month_exceeded" or mvdWantedStatus = "subscription_expired"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1406y4i" sourceRef="Event_1npswa4" targetRef="Gateway_0o2kc00" />
<bpmn:sequenceFlow id="Flow_0hms2h4" name="Да" sourceRef="Gateway_1rbnblm" targetRef="Activity_0slpyc4">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(
IncomMessagePayload.firstName != null and IncomMessagePayload.firstName != "" and
IncomMessagePayload.lastName != null and IncomMessagePayload.lastName != "" and
IncomMessagePayload.dob != null and IncomMessagePayload.dob != ""
)
and
((changedFields = [] and afterThreeHours = true) or (some f in ["firstName","lastName","patronymic","dob"] satisfies f in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1kwua5e" sourceRef="Activity_0slpyc4" targetRef="Gateway_0o2kc00" />
<bpmn:sequenceFlow id="Flow_1813q0i" name="Да" sourceRef="Gateway_0o2kc00" targetRef="Activity_1bmnvqm">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=mvdWantedStatus = "failed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:intermediateThrowEvent id="Event_1wrpod5" name="RECEIVE_COMMAND" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="RECEIVE_COMMAND" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1keje64</bpmn:incoming>
<bpmn:outgoing>Flow_004gyze</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_04i8vkm" />
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_004gyze" sourceRef="Event_1wrpod5" targetRef="Event_1lhxua1" />
<bpmn:endEvent id="Event_1lhxua1" name="Client SF check failed">
<bpmn:incoming>Flow_004gyze</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_17udctq" escalationRef="Escalation_1np12bs" />
</bpmn:endEvent>
<bpmn:intermediateThrowEvent id="Event_16b96bi" name="RECEIVE_COMMAND" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="RECEIVE_COMMAND" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0lnak4c</bpmn:incoming>
<bpmn:outgoing>Flow_1iunwdu</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_01fyoek" />
</bpmn:intermediateThrowEvent>
<bpmn:endEvent id="Event_1tizalg" name="Client SF check failed">
<bpmn:incoming>Flow_1iunwdu</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0913r3u" escalationRef="Escalation_1np12bs" />
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1iunwdu" sourceRef="Event_16b96bi" targetRef="Event_1tizalg" />
<bpmn:intermediateThrowEvent id="Event_143nwi4" name="RECEIVE_COMMAND" zeebe:modelerTemplate="io.camunda.connectors.message.intermediate.v1" zeebe:modelerTemplateVersion="0" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZwogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHdpZHRoPSIyMDAwIgogICBoZWlnaHQ9IjIwMDAiCiAgIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiCiAgIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cGF0aAogICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwIgogICAgIGQ9Im0gMCwyODQgMjAwMCwwIC0xMDAwLDU1NCB6Ii8+CiAgPHBhdGgKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMCIKICAgICBkPSJtIDAsNDUyIDEwMDAsNTQ4IDEwMDAsLTU0OCAwLDEwOTYgLTIwMDAsMCB6Ii8+Cjwvc3ZnPgo=">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="RECEIVE_COMMAND" target="messageName" />
<zeebe:input source="=applicationId" target="correlationKey" />
<zeebe:input source="publish" target="correlationType.type" />
</zeebe:ioMapping>
<zeebe:taskDefinition type="io.camunda:sendMessage:1" retries="3" />
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="0" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.message.v1" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_08t3xms</bpmn:incoming>
<bpmn:outgoing>Flow_1tor5bi</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_0w3pqor" />
</bpmn:intermediateThrowEvent>
<bpmn:endEvent id="Event_0ccyfoc" name="Client SF check failed">
<bpmn:incoming>Flow_1tor5bi</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_10klufk" escalationRef="Escalation_1np12bs" />
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1tor5bi" sourceRef="Event_143nwi4" targetRef="Event_0ccyfoc" />
<bpmn:sequenceFlow id="Flow_0lnak4c" sourceRef="Event_0ko8pjn" targetRef="Event_16b96bi" />
<bpmn:sequenceFlow id="Flow_08t3xms" sourceRef="Event_14328mq" targetRef="Event_143nwi4" />
<bpmn:sequenceFlow id="Flow_073pn9r" sourceRef="Activity_0rujpth" targetRef="Activity_1xo0i79" />
<bpmn:subProcess id="Activity_1iub37x" name="App module Call">
<bpmn:incoming>Flow_02thtx5</bpmn:incoming>
<bpmn:outgoing>Flow_0jvqu39</bpmn:outgoing>
<bpmn:serviceTask id="Activity_1w03qa5" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ) else [ { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ] } }, "checks": put all( if reestrStatusAuto = "passed" or reestrStatusAuto = "error" or reestrStatusAuto = "limit_day_exceeded" or reestrStatusAuto = "limit_month_exceeded" then { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": gibddRestrictResponse.response.restrictions }, if gibddRestrictStatus = "passed" then { "verificationStatus": "approved" } else {} ), "wanted": put all( { "status": gibddWantedStatus, "searches": gibddWantedResponse.response.searches }, if gibddWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "pledges": put all( { "status": reestrStatusAuto, "records": reestrResponseAuto.response.records }, if reestrStatusAuto = "passed" then { "verificationStatus": "approved" } else {} ) } } else {}, { "clientChecks": put all ( if passportStatus = "passed" or passportStatus = "error" or passportStatus = "limit_day_exceeded" or passportStatus = "limit_month_exceeded" then { "passport": put all( { "status": passportStatus, "statusText": passportResponse.response.status }, if passportStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {}, { "wanted": put all( { "status": mvdWantedStatus, "records": if mvdWantedResponse.response.records != null then for r in (mvdWantedResponse.response.records) return { "name": r.name } else [] }, if mvdWantedStatus = "failed" then { "verificationStatus": "rejected" } else {} ) } ) } ) } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_18yxef7</bpmn:incoming>
<bpmn:outgoing>Flow_03sq5h8</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0r0ne0d" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0v8q6cy</bpmn:incoming>
<bpmn:outgoing>Flow_18yxef7</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_0lr78ww">
<bpmn:outgoing>Flow_0v8q6cy</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_1d2fe39">
<bpmn:incoming>Flow_03sq5h8</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_18yxef7" sourceRef="Activity_0r0ne0d" targetRef="Activity_1w03qa5" />
<bpmn:sequenceFlow id="Flow_03sq5h8" sourceRef="Activity_1w03qa5" targetRef="Event_1d2fe39" />
<bpmn:sequenceFlow id="Flow_0v8q6cy" sourceRef="Event_0lr78ww" targetRef="Activity_0r0ne0d" />
</bpmn:subProcess>
<bpmn:subProcess id="Activity_0t6des0" name="App module Call">
<bpmn:incoming>Flow_1g4yuo2</bpmn:incoming>
<bpmn:outgoing>Flow_0qb0exd</bpmn:outgoing>
<bpmn:serviceTask id="Activity_0of2drj" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ) else [ { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ] } }, "checks": put all( if reestrStatusAuto = "passed" or reestrStatusAuto = "error" or reestrStatusAuto = "limit_day_exceeded" or reestrStatusAuto = "limit_month_exceeded" then { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": gibddRestrictResponse.response.restrictions }, if gibddRestrictStatus = "passed" then { "verificationStatus": "approved" } else {} ), "wanted": put all( { "status": gibddWantedStatus, "searches": gibddWantedResponse.response.searches }, if gibddWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "pledges": put all( { "status": reestrStatusAuto, "records": reestrResponseAuto.response.records }, if reestrStatusAuto = "passed" then { "verificationStatus": "approved" } else {} ) } } else {}, { "clientChecks": put all ( if passportStatus = "passed" or passportStatus = "error" or passportStatus = "limit_day_exceeded" or passportStatus = "limit_month_exceeded" then { "passport": put all( { "status": passportStatus, "statusText": passportResponse.response.status }, if passportStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {}, { "wanted": put all( { "status": mvdWantedStatus, "records": if mvdWantedResponse.response.records != null then mvdWantedResponse.response.records else [] }, if mvdWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "terroristsExtremists": put all( { "status": terroristsStatus, "records": if terroristsResponse.response.records != [] then for r in (terroristsResponse.response.records) return { "text": r.text } else [] }, if terroristsStatus = "failed" then { "verificationStatus": "rejected" } else {} ) } ) } ) } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1g42gb4</bpmn:incoming>
<bpmn:outgoing>Flow_10cuenc</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_19by4n4" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ud2377</bpmn:incoming>
<bpmn:outgoing>Flow_1g42gb4</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_1ww30b1">
<bpmn:outgoing>Flow_1ud2377</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_0y6csaw">
<bpmn:incoming>Flow_10cuenc</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1g42gb4" sourceRef="Activity_19by4n4" targetRef="Activity_0of2drj" />
<bpmn:sequenceFlow id="Flow_10cuenc" sourceRef="Activity_0of2drj" targetRef="Event_0y6csaw" />
<bpmn:sequenceFlow id="Flow_1ud2377" sourceRef="Event_1ww30b1" targetRef="Activity_19by4n4" />
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_02thtx5" sourceRef="Activity_1bmnvqm" targetRef="Activity_1iub37x" />
<bpmn:sequenceFlow id="Flow_0jvqu39" sourceRef="Activity_1iub37x" targetRef="Event_0ko8pjn" />
<bpmn:sequenceFlow id="Flow_0qb0exd" sourceRef="Activity_0t6des0" targetRef="Event_14328mq" />
<bpmn:subProcess id="Activity_1xo0i79" name="App module Call">
<bpmn:incoming>Flow_073pn9r</bpmn:incoming>
<bpmn:outgoing>Flow_1pxv5oq</bpmn:outgoing>
<bpmn:serviceTask id="Activity_1iwdq5b" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ) else [ { "status": "RejectedByStopFactors", "statusChangedAt": substring before(string(now()), "@") } ] } }, "checks": put all( if reestrStatusAuto = "passed" or reestrStatusAuto = "error" or reestrStatusAuto = "limit_day_exceeded" or reestrStatusAuto = "limit_month_exceeded" then { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": gibddRestrictResponse.response.restrictions }, if gibddRestrictStatus = "passed" then { "verificationStatus": "approved" } else {} ), "wanted": put all( { "status": gibddWantedStatus, "searches": gibddWantedResponse.response.searches }, if gibddWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "pledges": put all( { "status": reestrStatusAuto, "records": reestrResponseAuto.response.records }, if reestrStatusAuto = "passed" then { "verificationStatus": "approved" } else {} ) } } else {}, { "clientChecks": { "passport": put all( { "status": passportStatus, "statusText": passportResponse.response.status }, if passportStatus = "failed" then { "verificationStatus": "rejected" } else {} ) } } ) } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_05ev1b4</bpmn:incoming>
<bpmn:outgoing>Flow_0fmygbl</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_1edccob" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0szbr0b</bpmn:incoming>
<bpmn:outgoing>Flow_05ev1b4</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_1kfb3ai">
<bpmn:outgoing>Flow_0szbr0b</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_1yb8git">
<bpmn:incoming>Flow_0fmygbl</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_05ev1b4" sourceRef="Activity_1edccob" targetRef="Activity_1iwdq5b" />
<bpmn:sequenceFlow id="Flow_0fmygbl" sourceRef="Activity_1iwdq5b" targetRef="Event_1yb8git" />
<bpmn:sequenceFlow id="Flow_0szbr0b" sourceRef="Event_1kfb3ai" targetRef="Activity_1edccob" />
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_1pxv5oq" sourceRef="Activity_1xo0i79" targetRef="Event_0ci2pq1" />
<bpmn:association id="Association_1hj3ibp" associationDirection="None" sourceRef="Activity_0hz4clo" targetRef="TextAnnotation_1kolkrd" />
<bpmn:association id="Association_0ddcuxs" associationDirection="None" sourceRef="Activity_1sx7vgk" targetRef="TextAnnotation_01g9ud7" />
<bpmn:association id="Association_0jtm4c5" associationDirection="None" sourceRef="Activity_0slpyc4" targetRef="TextAnnotation_1a9lznb" />
<bpmn:textAnnotation id="TextAnnotation_01g9ud7">
<bpmn:text>CheckTerrorist</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_1a9lznb">
<bpmn:text>CheckMVDWanted</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_1kolkrd">
<bpmn:text>CheckPassport</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_1n6upy7">
<bpmn:text>Обновлении истории изменения и сохранения статусов</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_0zkgphf" associationDirection="None" sourceRef="TextAnnotation_1n6upy7" targetRef="Activity_1xo0i79" />
<bpmn:association id="Association_1fna4xp" associationDirection="None" sourceRef="Activity_1iub37x" targetRef="TextAnnotation_1n6upy7" />
<bpmn:textAnnotation id="TextAnnotation_16jr15m">
<bpmn:text>Обновлении истории изменения и сохранения статусов</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_1597hcf" associationDirection="None" sourceRef="TextAnnotation_16jr15m" targetRef="Activity_1iub37x" />
<bpmn:association id="Association_1ep17ra" associationDirection="None" sourceRef="TextAnnotation_16jr15m" targetRef="Activity_0t6des0" />
</bpmn:subProcess>
<bpmn:subProcess id="Activity_1rkj7mr" name="Client checking">
<bpmn:incoming>Flow_03tpvub</bpmn:incoming>
<bpmn:exclusiveGateway id="Gateway_1rjsw7d" name="Был ли передан каждый из этих параметров (кроме patronymic) и изменен какой-либо из них: firstName, lastName, patronymic, dob ?" default="Flow_1qx1zza">
<bpmn:incoming>Flow_0op0sc2</bpmn:incoming>
<bpmn:outgoing>Flow_0j7rdsf</bpmn:outgoing>
<bpmn:outgoing>Flow_1qx1zza</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:scriptTask id="Activity_0fce7fy" name="STATUS PASSED">
<bpmn:extensionElements>
<zeebe:script expression="="passed"" resultVariable="bankruptcyStatusMessageDetail" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0pftc7b</bpmn:incoming>
<bpmn:incoming>Flow_0fh1alr</bpmn:incoming>
<bpmn:incoming>Flow_1bpjs6z</bpmn:incoming>
<bpmn:outgoing>Flow_04m9n0g</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:serviceTask id="Activity_0g7min2" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/SearchBankruptcyPerson" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderId": 0, "clientId": 0, "firstName": IncomMessagePayload.firstName, "lastName": IncomMessagePayload.lastName, "patronymic": IncomMessagePayload.patronymic }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ bankruptcyResponse:response.body, bankruptcyStatus: if bankruptcyResponse.response.success = 0 then "error" else if bankruptcyResponse.response.success = 1 and count(bankruptcyResponse.response.records) = 0 then "not passed" else if bankruptcyResponse.response.success = 1 and count(bankruptcyResponse.response.records) > 0 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageBankruptcy: error.variables.response.body.response.error_code, errorResponseBankruptcy: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseBankruptcy: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0a6nhzx</bpmn:incoming>
<bpmn:outgoing>Flow_0yg6f65</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_09525jb" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckArbitrationPerson" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "inn": IncomMessagePayload.firstName +" "+IncomMessagePayload.lastName+" "+IncomMessagePayload.patronymic }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ rasArbitrResponsePerson:response.body, rasArbitrStatusPerson: if rasArbitrResponsePerson.response.done = 0 then "error" else if rasArbitrResponsePerson.response.done = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageRasArbitrPerson: error.variables.response.body.response.error_code, errorResponseRasArbitrPerson: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseRasArbitrPerson: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_06mduhx</bpmn:incoming>
<bpmn:outgoing>Flow_1p1q9lz</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="Gateway_13ojie2">
<bpmn:incoming>Flow_0yg6f65</bpmn:incoming>
<bpmn:outgoing>Flow_0pftc7b</bpmn:outgoing>
<bpmn:outgoing>Flow_1908ok5</bpmn:outgoing>
<bpmn:outgoing>Flow_0x10cn2</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_0o5p0ic">
<bpmn:incoming>Flow_0a6ry10</bpmn:incoming>
<bpmn:incoming>Flow_0rgg0y2</bpmn:incoming>
<bpmn:incoming>Flow_0ttioi8</bpmn:incoming>
<bpmn:outgoing>Flow_06v53sx</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:subProcess id="Activity_1btqq2f">
<bpmn:incoming>Flow_1908ok5</bpmn:incoming>
<bpmn:outgoing>Flow_0fh1alr</bpmn:outgoing>
<bpmn:subProcess id="Activity_05l2f78" name="bankruptcyResponseMessageDetail">
<bpmn:incoming>Flow_0iwqcs9</bpmn:incoming>
<bpmn:outgoing>Flow_1bjsrzi</bpmn:outgoing>
<bpmn:multiInstanceLoopCharacteristics>
<bpmn:extensionElements>
<zeebe:loopCharacteristics inputCollection="=bankruptcyResponseMessages.response.records" inputElement="record" outputCollection="bankruptcyResponseMessageDetail" outputElement="={ responseDetail: bankruptcyMessageDetailObject.responses, bankruptcyStatusDetail: bankruptcyMessageDetailObject.bankruptcyStatusMessageDetail }" />
</bpmn:extensionElements>
</bpmn:multiInstanceLoopCharacteristics>
<bpmn:endEvent id="Event_1q4e5k8">
<bpmn:incoming>Flow_1gpsdr9</bpmn:incoming>
<bpmn:incoming>Flow_0xwq1bd</bpmn:incoming>
</bpmn:endEvent>
<bpmn:serviceTask id="Activity_0squrq4" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/GetBankruptcyMessageDetail" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderId": 0, "clientId": 0, "messageId": record.id }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ bankruptcyMessageDetailObject: { responses: if response.body.response.success = 1 then { caseNumber: response.body.response.record.case_num, publicationDate: response.body.response.record.date_published, isActual: string(response.body.response.record.is_actual) } else { caseNumber: null, publicationDate: null, isActual: "error" }, bankruptcyStatusMessageDetail: if response.body.response.success = 0 then "error" else if response.body.response.success = 1 then "passed" else "error" } }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageBankruptcyPersonMessagesDetail: error.variables.response.body.response.error_code, errorResponseBankruptcyPersonMessagesDetail: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseBankruptcyPersonMessagesDetail: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_06kt2q3</bpmn:incoming>
<bpmn:outgoing>Flow_0xwq1bd</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_1vcjfv7">
<bpmn:outgoing>Flow_06kt2q3</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:boundaryEvent id="Event_0gyvgk0" name="Error 403" attachedToRef="Activity_0squrq4">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="={ responses: { caseNumber: null, publicationDate: null, isActual: "error" }, bankruptcyStatusMessageDetail: if errorMessageBankruptcyPersonMessagesDetail = 40302 then "subscription_expired" else if errorMessageBankruptcyPersonMessagesDetail = 40304 then "limit_day_exceeded" else if errorMessageBankruptcyPersonMessagesDetail = 40305 then "limit_month_exceeded" else "error" }" target="bankruptcyMessageDetailObject" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1gpsdr9</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0t7unz5" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_0xwq1bd" sourceRef="Activity_0squrq4" targetRef="Event_1q4e5k8" />
<bpmn:sequenceFlow id="Flow_1gpsdr9" sourceRef="Event_0gyvgk0" targetRef="Event_1q4e5k8" />
<bpmn:sequenceFlow id="Flow_06kt2q3" sourceRef="Event_1vcjfv7" targetRef="Activity_0squrq4" />
</bpmn:subProcess>
<bpmn:exclusiveGateway id="Gateway_04e5kgv" name="Есть уведомление по которому удалось получить детализацию?" default="Flow_1hxy2f0">
<bpmn:incoming>Flow_1bjsrzi</bpmn:incoming>
<bpmn:outgoing>Flow_0ztoiyk</bpmn:outgoing>
<bpmn:outgoing>Flow_1hxy2f0</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_13az8f8">
<bpmn:incoming>Flow_1oexdd7</bpmn:incoming>
<bpmn:outgoing>Flow_0iwqcs9</bpmn:outgoing>
<bpmn:outgoing>Flow_0x0i1q2</bpmn:outgoing>
<bpmn:outgoing>Flow_1opgre0</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:serviceTask id="Activity_1shf5kl" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/GetBankruptcyPersonMessages" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderId": 0, "clientId": 0, "personId": bankruptcyResponse.response.records[1].id }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ bankruptcyResponseMessages: response.body, bankruptcyStatusMessages: if bankruptcyResponseMessages.response.success = 0 then "error" else if bankruptcyResponseMessages.response.success = 1 then if number(bankruptcyResponseMessages.response.total_count) > 0 then if get value(bankruptcyResponseMessages.response, "records") instance of list then "passed" else "error" else "not passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageBankruptcyPersonMessages: error.variables.response.body.response.error_code, errorResponseBankruptcyPersonMessages: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseBankruptcyPersonMessages: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0gcj0at</bpmn:incoming>
<bpmn:outgoing>Flow_1oexdd7</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:endEvent id="Event_188f6cx">
<bpmn:incoming>Flow_1hxy2f0</bpmn:incoming>
</bpmn:endEvent>
<bpmn:startEvent id="Event_17cij1t">
<bpmn:outgoing>Flow_0gcj0at</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:boundaryEvent id="Event_05bjnn3" name="Error 403" attachedToRef="Activity_1shf5kl">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageBankruptcyPersonMessages = 40302 then "subscription_expired" else if errorMessageBankruptcyPersonMessages = 40304 then "limit_day_exceeded" else if errorMessageBankruptcyPersonMessages = 40305 then "limit_month_exceeded" else "error"" target="bankruptcyStatusMessageDetail" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0lnqdse</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_16f5it8" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_0iwqcs9" name="Провека успешна, есть судебные уведомления" sourceRef="Gateway_13az8f8" targetRef="Activity_05l2f78">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=bankruptcyStatusMessages = "passed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1bjsrzi" sourceRef="Activity_05l2f78" targetRef="Gateway_04e5kgv" />
<bpmn:sequenceFlow id="Flow_0x0i1q2" name="Провека успешна, судебных уведомлений нет" sourceRef="Gateway_13az8f8" targetRef="Event_0dr8gbt">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=bankruptcyStatusMessages = "not passed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0ztoiyk" name="Нет" sourceRef="Gateway_04e5kgv" targetRef="Activity_04uls9g">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=count(
bankruptcyResponseMessageDetail[
bankruptcyStatusDetail = "error"
or bankruptcyStatusDetail = "limit_day_exceeded"
or bankruptcyStatusDetail = "limit_month_exceeded"
or bankruptcyStatusDetail = "subscription_expired"
]
) = count(bankruptcyResponseMessageDetail)</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1opgre0" name="Проверка неуспешна" sourceRef="Gateway_13az8f8" targetRef="Activity_04uls9g">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=bankruptcyStatusMessages = "error"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0lnqdse" sourceRef="Event_05bjnn3" targetRef="Event_00k00ql" />
<bpmn:sequenceFlow id="Flow_1hxy2f0" name="Да" sourceRef="Gateway_04e5kgv" targetRef="Event_188f6cx" />
<bpmn:sequenceFlow id="Flow_0gcj0at" sourceRef="Event_17cij1t" targetRef="Activity_1shf5kl" />
<bpmn:sequenceFlow id="Flow_1oexdd7" sourceRef="Activity_1shf5kl" targetRef="Gateway_13az8f8" />
<bpmn:scriptTask id="Activity_04uls9g" name="STATUS ERROR">
<bpmn:extensionElements>
<zeebe:script expression="="error"" resultVariable="bankruptcyStatusMessageDetail" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1opgre0</bpmn:incoming>
<bpmn:incoming>Flow_0ztoiyk</bpmn:incoming>
<bpmn:outgoing>Flow_0jp3fvu</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0jp3fvu" sourceRef="Activity_04uls9g" targetRef="Event_00k00ql" />
<bpmn:endEvent id="Event_00k00ql" name="CheckBankruptcyError">
<bpmn:incoming>Flow_0jp3fvu</bpmn:incoming>
<bpmn:incoming>Flow_0lnqdse</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_1i9cj7f" escalationRef="Escalation_3cr5m9c" />
</bpmn:endEvent>
<bpmn:endEvent id="Event_0dr8gbt" name="bankruptcyStatusPassed">
<bpmn:incoming>Flow_0x0i1q2</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0o5u7sm" escalationRef="Escalation_3p2s14q" />
</bpmn:endEvent>
</bpmn:subProcess>
<bpmn:serviceTask id="Activity_1x3eu0g" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckFSSP" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "firstName": IncomMessagePayload.firstName, "lastName": IncomMessagePayload.lastName, "patronymic": IncomMessagePayload.patronymic, "dob": IncomMessagePayload.dob }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ fsspSearchFizResponse:response.body, fsspSearchFizStatus: if fsspSearchFizResponse.response.done = 0 then "error" else if fsspSearchFizResponse.response.done = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageFSSPSearchFiz: error.variables.response.body.response.error_code, errorResponseFSSPSearchFiz: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseFSSPSearchFiz: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0m9bxlf</bpmn:incoming>
<bpmn:outgoing>Flow_0lxgycr</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0kz9n58" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckPledgeRegistryPerson" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "firstName": IncomMessagePayload.firstName, "lastName": IncomMessagePayload.lastName, "patronymic": IncomMessagePayload.patronymic, "dob": IncomMessagePayload.dob }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ reestrResponsePerson: response.body, latestPersonHistories: for r in reestrResponsePerson.response.records return sort( r.history, function(a, b) date and time( substring(a.date, 7, 4) + "-" + substring(a.date, 4, 2) + "-" + substring(a.date, 1, 2) + "T" + substring(a.date, 12, 5) + ":00" ) < date and time( substring(b.date, 7, 4) + "-" + substring(b.date, 4, 2) + "-" + substring(b.date, 1, 2) + "T" + substring(b.date, 12, 5) + ":00" ) )[-1], reestrStatusPerson: if reestrResponsePerson.response.reestr_done = 0 then "error" else if reestrResponsePerson.response.reestr_done = 1 and reestrResponsePerson.response.records != null then "null" else if reestrResponsePerson.response.reestr_done = 1 and reestrResponsePerson.response.records = null then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageReestrPerson: error.variables.response.body.response.error_code, errorResponseReestrPerson: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseReestrPerson: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_00282aa</bpmn:incoming>
<bpmn:outgoing>Flow_07kk315</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="Gateway_03iniyu">
<bpmn:incoming>Flow_0qxgqrd</bpmn:incoming>
<bpmn:incoming>Flow_19838i3</bpmn:incoming>
<bpmn:outgoing>Flow_1ny9f2j</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_0so7d85" name="Был ли передан каждый из этих параметров (кроме patronymic) и изменен какой-либо из них: firstName, lastName, patronymic ?" default="Flow_0j6uf4t">
<bpmn:incoming>Flow_1ibmcmg</bpmn:incoming>
<bpmn:outgoing>Flow_1njw820</bpmn:outgoing>
<bpmn:outgoing>Flow_0j6uf4t</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_10txamw">
<bpmn:incoming>Flow_1qx1zza</bpmn:incoming>
<bpmn:incoming>Flow_1kdxrv8</bpmn:incoming>
<bpmn:outgoing>Flow_0ao7a6z</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:startEvent id="Event_1n6hxww">
<bpmn:outgoing>Flow_110eej6</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_08pe4sl" name="Client check completed">
<bpmn:incoming>Flow_1j8sj3z</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0zlvvk4" escalationRef="Escalation_37otade" />
</bpmn:endEvent>
<bpmn:boundaryEvent id="Event_0uzivt2" name="Error 403" attachedToRef="Activity_0g7min2">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageBankruptcy = 40302 then "subscription_expired" else if errorMessageBankruptcy = 40304 then "limit_day_exceeded" else if errorMessageBankruptcy = 40305 then "limit_month_exceeded" else "error"" target="bankruptcyStatusMessageDetail" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0a6ry10</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0yztweq" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1bc2zam" name="Error 403" attachedToRef="Activity_09525jb">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageRasArbitrPerson = 40302 then "subscription_expired" else if errorMessageRasArbitrPerson = 40304 then "limit_day_exceeded" else if errorMessageRasArbitrPerson = 40305 then "limit_month_exceeded" else "error"" target="rasArbitrStatusPerson" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1hehz6o</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_03majf8" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1iqubhz" name="Error 403" attachedToRef="Activity_1x3eu0g">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageFSSPSearchFiz = 40302 then "subscription_expired" else if errorMessageFSSPSearchFiz = 40304 then "limit_day_exceeded" else if errorMessageFSSPSearchFiz = 40305 then "limit_month_exceeded" else "error"" target="fsspSearchFizStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0lncao2</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_1nqfynu" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1c3hgiu" name="Error 403" attachedToRef="Activity_0kz9n58">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageReestrPerson = 40302 then "subscription_expired" else if errorMessageReestrPerson = 40304 then "limit_day_exceeded" else if errorMessageReestrPerson = 40305 then "limit_month_exceeded" else "error"" target="reestrStatusPerson" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_0ivy97f</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0qqgftc" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_110eej6" sourceRef="Event_1n6hxww" targetRef="Gateway_1qe6omd" />
<bpmn:sequenceFlow id="Flow_0j7rdsf" name="Да" sourceRef="Gateway_1rjsw7d" targetRef="Gateway_1ohdyvz">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(
IncomMessagePayload.firstName != null and IncomMessagePayload.firstName != "" and
IncomMessagePayload.lastName != null and IncomMessagePayload.lastName != "" and
IncomMessagePayload.dob != null and IncomMessagePayload.dob != ""
)
and
((changedFields = [] and afterThreeHours = true) or (some f in ["firstName","lastName","patronymic","dob"] satisfies f in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1qx1zza" name="Нет" sourceRef="Gateway_1rjsw7d" targetRef="Gateway_10txamw" />
<bpmn:sequenceFlow id="Flow_0yg6f65" sourceRef="Activity_0g7min2" targetRef="Gateway_13ojie2" />
<bpmn:sequenceFlow id="Flow_0pftc7b" name="Проверка успешна, банкротства нет" sourceRef="Gateway_13ojie2" targetRef="Activity_0fce7fy">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=bankruptcyStatus = "not passed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0fh1alr" sourceRef="Activity_1btqq2f" targetRef="Activity_0fce7fy" />
<bpmn:sequenceFlow id="Flow_1bpjs6z" sourceRef="Event_1eqwznp" targetRef="Activity_0fce7fy" />
<bpmn:sequenceFlow id="Flow_06v53sx" sourceRef="Gateway_0o5p0ic" targetRef="Gateway_1a56xxt" />
<bpmn:sequenceFlow id="Flow_1njw820" name="Да" sourceRef="Gateway_0so7d85" targetRef="Gateway_0wz1n6v">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(
IncomMessagePayload.firstName != null and IncomMessagePayload.firstName != "" and
IncomMessagePayload.lastName != null and IncomMessagePayload.lastName != ""
)
and
((changedFields = [] and afterThreeHours = true) or (some f in ["firstName","lastName","patronymic"] satisfies f in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1908ok5" name="Проверка успешна, есть банкротство" sourceRef="Gateway_13ojie2" targetRef="Activity_1btqq2f">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=bankruptcyStatus = "passed"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0x10cn2" name="Проверка неуспешна" sourceRef="Gateway_13ojie2" targetRef="Activity_0nnzzlk">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=bankruptcyStatus = "error"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0a6ry10" sourceRef="Event_0uzivt2" targetRef="Gateway_0o5p0ic" />
<bpmn:sequenceFlow id="Flow_0rgg0y2" sourceRef="Event_1oanq42" targetRef="Gateway_0o5p0ic" />
<bpmn:sequenceFlow id="Flow_0j6uf4t" name="Нет" sourceRef="Gateway_0so7d85" targetRef="Event_0a13vjf" />
<bpmn:scriptTask id="Activity_0nnzzlk" name="STATUS ERROR">
<bpmn:extensionElements>
<zeebe:script expression="="error"" resultVariable="bankruptcyStatusMessageDetail" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0x10cn2</bpmn:incoming>
<bpmn:outgoing>Flow_0ttioi8</bpmn:outgoing>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0ttioi8" sourceRef="Activity_0nnzzlk" targetRef="Gateway_0o5p0ic" />
<bpmn:boundaryEvent id="Event_1oanq42" name="CheckBankruptcyError" attachedToRef="Activity_1btqq2f">
<bpmn:outgoing>Flow_0rgg0y2</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0af2owh" escalationRef="Escalation_3cr5m9c" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1eqwznp" name="bankruptcyStatusPassed" attachedToRef="Activity_1btqq2f">
<bpmn:outgoing>Flow_1bpjs6z</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_1426fho" escalationRef="Escalation_3p2s14q" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_04m9n0g" sourceRef="Activity_0fce7fy" targetRef="Gateway_1a56xxt" />
<bpmn:sequenceFlow id="Flow_00282aa" sourceRef="Gateway_1ohdyvz" targetRef="Activity_0kz9n58" />
<bpmn:parallelGateway id="Gateway_1ohdyvz">
<bpmn:incoming>Flow_0j7rdsf</bpmn:incoming>
<bpmn:outgoing>Flow_00282aa</bpmn:outgoing>
<bpmn:outgoing>Flow_0m9bxlf</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:parallelGateway id="Gateway_0ou9oao">
<bpmn:incoming>Flow_0lcg1bw</bpmn:incoming>
<bpmn:incoming>Flow_0807ce6</bpmn:incoming>
<bpmn:outgoing>Flow_1kdxrv8</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:exclusiveGateway id="Gateway_0e6u0db">
<bpmn:incoming>Flow_07kk315</bpmn:incoming>
<bpmn:incoming>Flow_0ivy97f</bpmn:incoming>
<bpmn:outgoing>Flow_0lcg1bw</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_07kk315" sourceRef="Activity_0kz9n58" targetRef="Gateway_0e6u0db" />
<bpmn:sequenceFlow id="Flow_0ivy97f" sourceRef="Event_1c3hgiu" targetRef="Gateway_0e6u0db" />
<bpmn:exclusiveGateway id="Gateway_0mxturc">
<bpmn:incoming>Flow_0lxgycr</bpmn:incoming>
<bpmn:incoming>Flow_0lncao2</bpmn:incoming>
<bpmn:outgoing>Flow_0807ce6</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0lxgycr" sourceRef="Activity_1x3eu0g" targetRef="Gateway_0mxturc" />
<bpmn:sequenceFlow id="Flow_0lncao2" sourceRef="Event_1iqubhz" targetRef="Gateway_0mxturc" />
<bpmn:sequenceFlow id="Flow_0lcg1bw" sourceRef="Gateway_0e6u0db" targetRef="Gateway_0ou9oao" />
<bpmn:sequenceFlow id="Flow_0807ce6" sourceRef="Gateway_0mxturc" targetRef="Gateway_0ou9oao" />
<bpmn:sequenceFlow id="Flow_0m9bxlf" sourceRef="Gateway_1ohdyvz" targetRef="Activity_1x3eu0g" />
<bpmn:sequenceFlow id="Flow_1kdxrv8" sourceRef="Gateway_0ou9oao" targetRef="Gateway_10txamw" />
<bpmn:sequenceFlow id="Flow_0op0sc2" sourceRef="Gateway_1qe6omd" targetRef="Gateway_1rjsw7d" />
<bpmn:parallelGateway id="Gateway_1qe6omd">
<bpmn:incoming>Flow_110eej6</bpmn:incoming>
<bpmn:outgoing>Flow_0op0sc2</bpmn:outgoing>
<bpmn:outgoing>Flow_1ibmcmg</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_1j8sj3z" sourceRef="Gateway_1a10s4f" targetRef="Event_08pe4sl" />
<bpmn:parallelGateway id="Gateway_1a10s4f">
<bpmn:incoming>Flow_1ny9f2j</bpmn:incoming>
<bpmn:incoming>Flow_1671ujm</bpmn:incoming>
<bpmn:outgoing>Flow_1j8sj3z</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_06mduhx" sourceRef="Gateway_0wz1n6v" targetRef="Activity_09525jb" />
<bpmn:parallelGateway id="Gateway_0wz1n6v">
<bpmn:incoming>Flow_1njw820</bpmn:incoming>
<bpmn:outgoing>Flow_06mduhx</bpmn:outgoing>
<bpmn:outgoing>Flow_0a6nhzx</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_0a6nhzx" sourceRef="Gateway_0wz1n6v" targetRef="Activity_0g7min2" />
<bpmn:exclusiveGateway id="Gateway_1a56xxt">
<bpmn:incoming>Flow_04m9n0g</bpmn:incoming>
<bpmn:incoming>Flow_06v53sx</bpmn:incoming>
<bpmn:outgoing>Flow_0jsai7j</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0jsai7j" sourceRef="Gateway_1a56xxt" targetRef="Gateway_1xihzbr" />
<bpmn:sequenceFlow id="Flow_0qxgqrd" sourceRef="Gateway_1xihzbr" targetRef="Gateway_03iniyu" />
<bpmn:parallelGateway id="Gateway_1xihzbr">
<bpmn:incoming>Flow_0jsai7j</bpmn:incoming>
<bpmn:incoming>Flow_0217jqn</bpmn:incoming>
<bpmn:outgoing>Flow_0qxgqrd</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:exclusiveGateway id="Gateway_0296rvn">
<bpmn:incoming>Flow_1p1q9lz</bpmn:incoming>
<bpmn:incoming>Flow_1hehz6o</bpmn:incoming>
<bpmn:outgoing>Flow_0217jqn</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1p1q9lz" sourceRef="Activity_09525jb" targetRef="Gateway_0296rvn" />
<bpmn:sequenceFlow id="Flow_1hehz6o" sourceRef="Event_1bc2zam" targetRef="Gateway_0296rvn" />
<bpmn:sequenceFlow id="Flow_0217jqn" sourceRef="Gateway_0296rvn" targetRef="Gateway_1xihzbr" />
<bpmn:sequenceFlow id="Flow_1ibmcmg" sourceRef="Gateway_1qe6omd" targetRef="Gateway_0so7d85" />
<bpmn:sequenceFlow id="Flow_1ny9f2j" sourceRef="Gateway_03iniyu" targetRef="Gateway_1a10s4f" />
<bpmn:sequenceFlow id="Flow_0ao7a6z" sourceRef="Gateway_10txamw" targetRef="Event_0wm2eis" />
<bpmn:intermediateThrowEvent id="Event_0a13vjf" name="FLMvar">
<bpmn:incoming>Flow_0j6uf4t</bpmn:incoming>
<bpmn:linkEventDefinition id="LinkEventDefinition_1tb66kk" name="FLMvar" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateCatchEvent id="Event_11ggwa2" name="FLMvar">
<bpmn:outgoing>Flow_19838i3</bpmn:outgoing>
<bpmn:linkEventDefinition id="LinkEventDefinition_1wosqpj" name="FLMvar" />
</bpmn:intermediateCatchEvent>
<bpmn:sequenceFlow id="Flow_19838i3" sourceRef="Event_11ggwa2" targetRef="Gateway_03iniyu" />
<bpmn:intermediateThrowEvent id="Event_0wm2eis" name="FLMBvar">
<bpmn:incoming>Flow_0ao7a6z</bpmn:incoming>
<bpmn:linkEventDefinition id="LinkEventDefinition_0l82c57" name="FLMBvar" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateCatchEvent id="Event_0vweb8z" name="FLMBvar">
<bpmn:outgoing>Flow_1671ujm</bpmn:outgoing>
<bpmn:linkEventDefinition id="LinkEventDefinition_0evtw9c" name="FLMBvar" />
</bpmn:intermediateCatchEvent>
<bpmn:sequenceFlow id="Flow_1671ujm" sourceRef="Event_0vweb8z" targetRef="Gateway_1a10s4f" />
<bpmn:association id="Association_1p15gog" associationDirection="None" sourceRef="Activity_0g7min2" targetRef="TextAnnotation_0dyibqq" />
<bpmn:association id="Association_17xak97" associationDirection="None" sourceRef="Activity_09525jb" targetRef="TextAnnotation_0mxl183" />
<bpmn:association id="Association_01lsb2w" associationDirection="None" sourceRef="Activity_1x3eu0g" targetRef="TextAnnotation_0is7g6k" />
<bpmn:association id="Association_0r1zr5w" associationDirection="None" sourceRef="Activity_0kz9n58" targetRef="TextAnnotation_15iz2s4" />
<bpmn:textAnnotation id="TextAnnotation_15d9s2a">
<bpmn:text>GetBankruptcyMessageDetail</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0ap6tkp">
<bpmn:text>GetBankruptcyPersonMessages</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_15iz2s4">
<bpmn:text>CheckPledgeRegistryPerson</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0is7g6k">
<bpmn:text>CheckFSSP</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0mxl183">
<bpmn:text>CheckArbitrationPerson</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0dyibqq">
<bpmn:text>SearchBankruptcyPerson</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_1mpit55" associationDirection="None" sourceRef="Activity_0squrq4" targetRef="TextAnnotation_15d9s2a" />
<bpmn:association id="Association_100nvze" associationDirection="None" sourceRef="Activity_1shf5kl" targetRef="TextAnnotation_0ap6tkp" />
</bpmn:subProcess>
<bpmn:subProcess id="Activity_0joys7w" name="Vehicle checking">
<bpmn:incoming>Flow_0thxe6w</bpmn:incoming>
<bpmn:serviceTask id="Activity_1ugi3ee" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckFines" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "sts": IncomMessagePayload.sts }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ finesResponse:response.body, finesStatus: if finesResponse.response.success = 0 then "error" else if finesResponse.response.success = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageFines: error.variables.response.body.response.error_code, errorResponseFines: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseFines: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_16ka4fb</bpmn:incoming>
<bpmn:outgoing>Flow_0u0ydln</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="Gateway_0nnr7s6">
<bpmn:incoming>Flow_1heg8ez</bpmn:incoming>
<bpmn:incoming>Flow_1lqqnv7</bpmn:incoming>
<bpmn:incoming>Flow_0u0ydln</bpmn:incoming>
<bpmn:outgoing>Flow_134n92m</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_1prxr23" name="Был ли передан или изменен sts ?" default="Flow_1heg8ez">
<bpmn:incoming>Flow_1fid6v6</bpmn:incoming>
<bpmn:outgoing>Flow_16ka4fb</bpmn:outgoing>
<bpmn:outgoing>Flow_1heg8ez</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:serviceTask id="Activity_1tahyai" name="Parser API Adapter Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="https://svp-findrive.htz-k8s.2pp.dev/ParserApi/CheckTaxi" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=0" target="connectionTimeoutInSeconds" />
<zeebe:input source="=0" target="readTimeoutInSeconds" />
<zeebe:input source="={ "regNumber": IncomMessagePayload.regNumber }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ taxiResponse:response.body, taxiStatus: if taxiResponse.response.done = 0 then "error" else if taxiResponse.response.done = 1 then "passed" else "error" }" />
<zeebe:header key="errorExpression" value="=if error.code = "403" and ( error.variables.response.body.response.error_code = 40302 or error.variables.response.body.response.error_code = 40304 or error.variables.response.body.response.error_code = 40305 ) then bpmnError( "REST_ERROR", string(error), { errorMessageTaxi: error.variables.response.body.response.error_code, errorResponseTaxi: error } ) else if (error.code = "408" or error.code = "409" or error.code = "412" or error.code = "429" or error.code = "499" or error.code >= "500") then if job.retries > 1 then null else bpmnError( "REST_ERROR", string(error), { errorResponseTaxi: error } ) else if ((error.code >= "400" and error.code < "408") or (error.code > "409" and error.code < "412") or (error.code > "412" and error.code < "429") or (error.code > "429" and error.code < "499")) then jobError(string(error)) else null" />
<zeebe:header key="retryBackoff" value="PT0S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1gnwc5z</bpmn:incoming>
<bpmn:outgoing>Flow_0ddgl1y</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="Gateway_02ksohg">
<bpmn:incoming>Flow_1ycoq9c</bpmn:incoming>
<bpmn:incoming>Flow_16tvbd9</bpmn:incoming>
<bpmn:incoming>Flow_0ddgl1y</bpmn:incoming>
<bpmn:outgoing>Flow_0yo51l8</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_02y0e5i" name="Был ли передан или изменен regNumber ?" default="Flow_1ycoq9c">
<bpmn:incoming>Flow_1pekbmq</bpmn:incoming>
<bpmn:outgoing>Flow_1gnwc5z</bpmn:outgoing>
<bpmn:outgoing>Flow_1ycoq9c</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:startEvent id="Event_1vci1fz">
<bpmn:outgoing>Flow_0x56n4o</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_0dc3vww" name="Vehicle 2 check completed">
<bpmn:incoming>Flow_18ud6bg</bpmn:incoming>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_1b9kfmy" escalationRef="Escalation_0mbc45u" />
</bpmn:endEvent>
<bpmn:boundaryEvent id="Event_0vglg53" name="Error 403" attachedToRef="Activity_1ugi3ee">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageFines = 40302 then "subscription_expired" else if errorMessageFines = 40304 then "limit_day_exceeded" else if errorMessageFines = 40305 then "limit_month_exceeded" else "error"" target="finesStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1lqqnv7</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0mnumlr" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_12t12ko" name="Error 403" attachedToRef="Activity_1tahyai">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:output source="=if errorMessageTaxi = 40302 then "subscription_expired" else if errorMessageTaxi = 40304 then "limit_day_exceeded" else if errorMessageTaxi = 40305 then "limit_month_exceeded" else "error"" target="taxiStatus" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_16tvbd9</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_035xgz0" errorRef="Error_1p4ex35" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_0u0ydln" sourceRef="Activity_1ugi3ee" targetRef="Gateway_0nnr7s6" />
<bpmn:sequenceFlow id="Flow_1lqqnv7" sourceRef="Event_0vglg53" targetRef="Gateway_0nnr7s6" />
<bpmn:sequenceFlow id="Flow_16ka4fb" name="Да" sourceRef="Gateway_1prxr23" targetRef="Activity_1ugi3ee">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(
IncomMessagePayload.sts != null and IncomMessagePayload.sts != ""
)
and
((changedFields = [] and afterThreeHours = true) or ("sts" in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1heg8ez" name="Нет" sourceRef="Gateway_1prxr23" targetRef="Gateway_0nnr7s6" />
<bpmn:sequenceFlow id="Flow_0ddgl1y" sourceRef="Activity_1tahyai" targetRef="Gateway_02ksohg" />
<bpmn:sequenceFlow id="Flow_16tvbd9" sourceRef="Event_12t12ko" targetRef="Gateway_02ksohg" />
<bpmn:sequenceFlow id="Flow_1gnwc5z" name="Да" sourceRef="Gateway_02y0e5i" targetRef="Activity_1tahyai">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(
IncomMessagePayload.regNumber != null and IncomMessagePayload.regNumber != ""
)
and
((changedFields = [] and afterThreeHours = true) or ("regNumber" in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1ycoq9c" name="Нет" sourceRef="Gateway_02y0e5i" targetRef="Gateway_02ksohg" />
<bpmn:parallelGateway id="Gateway_15nqhqb">
<bpmn:incoming>Flow_0x56n4o</bpmn:incoming>
<bpmn:outgoing>Flow_1pekbmq</bpmn:outgoing>
<bpmn:outgoing>Flow_1fid6v6</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_0x56n4o" sourceRef="Event_1vci1fz" targetRef="Gateway_15nqhqb" />
<bpmn:sequenceFlow id="Flow_1pekbmq" sourceRef="Gateway_15nqhqb" targetRef="Gateway_02y0e5i" />
<bpmn:sequenceFlow id="Flow_1fid6v6" sourceRef="Gateway_15nqhqb" targetRef="Gateway_1prxr23" />
<bpmn:parallelGateway id="Gateway_1qp130m">
<bpmn:incoming>Flow_0yo51l8</bpmn:incoming>
<bpmn:incoming>Flow_134n92m</bpmn:incoming>
<bpmn:outgoing>Flow_18ud6bg</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_0yo51l8" sourceRef="Gateway_02ksohg" targetRef="Gateway_1qp130m" />
<bpmn:sequenceFlow id="Flow_134n92m" sourceRef="Gateway_0nnr7s6" targetRef="Gateway_1qp130m" />
<bpmn:sequenceFlow id="Flow_18ud6bg" sourceRef="Gateway_1qp130m" targetRef="Event_0dc3vww" />
<bpmn:association id="Association_1rltkj1" associationDirection="None" sourceRef="Activity_1ugi3ee" targetRef="TextAnnotation_0bj6e2o" />
<bpmn:association id="Association_1sw50y0" associationDirection="None" sourceRef="Activity_1tahyai" targetRef="TextAnnotation_020juy6" />
<bpmn:textAnnotation id="TextAnnotation_0bj6e2o">
<bpmn:text>CheckFines</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_020juy6">
<bpmn:text>CheckTaxi</bpmn:text>
</bpmn:textAnnotation>
</bpmn:subProcess>
<bpmn:parallelGateway id="Gateway_0k7x3gh">
<bpmn:incoming>Flow_0je9qhs</bpmn:incoming>
<bpmn:outgoing>Flow_12nh3jz</bpmn:outgoing>
<bpmn:outgoing>Flow_03tpvub</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:boundaryEvent id="Event_1laqwwn" name="Vehicle SF check completed" cancelActivity="false" attachedToRef="Activity_16lstom">
<bpmn:outgoing>Flow_1f523hi</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0f51x7l" escalationRef="Escalation_16f2j0r" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_0b7rex3" name="Vehicle check completed" cancelActivity="false" attachedToRef="Activity_1dzp7w6">
<bpmn:outgoing>Flow_09jk6cc</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0dhkp43" escalationRef="Escalation_30m8nhq" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_0r2mnxz" name="Client SF check completed" cancelActivity="false" attachedToRef="Activity_0r7by3d">
<bpmn:outgoing>Flow_091g98t</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_024djxb" escalationRef="Escalation_1d8vvu2" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1u161z5" name="Client check completed" cancelActivity="false" attachedToRef="Activity_1rkj7mr">
<bpmn:outgoing>Flow_0iu66ax</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_0uilp9x" escalationRef="Escalation_37otade" />
</bpmn:boundaryEvent>
<bpmn:boundaryEvent id="Event_1a5lzk5" name="Vehicle 2 check completed" cancelActivity="false" attachedToRef="Activity_0joys7w">
<bpmn:outgoing>Flow_0dgp9b3</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_1vdj58k" escalationRef="Escalation_0mbc45u" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_19lvfiu" sourceRef="Event_1u92muc" targetRef="Gateway_1lesmt9" />
<bpmn:sequenceFlow id="Flow_12nh3jz" sourceRef="Gateway_0k7x3gh" targetRef="Event_0x9ueqk" />
<bpmn:sequenceFlow id="Flow_0eqcgec" name="Нет" sourceRef="Gateway_17ekkqz" targetRef="Activity_18e9jjc" />
<bpmn:sequenceFlow id="Flow_0pcjxhj" name="Проверка на передачу / изменение regNumber, sts" sourceRef="Event_0x9ueqk" targetRef="Gateway_15zytk4" />
<bpmn:sequenceFlow id="Flow_1f53e1o" sourceRef="Gateway_1hfn4zv" targetRef="Event_1x2uk0j" />
<bpmn:sequenceFlow id="Flow_03sp60z" sourceRef="Event_1x2uk0j" targetRef="Activity_1dzp7w6" />
<bpmn:sequenceFlow id="Flow_0gparec" sourceRef="Gateway_03cgzus" targetRef="Gateway_0lkfper" />
<bpmn:sequenceFlow id="Flow_09jk6cc" sourceRef="Event_0b7rex3" targetRef="Gateway_0lkfper" />
<bpmn:sequenceFlow id="Flow_00i8uem" sourceRef="Gateway_0lkfper" targetRef="Activity_1uecg37" />
<bpmn:sequenceFlow id="Flow_1g7feej" sourceRef="Gateway_09co298" targetRef="Gateway_03cgzus" />
<bpmn:sequenceFlow id="Flow_0iu66ax" sourceRef="Event_1u161z5" targetRef="Gateway_03cgzus" />
<bpmn:sequenceFlow id="Flow_1f523hi" sourceRef="Event_1laqwwn" targetRef="Gateway_1hfn4zv" />
<bpmn:sequenceFlow id="Flow_0gxck86" sourceRef="Gateway_1hfn4zv" targetRef="Gateway_0mt0x6u" />
<bpmn:sequenceFlow id="Flow_002r73l" name="Нет" sourceRef="Gateway_15zytk4" targetRef="Gateway_09co298" />
<bpmn:sequenceFlow id="Flow_0dgp9b3" sourceRef="Event_1a5lzk5" targetRef="Gateway_09co298" />
<bpmn:sequenceFlow id="Flow_1lo7px5" name="Нет" sourceRef="Gateway_1td10nc" targetRef="Gateway_0mt0x6u" />
<bpmn:sequenceFlow id="Flow_144hftg" name="Проверка на передачу / изменение firstName, lastName, patronymic, dob, passportSeries, passportNumber" sourceRef="Gateway_0mt0x6u" targetRef="Gateway_17ekkqz" />
<bpmn:sequenceFlow id="Flow_1bvhz3i" name="Это первая проверка, либо данные изменились" sourceRef="Gateway_07u3oym" targetRef="Gateway_1cvo9qx">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=previousPayload = null or
previousPayload.vin != IncomMessagePayload.vin or
previousPayload.firstName != IncomMessagePayload.firstName or
previousPayload.lastName != IncomMessagePayload.lastName or
previousPayload.patronymic != IncomMessagePayload.patronymic or
previousPayload.dob != IncomMessagePayload.dob or
previousPayload.regNumber != IncomMessagePayload.regNumber or
previousPayload.passportSeries != IncomMessagePayload.passportSeries or
previousPayload.passportNumber != IncomMessagePayload.passportNumber or
previousPayload.sts != IncomMessagePayload.sts</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1z058g9" name="прошло больше 3х часов" sourceRef="Gateway_1cvo9qx" targetRef="Activity_0684ned" />
<bpmn:sequenceFlow id="Flow_003kzjo" name="Прошло меньше 3-х часов" sourceRef="Gateway_1cvo9qx" targetRef="Activity_0fsw78e">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=if lastCheckTime = null then true
else (now() - date and time(lastCheckTime)) < duration("PT3H")</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_02m1rbv" name="Прошло больше 3-х часов" sourceRef="Gateway_0rhlzq2" targetRef="Activity_0684ned" />
<bpmn:sequenceFlow id="Flow_09p593p" sourceRef="Activity_0684ned" targetRef="Activity_0jkyipo" />
<bpmn:sequenceFlow id="Flow_0sxr7nq" sourceRef="Activity_0jkyipo" targetRef="Activity_0i19mkg" />
<bpmn:sequenceFlow id="Flow_011ayan" name="Первичная проверка" sourceRef="Gateway_1nhgn3a" targetRef="Activity_0rt3jfd" />
<bpmn:sequenceFlow id="Flow_04mo2jv" sourceRef="Activity_0rt3jfd" targetRef="Gateway_1r28nvo" />
<bpmn:sequenceFlow id="Flow_1e6qmgv" name="Повторная проверка" sourceRef="Gateway_1nhgn3a" targetRef="Gateway_1r28nvo">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=lastCheckTime != null</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1t3o3jt" sourceRef="Gateway_1r28nvo" targetRef="Gateway_0olyi2t" />
<bpmn:sequenceFlow id="Flow_1q0nr3d" sourceRef="Gateway_04lr0ug" targetRef="Gateway_1nhgn3a" />
<bpmn:sequenceFlow id="Flow_1oys3kc" sourceRef="Event_0sfqbu7" targetRef="Event_0r3jcg1" />
<bpmn:sequenceFlow id="Flow_0f6nfeo" sourceRef="Gateway_1lesmt9" targetRef="Event_0sfqbu7" />
<bpmn:sequenceFlow id="Flow_1hjos47" sourceRef="Event_0hbtslh" targetRef="Gateway_07u3oym" />
<bpmn:sequenceFlow id="Flow_0qt2o4u" sourceRef="Gateway_0t3x4w3" targetRef="Gateway_0go3zv5" />
<bpmn:sequenceFlow id="Flow_1xxv4ng" name="Данные не менялись" sourceRef="Gateway_07u3oym" targetRef="Gateway_0rhlzq2">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=previousPayload != null and
previousPayload.vin = IncomMessagePayload.vin and
previousPayload.firstName = IncomMessagePayload.firstName and
previousPayload.lastName = IncomMessagePayload.lastName and
previousPayload.patronymic = IncomMessagePayload.patronymic and
previousPayload.dob = IncomMessagePayload.dob and
previousPayload.regNumber = IncomMessagePayload.regNumber and
previousPayload.passportSeries = IncomMessagePayload.passportSeries and
previousPayload.passportNumber = IncomMessagePayload.passportNumber and
previousPayload.sts = IncomMessagePayload.sts</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_15ibh20" name="Прошло меньше 3-х часов" sourceRef="Gateway_0rhlzq2" targetRef="Event_0kpkr3o">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(now() - date and time(lastCheckTime)) < duration("PT3H")</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0thxe6w" name="Да" sourceRef="Gateway_15zytk4" targetRef="Activity_0joys7w">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=((IncomMessagePayload.regNumber != null and IncomMessagePayload.regNumber != "") or (IncomMessagePayload.sts != null and IncomMessagePayload.sts != ""))
and
((changedFields = [] and afterThreeHours = true) or (some f in ["regNumber","sts"] satisfies f in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0cs046x" name="Проверка на передачу / изменение vin" sourceRef="Gateway_1p4we6k" targetRef="Gateway_1td10nc" />
<bpmn:sequenceFlow id="Flow_0jt8iwr" name="Да" sourceRef="Gateway_1td10nc" targetRef="Activity_16lstom">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(IncomMessagePayload.vin != null and IncomMessagePayload.vin != "")
and ((changedFields = [] and afterThreeHours = true) or ("vin" in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0hhashk" name="Да" sourceRef="Gateway_17ekkqz" targetRef="Activity_0r7by3d">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=(
IncomMessagePayload.firstName != null and IncomMessagePayload.firstName != "" and
IncomMessagePayload.lastName != null and IncomMessagePayload.lastName != ""
)
and
((changedFields = [] and afterThreeHours = true) or (some f in ["firstName","lastName","patronymic","dob","passportSeries","passportNumber"] satisfies f in changedFields))</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1nplqbg" sourceRef="Activity_03kcpkr" targetRef="Gateway_1p4we6k" />
<bpmn:sequenceFlow id="Flow_0n2ro2d" sourceRef="Gateway_1p4we6k" targetRef="Activity_0pmgxcs" />
<bpmn:sequenceFlow id="Flow_0yhp9kg" sourceRef="Activity_0ytfsbz" targetRef="Gateway_0olyi2t" />
<bpmn:sequenceFlow id="Flow_024w88h" sourceRef="Gateway_0olyi2t" targetRef="Activity_03kcpkr" />
<bpmn:sequenceFlow id="Flow_1wemz29" sourceRef="Gateway_04lr0ug" targetRef="Activity_0ytfsbz" />
<bpmn:sequenceFlow id="Flow_1vyfljt" sourceRef="Activity_0i19mkg" targetRef="Gateway_04lr0ug" />
<bpmn:sequenceFlow id="Flow_1kwyhfl" sourceRef="Activity_0fsw78e" targetRef="Activity_0i19mkg" />
<bpmn:sequenceFlow id="Flow_1rh4uoj" sourceRef="Gateway_0go3zv5" targetRef="Activity_0jmmci5" />
<bpmn:sequenceFlow id="Flow_184a1vb" sourceRef="Activity_0jmmci5" targetRef="Gateway_1lesmt9" />
<bpmn:sequenceFlow id="Flow_091g98t" sourceRef="Event_0r2mnxz" targetRef="Activity_01cr4uj" />
<bpmn:sequenceFlow id="Flow_03tpvub" sourceRef="Gateway_0k7x3gh" targetRef="Activity_1rkj7mr" />
<bpmn:intermediateThrowEvent id="Event_0kpkr3o" name="less_than_3_hours_link">
<bpmn:incoming>Flow_15ibh20</bpmn:incoming>
<bpmn:linkEventDefinition id="LinkEventDefinition_1snuoxn" name="less_than_3_hours_link" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateCatchEvent id="Event_00kv4gf" name="less_than_3_hours_link">
<bpmn:outgoing>Flow_0gd5cnx</bpmn:outgoing>
<bpmn:linkEventDefinition id="LinkEventDefinition_0n8202z" name="less_than_3_hours_link" />
</bpmn:intermediateCatchEvent>
<bpmn:sequenceFlow id="Flow_0je9qhs" sourceRef="Activity_01cr4uj" targetRef="Gateway_0k7x3gh" />
<bpmn:serviceTask id="Activity_18e9jjc" name="App Module Call" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "checks": put all( if reestrStatusAuto = "passed" or reestrStatusAuto = "error" or reestrStatusAuto = "limit_day_exceeded" or reestrStatusAuto = "limit_month_exceeded" or reestrStatusAuto = "null" or reestrStatusAuto = "subscription_expired" then { "vehicleChecks": { "restrictions": put all( { "status": gibddRestrictStatus, "restrictions": gibddRestrictResponse.response.restrictions }, if gibddRestrictStatus = "passed" then { "verificationStatus": "approved" } else {} ), "wanted": put all( { "status": gibddWantedStatus, "searches": gibddWantedResponse.response.searches }, if gibddWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "pledges": put all( { "history": if reestrResponseAuto.response.records != null then for item in latestHistories return { "lastEventDate": item.date, "lastEventNumber": item.number, "lastEventType": item.type } else [] }, if reestrStatusAuto = "null" then { "status": "passed" } else put all ( { "status": reestrStatusAuto }, if reestrStatusAuto = "passed" then { "verificationStatus": "approved" } else {} ) ) } } else {}, { "clientChecks": put all ( if passportStatus = "passed" or passportStatus = "error" or passportStatus = "limit_day_exceeded" or passportStatus = "limit_month_exceeded" or passportStatus = "subscription_expired" then { "passport": put all( { "status": passportStatus, "statusText": passportResponse.response.status }, if passportStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {}, if terroristsStatus = "passed" or terroristsStatus = "error" or terroristsStatus = "limit_day_exceeded" or terroristsStatus = "limit_month_exceeded" or terroristsStatus = "subscription_expired" then { "wanted": put all( { "status": mvdWantedStatus, "records": if mvdWantedResponse.response.records != null then mvdWantedResponse.response.records else [] }, if mvdWantedStatus = "passed" then { "verificationStatus": "approved" } else {} ), "terroristsExtremists": put all( { "status": terroristsStatus, "records": if terroristsResponse.response.records != null then terroristsResponse.response.records else [] }, if terroristsStatus = "passed" then { "verificationStatus": "approved" } else {} ) } else {} ) } ) } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ "CriticalSFChecked": true }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0eqcgec</bpmn:incoming>
<bpmn:outgoing>Flow_1qd5hml</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1qd5hml" sourceRef="Activity_18e9jjc" targetRef="Event_0x9ueqk" />
<bpmn:serviceTask id="Activity_0rt3jfd" name="App module Call (Approval)" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="POST" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId+"/approval"" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_011ayan</bpmn:incoming>
<bpmn:outgoing>Flow_04mo2jv</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1qefgc2" sourceRef="Activity_1uecg37" targetRef="Gateway_0t3x4w3" />
<bpmn:sequenceFlow id="Flow_0gd5cnx" sourceRef="Event_00kv4gf" targetRef="Gateway_0t3x4w3" />
<bpmn:sequenceFlow id="Flow_048gac3" sourceRef="Event_1x75c5b" targetRef="Event_09z8fun" />
<bpmn:boundaryEvent id="Event_1x75c5b" name="Client SF check failed" cancelActivity="false" attachedToRef="Activity_0r7by3d">
<bpmn:outgoing>Flow_048gac3</bpmn:outgoing>
<bpmn:escalationEventDefinition id="EscalationEventDefinition_1r626qo" escalationRef="Escalation_1np12bs" />
</bpmn:boundaryEvent>
<bpmn:endEvent id="Event_09z8fun">
<bpmn:incoming>Flow_048gac3</bpmn:incoming>
<bpmn:terminateEventDefinition id="TerminateEventDefinition_192jw71" />
</bpmn:endEvent>
<bpmn:subProcess id="Activity_03kcpkr" name="App module Call">
<bpmn:incoming>Flow_024w88h</bpmn:incoming>
<bpmn:outgoing>Flow_1nplqbg</bpmn:outgoing>
<bpmn:serviceTask id="Activity_0vcobdq" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "StopFactorsCheck", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "StopFactorsCheck", "changedAt": substring before(string(now()), "@") } ) else [ { "status": "StopFactorsCheck", "changedAt": substring before(string(now()), "@") } ] } } } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_05pt1hw</bpmn:incoming>
<bpmn:outgoing>Flow_0udfsrb</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_1tja5bd" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ncp5wo</bpmn:incoming>
<bpmn:outgoing>Flow_05pt1hw</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_0eysscn">
<bpmn:outgoing>Flow_1ncp5wo</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_0kxrkbg">
<bpmn:incoming>Flow_0udfsrb</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_05pt1hw" sourceRef="Activity_1tja5bd" targetRef="Activity_0vcobdq" />
<bpmn:sequenceFlow id="Flow_0udfsrb" sourceRef="Activity_0vcobdq" targetRef="Event_0kxrkbg" />
<bpmn:sequenceFlow id="Flow_1ncp5wo" sourceRef="Event_0eysscn" targetRef="Activity_1tja5bd" />
</bpmn:subProcess>
<bpmn:subProcess id="Activity_0m0oxtm" name="App module Call">
<bpmn:incoming>Flow_1v05xnl</bpmn:incoming>
<bpmn:outgoing>Flow_12z1krs</bpmn:outgoing>
<bpmn:serviceTask id="Activity_0cym9s1" name="Update order status" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="PATCH" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="={ "orderAttributes": { "generalInformation": { "workflowStatus": { "status": "ManualCheck", "statusChangedAt": substring before(string(now()), "@"), "statusHistory": if currentStatusHistory != null then append( currentStatusHistory, { "status": "ManualCheck", "changedAt": substring before(string(now()), "@") } ) else [ { "status": "ManualCheck", "changedAt": substring before(string(now()), "@") } ] } } } }" target="body" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1miwr5q</bpmn:incoming>
<bpmn:outgoing>Flow_0pqh6ps</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0u78g9c" name="Get the current status history" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="12" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
<bpmn:extensionElements>
<zeebe:taskDefinition type="io.camunda:http-json:1" retries="60" />
<zeebe:ioMapping>
<zeebe:input source="noAuth" target="authentication.type" />
<zeebe:input source="GET" target="method" />
<zeebe:input source="="https://orders-findrive.htz-k8s.2pp.dev/orders/"+applicationId" target="url" />
<zeebe:input source="=false" target="storeResponse" />
<zeebe:input source="=20" target="connectionTimeoutInSeconds" />
<zeebe:input source="=20" target="readTimeoutInSeconds" />
<zeebe:input source="=false" target="ignoreNullValues" />
</zeebe:ioMapping>
<zeebe:taskHeaders>
<zeebe:header key="elementTemplateVersion" value="12" />
<zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
<zeebe:header key="resultExpression" value="={ currentStatusHistory: response.body.attributes.generalInformation.workflowStatus.statusHistory }" />
<zeebe:header key="retryBackoff" value="PT15S" />
</zeebe:taskHeaders>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0yvl9v1</bpmn:incoming>
<bpmn:outgoing>Flow_1miwr5q</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="Event_071w0mk">
<bpmn:outgoing>Flow_0yvl9v1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="Event_1uwgi5i">
<bpmn:incoming>Flow_0pqh6ps</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1miwr5q" sourceRef="Activity_0u78g9c" targetRef="Activity_0cym9s1" />
<bpmn:sequenceFlow id="Flow_0pqh6ps" sourceRef="Activity_0cym9s1" targetRef="Event_1uwgi5i" />
<bpmn:sequenceFlow id="Flow_0yvl9v1" sourceRef="Event_071w0mk" targetRef="Activity_0u78g9c" />
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_1v05xnl" sourceRef="Gateway_0go3zv5" targetRef="Activity_0m0oxtm" />
<bpmn:sequenceFlow id="Flow_12z1krs" sourceRef="Activity_0m0oxtm" targetRef="Event_1u92muc" />
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_057chp5" sourceRef="Activity_1g0r2a0" targetRef="Event_0no5mme" />
<bpmn:sequenceFlow id="Flow_0os2dvk" sourceRef="Event_11h8n8b" targetRef="Activity_1g0r2a0" />
<bpmn:textAnnotation id="TextAnnotation_1mhnlyo">
<bpmn:text>Пустой массив. Долны проверяться все входящие данные</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0esqif6">
<bpmn:text>Обновить прошлые данные для проверок на текущие</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0i6xx5x">
<bpmn:text>Смена статуса в модуле заявок (Approved)</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_09qudff">
<bpmn:text>Обновить время последней проверки</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_1uqpidf">
<bpmn:text>state=StopFactorsCheck</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_06cee3i">
<bpmn:text>Список параметров для проверок</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_13kmmj2">
<bpmn:text>state = ManualCheck</bpmn:text>
</bpmn:textAnnotation>
<bpmn:textAnnotation id="TextAnnotation_0b4am0s">
<bpmn:text>Сохранение результата проверок по критическим стоп-факторам</bpmn:text>
</bpmn:textAnnotation>
<bpmn:group id="Group_1i8aozg" categoryValueRef="CategoryValue_0rvyxq0" />
<bpmn:group id="Group_1w3nrjp" categoryValueRef="CategoryValue_0jwyb8m" />
<bpmn:textAnnotation id="TextAnnotation_1exq6d9">
<bpmn:text>Сохранение результатов проверок по некритическим стоп-факторам</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_1xvfsh5" associationDirection="None" sourceRef="TextAnnotation_0i6xx5x" targetRef="Activity_0rt3jfd" />
<bpmn:association id="Association_0bgexj4" associationDirection="None" sourceRef="Activity_18e9jjc" targetRef="TextAnnotation_0b4am0s" />
<bpmn:association id="Association_0b9ktx5" associationDirection="None" sourceRef="Activity_1uecg37" targetRef="TextAnnotation_1exq6d9" />
<bpmn:association id="Association_1chwl42" associationDirection="None" sourceRef="Activity_01cr4uj" targetRef="TextAnnotation_0b4am0s" />
<bpmn:association id="Association_0zw4sdy" associationDirection="None" sourceRef="Activity_0jmmci5" targetRef="TextAnnotation_13kmmj2" />
<bpmn:association id="Association_12tx3d2" associationDirection="None" sourceRef="Activity_0fsw78e" targetRef="TextAnnotation_06cee3i" />
<bpmn:association id="Association_1yylehq" associationDirection="None" sourceRef="Activity_0i19mkg" targetRef="TextAnnotation_0esqif6" />
<bpmn:association id="Association_1dna0hv" associationDirection="None" sourceRef="Activity_0ytfsbz" targetRef="TextAnnotation_1uqpidf" />
<bpmn:association id="Association_1uelaft" associationDirection="None" sourceRef="Activity_0pmgxcs" targetRef="TextAnnotation_09qudff" />
<bpmn:association id="Association_0mcn1z2" associationDirection="None" sourceRef="Activity_0jkyipo" targetRef="TextAnnotation_1mhnlyo" />
<bpmn:textAnnotation id="TextAnnotation_16tl39x">
<bpmn:text>Обновлении истории изменения и сохранения статусов</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_13nt8li" associationDirection="None" sourceRef="Activity_03kcpkr" targetRef="TextAnnotation_16tl39x" />
<bpmn:textAnnotation id="TextAnnotation_13dfa0e">
<bpmn:text>Обновлении истории изменения и сохранения статусов</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_0hp4f1r" associationDirection="None" sourceRef="Activity_0m0oxtm" targetRef="TextAnnotation_13dfa0e" />
</bpmn:process>
<bpmn:message id="Message_0b1prm1" name="Message_0b1prm1" />
<bpmn:message id="Message_0ga60lu" name="checkVin">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_27l42nt" name="SFClientCheckCompleted">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_0srpltq" name="SFVehicleCheckCompleted">
<bpmn:extensionElements>
<zeebe:subscription correlationKey="=applicationId" />
</bpmn:extensionElements>
</bpmn:message>
<bpmn:escalation id="Escalation_16f2j0r" name="SFVehicleCheckCompleted" escalationCode="1" />
<bpmn:escalation id="Escalation_1d8vvu2" name="SFClientCheckCompleted" escalationCode="1" />
<bpmn:escalation id="Escalation_30m8nhq" name="VehicleCheckCompleted" escalationCode="1" />
<bpmn:escalation id="Escalation_0mbc45u" name="Vehicle2CheckCompleted" escalationCode="1" />
<bpmn:escalation id="Escalation_37otade" name="ClientCheckCopmleted" escalationCode="1" />
<bpmn:category id="Category_19j3qqw">
<bpmn:categoryValue id="CategoryValue_0rvyxq0" value="Проверка критических стоп-факторов" />
</bpmn:category>
<bpmn:category id="Category_0eggsy2">
<bpmn:categoryValue id="CategoryValue_0jwyb8m" value="Проверка некритических стоп-факторов" />
</bpmn:category>
<bpmn:escalation id="Escalation_3cr5m9c" name="CheckBankruptcyError" escalationCode="CheckBankruptcyError" />
<bpmn:escalation id="Escalation_3p2s14q" name="bankruptcyStatusPassed" escalationCode="bankruptcyStatusPassed" />
<bpmn:escalation id="Escalation_3u0htsj" name="SFVehicleCheckFailed" escalationCode="SFVehicleCheckFailed" />
<bpmn:escalation id="Escalation_13mrt4u" name="SFVehicleCheckFailed" escalationCode="SFVehicleCheckFailed" />
<bpmn:escalation id="Escalation_1np12bs" name="SFClientCheckFailed" escalationCode="SFClientCheckFailed" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_mexqegj">
<bpmndi:BPMNShape id="BPMNShape_17ps8hg" bpmnElement="Event_0no5mme">
<dc:Bounds x="4202" y="732" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_16qdbzv" bpmnElement="Event_11h8n8b">
<dc:Bounds x="152" y="732" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="463" y="205" width="24" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1qz2v7q" bpmnElement="Activity_1g0r2a0" isExpanded="true">
<dc:Bounds x="310" y="85" width="3770" height="1420" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ci7acm" bpmnElement="Event_1u92muc" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="3712" y="667" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="3705" y="710" width="55" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1qh7wxg_di" bpmnElement="Event_0x9ueqk">
<dc:Bounds x="2642" y="1097" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2687" y="1108" width="45" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_181qqiy_di" bpmnElement="Event_1x2uk0j">
<dc:Bounds x="2612" y="567" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2608" y="610" width="45" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1m5l717" bpmnElement="Gateway_0lkfper">
<dc:Bounds x="2975" y="560" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ql9gdy" bpmnElement="Gateway_03cgzus">
<dc:Bounds x="2975" y="920" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1agx50t_di" bpmnElement="Gateway_1hfn4zv">
<dc:Bounds x="2465" y="560" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0jsm8if" bpmnElement="Gateway_09co298" isMarkerVisible="true">
<dc:Bounds x="2975" y="1270" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0xhv1c1" bpmnElement="Gateway_0mt0x6u" isMarkerVisible="true">
<dc:Bounds x="2115" y="695" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_189f2u9" bpmnElement="Gateway_1cvo9qx" isMarkerVisible="true">
<dc:Bounds x="755" y="560" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="739" y="617" width="85" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1wcxncu" bpmnElement="Activity_0684ned">
<dc:Bounds x="730" y="375" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1486c29" bpmnElement="Activity_0jkyipo">
<dc:Bounds x="930" y="375" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_06vwci2" bpmnElement="Gateway_1r28nvo" isMarkerVisible="true">
<dc:Bounds x="1565" y="660" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0uoeqoi" bpmnElement="Gateway_1nhgn3a" isMarkerVisible="true">
<dc:Bounds x="1325" y="660" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1250" y="680" width="67" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1mwrk7i" bpmnElement="Event_0r3jcg1">
<dc:Bounds x="3962" y="567" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1iahr5q" bpmnElement="Event_0sfqbu7" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="3842" y="567" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="3820" y="610" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0cp0nys" bpmnElement="Event_0hbtslh">
<dc:Bounds x="392" y="567" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1t6v690" bpmnElement="Gateway_0t3x4w3" isMarkerVisible="true">
<dc:Bounds x="3315" y="560" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0rm51xs" bpmnElement="Gateway_0rhlzq2" isMarkerVisible="true">
<dc:Bounds x="755" y="210" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="738" y="173" width="85" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0n30q1y" bpmnElement="Gateway_15zytk4" isMarkerVisible="true">
<dc:Bounds x="2635" y="1270" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2542" y="1269" width="83" height="53" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1e7hrs8" bpmnElement="Gateway_1td10nc" isMarkerVisible="true">
<dc:Bounds x="2115" y="560" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2096" y="523" width="88" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1lp2reg" bpmnElement="Gateway_17ekkqz" isMarkerVisible="true">
<dc:Bounds x="2115" y="920" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2022" y="912" width="87" height="66" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_02dysvv" bpmnElement="Gateway_1p4we6k">
<dc:Bounds x="1925" y="560" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1778" y="1326" width="64" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1bp3byz" bpmnElement="Activity_0pmgxcs">
<dc:Bounds x="1900" y="395" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1wb4v3p" bpmnElement="Gateway_0olyi2t">
<dc:Bounds x="1565" y="560" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_042awdh" bpmnElement="Activity_0ytfsbz">
<dc:Bounds x="1420" y="465" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0km9kxe" bpmnElement="Gateway_04lr0ug">
<dc:Bounds x="1325" y="560" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1snd9xs" bpmnElement="Activity_0i19mkg">
<dc:Bounds x="1128" y="545" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0go0cmk" bpmnElement="Activity_0fsw78e">
<dc:Bounds x="930" y="545" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0x7hzwb" bpmnElement="Gateway_07u3oym" isMarkerVisible="true">
<dc:Bounds x="565" y="560" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="550" y="620" width="82" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ysmuth" bpmnElement="Activity_0jmmci5">
<dc:Bounds x="3560" y="445" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_06ckmzt" bpmnElement="Gateway_1lesmt9">
<dc:Bounds x="3705" y="560" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0iywozu" bpmnElement="Gateway_0go3zv5">
<dc:Bounds x="3465" y="560" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1eusixn" bpmnElement="Activity_01cr4uj">
<dc:Bounds x="2460" y="905" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_18mjx9j" bpmnElement="Activity_1uecg37">
<dc:Bounds x="3120" y="545" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0rls0n9" bpmnElement="Activity_16lstom" isExpanded="false" bioc:stroke="#0d4372" bioc:fill="#bbdefb" color:background-color="#bbdefb" color:border-color="#0d4372">
<dc:Bounds x="2260" y="545" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1uik4a1" bpmnElement="Activity_1dzp7w6" bioc:stroke="#0d4372" bioc:fill="#bbdefb" color:background-color="#bbdefb" color:border-color="#0d4372">
<dc:Bounds x="2780" y="545" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1sei26b" bpmnElement="Activity_0r7by3d" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="2260" y="905" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_01ug2fr" bpmnElement="Activity_1rkj7mr" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="2780" y="905" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_155lqhr" bpmnElement="Activity_0joys7w" bioc:stroke="#0d4372" bioc:fill="#bbdefb" color:background-color="#bbdefb" color:border-color="#0d4372">
<dc:Bounds x="2780" y="1255" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0kokqv5" bpmnElement="Gateway_0k7x3gh">
<dc:Bounds x="2635" y="920" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0goc2g9_di" bpmnElement="Event_0kpkr3o">
<dc:Bounds x="1092" y="217" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1065" y="257" width="89" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0cgqz1x_di" bpmnElement="Event_00kv4gf">
<dc:Bounds x="3322" y="417" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="3296" y="381" width="89" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0lhd2yy" bpmnElement="Activity_18e9jjc">
<dc:Bounds x="2460" y="1075" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0eh25oz" bpmnElement="Activity_0rt3jfd">
<dc:Bounds x="1420" y="735" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_085ebsj_di" bpmnElement="Event_09z8fun">
<dc:Bounds x="2292" y="802" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1g4qazc_di" bpmnElement="Activity_03kcpkr" isExpanded="false">
<dc:Bounds x="1720" y="545" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_05x4dz9" bpmnElement="Activity_0m0oxtm" isExpanded="false">
<dc:Bounds x="3560" y="645" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1309rsj_di" bpmnElement="Event_1x75c5b">
<dc:Bounds x="2292" y="887" width="36" height="36" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="2228" y="872" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1oyla54" bpmnElement="Event_1a5lzk5">
<dc:Bounds x="2862" y="1277" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2892" y="1261" width="77" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_07di0lu" bpmnElement="Event_1u161z5">
<dc:Bounds x="2862" y="927" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2897" y="911" width="61" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ffcobr" bpmnElement="Event_0r2mnxz">
<dc:Bounds x="2342" y="927" width="36" height="36" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="2372" y="911" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1euepy8" bpmnElement="Event_0b7rex3">
<dc:Bounds x="2862" y="567" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2896" y="551" width="68" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ktpg0t" bpmnElement="Event_1laqwwn">
<dc:Bounds x="2342" y="567" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2368" y="551" width="85" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_0q5xkez" bpmnElement="Flow_19lvfiu">
<di:waypoint x="3730" y="667" />
<di:waypoint x="3730" y="610" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1htsq8m" bpmnElement="Flow_12nh3jz">
<di:waypoint x="2660" y="970" />
<di:waypoint x="2660" y="1097" />
<bpmndi:BPMNLabel>
<dc:Bounds x="4692" y="1807" width="76" height="53" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_156eip7" bpmnElement="Flow_0eqcgec">
<di:waypoint x="2140" y="970" />
<di:waypoint x="2140" y="1115" />
<di:waypoint x="2460" y="1115" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2147" y="1020" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0pcjxhj_di" bpmnElement="Flow_0pcjxhj">
<di:waypoint x="2660" y="1133" />
<di:waypoint x="2660" y="1270" />
<bpmndi:BPMNLabel color:color="#5b176d">
<dc:Bounds x="2576" y="1165" width="76" height="53" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1f53e1o_di" bpmnElement="Flow_1f53e1o">
<di:waypoint x="2515" y="585" />
<di:waypoint x="2612" y="585" />
<bpmndi:BPMNLabel>
<dc:Bounds x="4391" y="740" width="73" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03sp60z_di" bpmnElement="Flow_03sp60z">
<di:waypoint x="2648" y="585" />
<di:waypoint x="2780" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_10t6z7x" bpmnElement="Flow_0gparec">
<di:waypoint x="3000" y="920" />
<di:waypoint x="3000" y="610" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1030ttm" bpmnElement="Flow_09jk6cc">
<di:waypoint x="2898" y="585" />
<di:waypoint x="2975" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1lxotkw" bpmnElement="Flow_00i8uem">
<di:waypoint x="3025" y="585" />
<di:waypoint x="3120" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0i4mc68" bpmnElement="Flow_1g7feej">
<di:waypoint x="3000" y="1270" />
<di:waypoint x="3000" y="970" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0dryzyj" bpmnElement="Flow_0iu66ax">
<di:waypoint x="2898" y="945" />
<di:waypoint x="2975" y="945" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0u9ubob" bpmnElement="Flow_1f523hi">
<di:waypoint x="2378" y="585" />
<di:waypoint x="2465" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gxck86_di" bpmnElement="Flow_0gxck86">
<di:waypoint x="2490" y="610" />
<di:waypoint x="2490" y="720" />
<di:waypoint x="2165" y="720" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1j1rr2e" bpmnElement="Flow_002r73l">
<di:waypoint x="2660" y="1320" />
<di:waypoint x="2660" y="1410" />
<di:waypoint x="3000" y="1410" />
<di:waypoint x="3000" y="1320" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2670" y="1356" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0vcpb5m" bpmnElement="Flow_0dgp9b3">
<di:waypoint x="2898" y="1295" />
<di:waypoint x="2975" y="1295" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1vpbn03" bpmnElement="Flow_1lo7px5">
<di:waypoint x="2140" y="610" />
<di:waypoint x="2140" y="695" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2147" y="645" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0w2lwat" bpmnElement="Flow_144hftg">
<di:waypoint x="2140" y="745" />
<di:waypoint x="2140" y="920" />
<bpmndi:BPMNLabel color:color="#6b3c00">
<dc:Bounds x="2051" y="757" width="83" height="106" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0y1lrwv" bpmnElement="Flow_1bvhz3i">
<di:waypoint x="615" y="585" />
<di:waypoint x="755" y="585" />
<bpmndi:BPMNLabel>
<dc:Bounds x="640" y="528" width="79" height="53" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_064tg1t" bpmnElement="Flow_1z058g9">
<di:waypoint x="780" y="560" />
<di:waypoint x="780" y="455" />
<bpmndi:BPMNLabel>
<dc:Bounds x="688" y="491" width="83" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1wlf9ng" bpmnElement="Flow_003kzjo">
<di:waypoint x="805" y="585" />
<di:waypoint x="930" y="585" />
<bpmndi:BPMNLabel>
<dc:Bounds x="825" y="551" width="86" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1t3wel5" bpmnElement="Flow_02m1rbv">
<di:waypoint x="780" y="260" />
<di:waypoint x="780" y="375" />
<bpmndi:BPMNLabel>
<dc:Bounds x="687" y="301" width="85" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0y6cr2e" bpmnElement="Flow_09p593p">
<di:waypoint x="830" y="415" />
<di:waypoint x="930" y="415" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_07rxtog" bpmnElement="Flow_0sxr7nq">
<di:waypoint x="1030" y="415" />
<di:waypoint x="1178" y="415" />
<di:waypoint x="1178" y="545" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0b8610z" bpmnElement="Flow_011ayan">
<di:waypoint x="1350" y="710" />
<di:waypoint x="1350" y="775" />
<di:waypoint x="1420" y="775" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1291" y="740" width="57" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1vpr85a" bpmnElement="Flow_04mo2jv">
<di:waypoint x="1520" y="775" />
<di:waypoint x="1590" y="775" />
<di:waypoint x="1590" y="710" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1sqacnw" bpmnElement="Flow_1e6qmgv">
<di:waypoint x="1375" y="685" />
<di:waypoint x="1565" y="685" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1443" y="651" width="55" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0bbvc1z" bpmnElement="Flow_1t3o3jt">
<di:waypoint x="1590" y="660" />
<di:waypoint x="1590" y="610" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0y9sodn" bpmnElement="Flow_1q0nr3d">
<di:waypoint x="1350" y="610" />
<di:waypoint x="1350" y="660" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0q84e8f" bpmnElement="Flow_1oys3kc">
<di:waypoint x="3878" y="585" />
<di:waypoint x="3962" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1lk40ye" bpmnElement="Flow_0f6nfeo">
<di:waypoint x="3755" y="585" />
<di:waypoint x="3842" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1monuju" bpmnElement="Flow_1hjos47">
<di:waypoint x="428" y="585" />
<di:waypoint x="565" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1egj33h" bpmnElement="Flow_0qt2o4u">
<di:waypoint x="3365" y="585" />
<di:waypoint x="3465" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1sjhirf" bpmnElement="Flow_1xxv4ng">
<di:waypoint x="590" y="560" />
<di:waypoint x="590" y="235" />
<di:waypoint x="755" y="235" />
<bpmndi:BPMNLabel>
<dc:Bounds x="522" y="475" width="55" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0apxtuu" bpmnElement="Flow_15ibh20">
<di:waypoint x="805" y="235" />
<di:waypoint x="1092" y="235" />
<bpmndi:BPMNLabel>
<dc:Bounds x="899" y="204" width="86" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0ewz5bx" bpmnElement="Flow_0thxe6w">
<di:waypoint x="2685" y="1295" />
<di:waypoint x="2780" y="1295" />
<bpmndi:BPMNLabel color:color="#5b176d">
<dc:Bounds x="2713" y="1277" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1qrp9zb" bpmnElement="Flow_0cs046x">
<di:waypoint x="1975" y="585" />
<di:waypoint x="2115" y="585" />
<bpmndi:BPMNLabel color:color="#0d4372">
<dc:Bounds x="2009" y="595" width="73" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0kq53r1" bpmnElement="Flow_0jt8iwr">
<di:waypoint x="2165" y="585" />
<di:waypoint x="2260" y="585" />
<bpmndi:BPMNLabel color:color="#0d4372">
<dc:Bounds x="2193" y="568" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0j5x6mq" bpmnElement="Flow_0hhashk">
<di:waypoint x="2165" y="945" />
<di:waypoint x="2260" y="945" />
<bpmndi:BPMNLabel color:color="#6b3c00">
<dc:Bounds x="2193" y="926" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0znuh4j" bpmnElement="Flow_1nplqbg">
<di:waypoint x="1820" y="585" />
<di:waypoint x="1925" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0s8kv1i" bpmnElement="Flow_0n2ro2d">
<di:waypoint x="1950" y="560" />
<di:waypoint x="1950" y="475" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0ioj58g" bpmnElement="Flow_0yhp9kg">
<di:waypoint x="1520" y="505" />
<di:waypoint x="1590" y="505" />
<di:waypoint x="1590" y="560" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1mkdu2a" bpmnElement="Flow_024w88h">
<di:waypoint x="1615" y="585" />
<di:waypoint x="1720" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0v9qrno" bpmnElement="Flow_1wemz29">
<di:waypoint x="1350" y="560" />
<di:waypoint x="1350" y="505" />
<di:waypoint x="1420" y="505" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_08upep0" bpmnElement="Flow_1vyfljt">
<di:waypoint x="1228" y="585" />
<di:waypoint x="1325" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1h3xllt" bpmnElement="Flow_1kwyhfl">
<di:waypoint x="1030" y="585" />
<di:waypoint x="1128" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1spilxz" bpmnElement="Flow_1rh4uoj">
<di:waypoint x="3490" y="560" />
<di:waypoint x="3490" y="485" />
<di:waypoint x="3560" y="485" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0h6j282" bpmnElement="Flow_184a1vb">
<di:waypoint x="3660" y="485" />
<di:waypoint x="3730" y="485" />
<di:waypoint x="3730" y="560" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0ex0s6p" bpmnElement="Flow_091g98t">
<di:waypoint x="2378" y="945" />
<di:waypoint x="2460" y="945" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0iis0d7" bpmnElement="Flow_03tpvub">
<di:waypoint x="2685" y="945" />
<di:waypoint x="2780" y="945" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0je9qhs_di" bpmnElement="Flow_0je9qhs">
<di:waypoint x="2560" y="945" />
<di:waypoint x="2635" y="945" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1qd5hml_di" bpmnElement="Flow_1qd5hml">
<di:waypoint x="2560" y="1115" />
<di:waypoint x="2642" y="1115" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1qefgc2_di" bpmnElement="Flow_1qefgc2">
<di:waypoint x="3220" y="585" />
<di:waypoint x="3315" y="585" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gd5cnx_di" bpmnElement="Flow_0gd5cnx">
<di:waypoint x="3340" y="453" />
<di:waypoint x="3340" y="560" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_048gac3_di" bpmnElement="Flow_048gac3">
<di:waypoint x="2310" y="887" />
<di:waypoint x="2310" y="838" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1v05xnl_di" bpmnElement="Flow_1v05xnl">
<di:waypoint x="3490" y="610" />
<di:waypoint x="3490" y="685" />
<di:waypoint x="3560" y="685" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12z1krs_di" bpmnElement="Flow_12z1krs">
<di:waypoint x="3660" y="685" />
<di:waypoint x="3712" y="685" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_08ggai5" bpmnElement="TextAnnotation_1mhnlyo">
<dc:Bounds x="910" y="285" width="140" height="60" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ipvo2z" bpmnElement="TextAnnotation_0esqif6">
<dc:Bounds x="1128" y="661" width="100" height="85" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1qybyt9" bpmnElement="TextAnnotation_0i6xx5x">
<dc:Bounds x="1403" y="855" width="178" height="45" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1bwrrl3" bpmnElement="TextAnnotation_09qudff">
<dc:Bounds x="1900" y="315" width="130" height="40" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_16845rd" bpmnElement="TextAnnotation_1uqpidf">
<dc:Bounds x="1403" y="395" width="150" height="35" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_06or9qs" bpmnElement="TextAnnotation_06cee3i">
<dc:Bounds x="935" y="660" width="90" height="55" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1o1ei6k" bpmnElement="TextAnnotation_13kmmj2">
<dc:Bounds x="3535" y="385" width="150" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_02luu1j" bpmnElement="TextAnnotation_0b4am0s">
<dc:Bounds x="2420" y="1010" width="210" height="40" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0bifmfa" bpmnElement="Group_1i8aozg">
<dc:Bounds x="2220" y="455" width="180" height="590" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2272" y="462" width="76" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0r44xz8" bpmnElement="Group_1w3nrjp">
<dc:Bounds x="2740" y="455" width="180" height="920" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2792" y="462" width="76" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_025goxc" bpmnElement="TextAnnotation_1exq6d9">
<dc:Bounds x="3100" y="445" width="200" height="60" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_16tl39x_di" bpmnElement="TextAnnotation_16tl39x">
<dc:Bounds x="1710" y="450" width="138.9890329964856" height="54.99608389636191" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_121s1mh" bpmnElement="TextAnnotation_13dfa0e">
<dc:Bounds x="3550" y="780" width="139" height="55" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1to459g" bpmnElement="Flow_057chp5">
<di:waypoint x="4080" y="750" />
<di:waypoint x="4202" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_04s3gnb" bpmnElement="Flow_0os2dvk">
<di:waypoint x="188" y="750" />
<di:waypoint x="310" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0opupky" bpmnElement="Association_1xvfsh5">
<di:waypoint x="1477" y="855" />
<di:waypoint x="1477" y="815" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_0bgexj4_di" bpmnElement="Association_0bgexj4">
<di:waypoint x="2510" y="1075" />
<di:waypoint x="2510" y="1050" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0g0h8cs" bpmnElement="Association_0b9ktx5">
<di:waypoint x="3170" y="545" />
<di:waypoint x="3170" y="505" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1az0fdm" bpmnElement="Association_1chwl42">
<di:waypoint x="2510" y="985" />
<di:waypoint x="2510" y="1010" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1r0txp0" bpmnElement="Association_0zw4sdy">
<di:waypoint x="3610" y="445" />
<di:waypoint x="3610" y="415" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0c0arqr" bpmnElement="Association_12tx3d2">
<di:waypoint x="980" y="625" />
<di:waypoint x="980" y="660" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0rt3zi2" bpmnElement="Association_1yylehq">
<di:waypoint x="1178" y="625" />
<di:waypoint x="1178" y="661" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0f535kt" bpmnElement="Association_1dna0hv">
<di:waypoint x="1470" y="465" />
<di:waypoint x="1470" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1f6ixva" bpmnElement="Association_1uelaft">
<di:waypoint x="1950" y="395" />
<di:waypoint x="1950" y="355" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_12s3a4i" bpmnElement="Association_0mcn1z2">
<di:waypoint x="980" y="375" />
<di:waypoint x="980" y="345" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_13nt8li_di" bpmnElement="Association_13nt8li">
<di:waypoint x="1770" y="545" />
<di:waypoint x="1770" y="505" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1bh1tq0" bpmnElement="Association_0hp4f1r">
<di:waypoint x="3610" y="725" />
<di:waypoint x="3610" y="780" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0aangly">
<bpmndi:BPMNPlane id="BPMNPlane_03tt8tm" bpmnElement="Activity_16lstom">
<bpmndi:BPMNShape id="BPMNShape_1dyduer" bpmnElement="Event_10crzw5" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="1172" y="524" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1107" y="535" width="55" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0jhbcms" bpmnElement="Event_0ixfvmt" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="832" y="524" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="767" y="535" width="55" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1vgckf2" bpmnElement="Event_1l0xgdy" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="502" y="524" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="437" y="535" width="55" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1nankdg" bpmnElement="Event_1nnrj7j" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1172" y="609" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1150" y="652" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0r6l3v4" bpmnElement="Activity_0lfiix2" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="960" y="140" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1jvosbx" bpmnElement="Activity_0an7h47">
<dc:Bounds x="1140" y="255" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1y6mevx" bpmnElement="Gateway_1q7jlls" isMarkerVisible="true">
<dc:Bounds x="1165" y="155" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1109" y="155" width="72" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ed83zl" bpmnElement="Event_0qmahpx" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="832" y="609" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="810" y="652" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0v3xva0" bpmnElement="Activity_0atn96l" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="630" y="140" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1itq0zv" bpmnElement="Activity_1dobm0z" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="305" y="140" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0qsmwhh" bpmnElement="Activity_11u2j54">
<dc:Bounds x="800" y="255" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0nipcpi" bpmnElement="Activity_1n9dpiq">
<dc:Bounds x="470" y="255" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_12g6dzi" bpmnElement="Gateway_183pjyy" isMarkerVisible="true">
<dc:Bounds x="825" y="155" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="767" y="155" width="72" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1baa1jy" bpmnElement="Gateway_1k6t2ju" isMarkerVisible="true">
<dc:Bounds x="495" y="155" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="438" y="155" width="72" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0pzqgem" bpmnElement="Event_1wz664h">
<dc:Bounds x="172" y="162" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_18hbz6f" bpmnElement="Event_0tlu0pu">
<dc:Bounds x="1332" y="162" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1308" y="205" width="85" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_05pm54e" bpmnElement="Event_1reo298" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="502" y="609" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="480" y="652" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1e6tyg9" bpmnElement="Activity_1xza5u5" isExpanded="false">
<dc:Bounds x="470" y="390" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1cjtze6" bpmnElement="Activity_061ox8j" isExpanded="false">
<dc:Bounds x="800" y="390" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1oslv2y" bpmnElement="Activity_0mri2jx" isExpanded="false">
<dc:Bounds x="1140" y="390" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1mhxks8" bpmnElement="TextAnnotation_1dkavuq">
<dc:Bounds x="620" y="265" width="160" height="27" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0qufwcb" bpmnElement="TextAnnotation_06lbc5r">
<dc:Bounds x="285" y="265" width="150" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0op4lzp" bpmnElement="TextAnnotation_0in4eaj">
<dc:Bounds x="950" y="266" width="140" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1acwkwr" bpmnElement="TextAnnotation_1duyi5w">
<dc:Bounds x="617" y="402" width="139.98178228437357" height="54.9863387978142" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_13rmmwl" bpmnElement="TextAnnotation_0znxb3u">
<dc:Bounds x="950" y="402" width="139" height="55" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0b7cog9" bpmnElement="Event_1v484x9" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="684" y="122" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="641" y="113" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0rxrit9" bpmnElement="Event_0lgk8h1" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="362" y="122" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="317" y="113" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_04h83nt" bpmnElement="Event_0tr8w5c" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1012" y="122" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="969" y="113" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1767e4h" bpmnElement="Flow_1604d5t">
<di:waypoint x="1190" y="560" />
<di:waypoint x="1190" y="609" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1t110wm" bpmnElement="Flow_0ylyom5">
<di:waypoint x="850" y="560" />
<di:waypoint x="850" y="609" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0ej4xgc" bpmnElement="Flow_0nucrw6">
<di:waypoint x="1030" y="122" />
<di:waypoint x="1030" y="80" />
<di:waypoint x="1190" y="80" />
<di:waypoint x="1190" y="155" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0z3oqsp" bpmnElement="Flow_1h8pa0i">
<di:waypoint x="875" y="180" />
<di:waypoint x="960" y="180" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="911" y="162" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1q00b24" bpmnElement="Flow_098sow0">
<di:waypoint x="1060" y="180" />
<di:waypoint x="1165" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0pdyuby" bpmnElement="Flow_1ufq2x0">
<di:waypoint x="1190" y="205" />
<di:waypoint x="1190" y="255" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="1196" y="216" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1bm9smu" bpmnElement="Flow_07u3n1n">
<di:waypoint x="1215" y="180" />
<di:waypoint x="1332" y="180" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="1265" y="162" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1oc3bkd" bpmnElement="Flow_0ilm708">
<di:waypoint x="380" y="122" />
<di:waypoint x="380" y="80" />
<di:waypoint x="520" y="80" />
<di:waypoint x="520" y="155" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_12ntlay" bpmnElement="Flow_1p1b0nz">
<di:waypoint x="545" y="180" />
<di:waypoint x="630" y="180" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="574" y="162" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1ygn62r" bpmnElement="Flow_1b5fl54">
<di:waypoint x="730" y="180" />
<di:waypoint x="825" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_164rkn9" bpmnElement="Flow_1uh7za6">
<di:waypoint x="208" y="180" />
<di:waypoint x="305" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1riel1b" bpmnElement="Flow_0j0x8pm">
<di:waypoint x="405" y="180" />
<di:waypoint x="495" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1eo7xs4" bpmnElement="Flow_1wnx650">
<di:waypoint x="850" y="205" />
<di:waypoint x="850" y="255" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="859" y="220" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1qlc81t" bpmnElement="Flow_0it8mh1">
<di:waypoint x="520" y="205" />
<di:waypoint x="520" y="255" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="526" y="216" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19f66bu_di" bpmnElement="Flow_19f66bu">
<di:waypoint x="520" y="335" />
<di:waypoint x="520" y="390" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_006xogk" bpmnElement="Flow_0ptfrrn">
<di:waypoint x="702" y="122" />
<di:waypoint x="702" y="80" />
<di:waypoint x="850" y="80" />
<di:waypoint x="850" y="155" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_04d0ojf" bpmnElement="Flow_08way2e">
<di:waypoint x="520" y="560" />
<di:waypoint x="520" y="609" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15j2ize_di" bpmnElement="Flow_15j2ize">
<di:waypoint x="520" y="470" />
<di:waypoint x="520" y="524" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1mi4sv6_di" bpmnElement="Flow_1mi4sv6">
<di:waypoint x="850" y="335" />
<di:waypoint x="850" y="390" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0hs2hzx_di" bpmnElement="Flow_0hs2hzx">
<di:waypoint x="850" y="470" />
<di:waypoint x="850" y="524" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1dmaikq_di" bpmnElement="Flow_1dmaikq">
<di:waypoint x="1190" y="335" />
<di:waypoint x="1190" y="390" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1jc1qdb_di" bpmnElement="Flow_1jc1qdb">
<di:waypoint x="1190" y="470" />
<di:waypoint x="1190" y="524" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_05np89n" bpmnElement="Association_071tsjp">
<di:waypoint x="1010" y="220" />
<di:waypoint x="1010" y="266" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0jokqft" bpmnElement="Association_03i3are">
<di:waypoint x="681" y="220" />
<di:waypoint x="681" y="265" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1d1gi23" bpmnElement="Association_1a2vx54">
<di:waypoint x="355" y="220" />
<di:waypoint x="355" y="265" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1e5r1k0" bpmnElement="Association_0n0ug34">
<di:waypoint x="570" y="430" />
<di:waypoint x="617" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_112i97u" bpmnElement="Association_0he34eb">
<di:waypoint x="900" y="430" />
<di:waypoint x="950" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_01pf2pq_di" bpmnElement="Association_01pf2pq">
<di:waypoint x="800" y="430" />
<di:waypoint x="757" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_1uxyqx6_di" bpmnElement="Association_1uxyqx6">
<di:waypoint x="1140" y="430" />
<di:waypoint x="1089" y="430" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_1011a30">
<bpmndi:BPMNPlane id="BPMNPlane_0wf4z83" bpmnElement="Activity_1dzp7w6">
<bpmndi:BPMNShape id="BPMNShape_0hblfow" bpmnElement="Activity_052lmai" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="220" y="760" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_139c0ps" bpmnElement="Activity_0s18fjd" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="220" y="580" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_00ygv2t" bpmnElement="Activity_19eqzie" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="220" y="405" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1hridx5" bpmnElement="Activity_0vsa24z" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="220" y="215" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0q4np10" bpmnElement="Activity_06x1ijq" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="220" y="35" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0lg6k5r" bpmnElement="Activity_10qhh1y" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="220" y="-135" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_11t3ahk" bpmnElement="Event_1egdpk1">
<dc:Bounds x="-18" y="332" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ca5wc9" bpmnElement="Event_1p6izjv">
<dc:Bounds x="652" y="332" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="636" y="375" width="68" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_15pz5gp_di" bpmnElement="Gateway_0eo9yya">
<dc:Bounds x="105" y="325" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1xxzkro_di" bpmnElement="Gateway_11kjfmx">
<dc:Bounds x="515" y="325" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0ev89hu_di" bpmnElement="Gateway_0ev89hu" isMarkerVisible="true">
<dc:Bounds x="395" y="-120" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1df4jlj" bpmnElement="Gateway_1hwmuwo" isMarkerVisible="true">
<dc:Bounds x="395" y="50" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0nrfjlo" bpmnElement="Gateway_0327105" isMarkerVisible="true">
<dc:Bounds x="395" y="230" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0utp07o" bpmnElement="Gateway_1429puo" isMarkerVisible="true">
<dc:Bounds x="395" y="420" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0bv5o89" bpmnElement="Gateway_1g5439k" isMarkerVisible="true">
<dc:Bounds x="395" y="595" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_12r71xo" bpmnElement="Gateway_123d99c" isMarkerVisible="true">
<dc:Bounds x="395" y="775" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_157q505" bpmnElement="TextAnnotation_002qlx4">
<dc:Bounds x="205" y="870" width="130" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1oqwyoo" bpmnElement="TextAnnotation_1w8a6iz">
<dc:Bounds x="220" y="-25" width="100" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1e2pefp" bpmnElement="TextAnnotation_18mfegl">
<dc:Bounds x="220" y="145" width="150" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0uhd7v1" bpmnElement="TextAnnotation_18d4rv4">
<dc:Bounds x="220" y="325" width="130" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0s7jz64" bpmnElement="TextAnnotation_06f9l3i">
<dc:Bounds x="220" y="511" width="130" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0uxbehi" bpmnElement="TextAnnotation_14rnsso">
<dc:Bounds x="205" y="687" width="130" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_091fhti" bpmnElement="Event_0u4eeuw" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="302" y="-153" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="347.5" y="-142" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_06406fs" bpmnElement="Event_1uoqpu7" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="302" y="17" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="347.5" y="28" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1qeakuv" bpmnElement="Event_1r93f40" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="302" y="197" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="347.5" y="208" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_11atr1n" bpmnElement="Event_1s2kweo" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="302" y="387" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="347.5" y="398" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1tpejuj" bpmnElement="Event_0kphidb" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="302" y="562" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="347.5" y="573" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1656u28" bpmnElement="Event_15fdkvs" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="302" y="742" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="347.5" y="753" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_13pyae6" bpmnElement="Flow_195pf24">
<di:waypoint x="18" y="350" />
<di:waypoint x="105" y="350" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0eitasi_di" bpmnElement="Flow_0eitasi">
<di:waypoint x="130" y="325" />
<di:waypoint x="130" y="-95" />
<di:waypoint x="220" y="-95" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1n4ycx8_di" bpmnElement="Flow_1n4ycx8">
<di:waypoint x="130" y="325" />
<di:waypoint x="130" y="75" />
<di:waypoint x="220" y="75" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1qq1nyt_di" bpmnElement="Flow_1qq1nyt">
<di:waypoint x="130" y="325" />
<di:waypoint x="130" y="255" />
<di:waypoint x="220" y="255" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1khujlf_di" bpmnElement="Flow_1khujlf">
<di:waypoint x="130" y="375" />
<di:waypoint x="130" y="445" />
<di:waypoint x="220" y="445" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gs1lo2_di" bpmnElement="Flow_1gs1lo2">
<di:waypoint x="130" y="375" />
<di:waypoint x="130" y="620" />
<di:waypoint x="220" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wd0a1s_di" bpmnElement="Flow_1wd0a1s">
<di:waypoint x="130" y="375" />
<di:waypoint x="130" y="800" />
<di:waypoint x="220" y="800" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xwng36_di" bpmnElement="Flow_0xwng36">
<di:waypoint x="320" y="-95" />
<di:waypoint x="395" y="-95" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1mwc5qs_di" bpmnElement="Flow_1mwc5qs">
<di:waypoint x="320" y="-153" />
<di:waypoint x="320" y="-180" />
<di:waypoint x="420" y="-180" />
<di:waypoint x="420" y="-120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0rvwjck_di" bpmnElement="Flow_0rvwjck">
<di:waypoint x="320" y="75" />
<di:waypoint x="395" y="75" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gez7h4_di" bpmnElement="Flow_1gez7h4">
<di:waypoint x="320" y="17" />
<di:waypoint x="320" y="-10" />
<di:waypoint x="420" y="-10" />
<di:waypoint x="420" y="50" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0bdzcvj_di" bpmnElement="Flow_0bdzcvj">
<di:waypoint x="320" y="255" />
<di:waypoint x="395" y="255" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0vw0gah_di" bpmnElement="Flow_0vw0gah">
<di:waypoint x="320" y="197" />
<di:waypoint x="320" y="170" />
<di:waypoint x="420" y="170" />
<di:waypoint x="420" y="230" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_011dgyk_di" bpmnElement="Flow_011dgyk">
<di:waypoint x="320" y="445" />
<di:waypoint x="395" y="445" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dc7j1m_di" bpmnElement="Flow_0dc7j1m">
<di:waypoint x="320" y="387" />
<di:waypoint x="320" y="360" />
<di:waypoint x="420" y="360" />
<di:waypoint x="420" y="420" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wsfbuc_di" bpmnElement="Flow_1wsfbuc">
<di:waypoint x="320" y="620" />
<di:waypoint x="395" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_14zncyu_di" bpmnElement="Flow_14zncyu">
<di:waypoint x="320" y="562" />
<di:waypoint x="320" y="530" />
<di:waypoint x="420" y="530" />
<di:waypoint x="420" y="595" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_01bspdb_di" bpmnElement="Flow_01bspdb">
<di:waypoint x="320" y="800" />
<di:waypoint x="395" y="800" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0j8p9qm_di" bpmnElement="Flow_0j8p9qm">
<di:waypoint x="320" y="742" />
<di:waypoint x="320" y="710" />
<di:waypoint x="420" y="710" />
<di:waypoint x="420" y="775" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_08oorkb_di" bpmnElement="Flow_08oorkb">
<di:waypoint x="445" y="-95" />
<di:waypoint x="540" y="-95" />
<di:waypoint x="540" y="325" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xxp18c_di" bpmnElement="Flow_0xxp18c">
<di:waypoint x="445" y="75" />
<di:waypoint x="540" y="75" />
<di:waypoint x="540" y="325" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gkh7yw_di" bpmnElement="Flow_0gkh7yw">
<di:waypoint x="445" y="255" />
<di:waypoint x="540" y="255" />
<di:waypoint x="540" y="325" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lillir_di" bpmnElement="Flow_0lillir">
<di:waypoint x="445" y="445" />
<di:waypoint x="540" y="445" />
<di:waypoint x="540" y="375" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19ji6j6_di" bpmnElement="Flow_19ji6j6">
<di:waypoint x="445" y="620" />
<di:waypoint x="540" y="620" />
<di:waypoint x="540" y="375" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0c3wtym_di" bpmnElement="Flow_0c3wtym">
<di:waypoint x="445" y="800" />
<di:waypoint x="540" y="800" />
<di:waypoint x="540" y="375" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wclukq_di" bpmnElement="Flow_1wclukq">
<di:waypoint x="565" y="350" />
<di:waypoint x="652" y="350" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1wyon23" bpmnElement="Association_1t4yxos">
<di:waypoint x="270" y="840" />
<di:waypoint x="270" y="870" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_00bmrs0" bpmnElement="Association_1n7ru77">
<di:waypoint x="270" y="660" />
<di:waypoint x="270" y="687" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0dtd5b0" bpmnElement="Association_1btrc1e">
<di:waypoint x="270" y="485" />
<di:waypoint x="270" y="511" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1wkncge" bpmnElement="Association_15yk91x">
<di:waypoint x="270" y="295" />
<di:waypoint x="270" y="325" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1cekuf1" bpmnElement="Association_0qox2ff">
<di:waypoint x="270" y="115" />
<di:waypoint x="270" y="145" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0rndwgl" bpmnElement="Association_17sm97l">
<di:waypoint x="270" y="-55" />
<di:waypoint x="270" y="-25" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0fwjdfm">
<bpmndi:BPMNPlane id="BPMNPlane_1qomor4" bpmnElement="Activity_0r7by3d">
<bpmndi:BPMNShape id="BPMNShape_19osdmk" bpmnElement="Event_14328mq" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="1682" y="719" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1618" y="730" width="55" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0py2cjn" bpmnElement="Event_0ko8pjn" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="1330" y="719" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1266" y="730" width="55" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0b371gq" bpmnElement="Event_0ci2pq1" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="680" y="717" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="616" y="728" width="55" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0eei5ox" bpmnElement="Gateway_1j3wzt3" isMarkerVisible="true">
<dc:Bounds x="1835" y="345" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1mqth30" bpmnElement="Activity_0hz4clo" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="478" y="333" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ojth67" bpmnElement="Activity_0rujpth">
<dc:Bounds x="648" y="448" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1glggvl" bpmnElement="Gateway_0zmnb52" isMarkerVisible="true">
<dc:Bounds x="673" y="348" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="614" y="346" width="72" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0pj9n8l" bpmnElement="Gateway_0z8cvnx" isMarkerVisible="true">
<dc:Bounds x="823" y="348" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_08dzw15" bpmnElement="Gateway_0ofxmoh" isMarkerVisible="true">
<dc:Bounds x="323" y="348" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="307" y="408" width="83" height="132" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1dqpc0l" bpmnElement="Activity_17gvvs9">
<dc:Bounds x="1650" y="445" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1jstw1z" bpmnElement="Gateway_1xasn78" isMarkerVisible="true">
<dc:Bounds x="1675" y="345" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1614" y="344" width="72" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1jsvm7x" bpmnElement="Activity_1sx7vgk" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="1470" y="330" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1oectou" bpmnElement="Activity_0slpyc4" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="1118" y="330" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ah9mnf" bpmnElement="Activity_1bmnvqm">
<dc:Bounds x="1298" y="445" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_00pb499" bpmnElement="Gateway_0o2kc00" isMarkerVisible="true">
<dc:Bounds x="1323" y="345" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1261" y="344" width="72" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ms0fye" bpmnElement="Gateway_1rbnblm" isMarkerVisible="true">
<dc:Bounds x="973" y="348" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="956" y="405" width="88" height="132" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0eu39ku" bpmnElement="Event_0nfh21h">
<dc:Bounds x="180" y="355" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0btkayj" bpmnElement="Event_08i94r8">
<dc:Bounds x="2002" y="352" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1981" y="395" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_01kwha4" bpmnElement="Event_1wrpod5">
<dc:Bounds x="680" y="809" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="588.5" y="813.5" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1lsbczc_di" bpmnElement="Event_1lhxua1" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="680" y="902" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="659" y="945" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_17fwbl0" bpmnElement="Event_16b96bi">
<dc:Bounds x="1330" y="809" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1239" y="814" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_08nzzi7" bpmnElement="Event_1tizalg" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1330" y="902" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1309" y="945" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0l8m4ey" bpmnElement="Event_143nwi4">
<dc:Bounds x="1682" y="809" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1591" y="814" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_12a1w9i" bpmnElement="Event_0ccyfoc" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1682" y="902" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1661" y="945" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0jae3sv" bpmnElement="Activity_1iub37x" isExpanded="false">
<dc:Bounds x="1298" y="580" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1c6fo6r" bpmnElement="Activity_0t6des0" isExpanded="false">
<dc:Bounds x="1650" y="580" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ps29fi" bpmnElement="Activity_1xo0i79" isExpanded="false">
<dc:Bounds x="648" y="580" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0s9mop3" bpmnElement="TextAnnotation_01g9ud7">
<dc:Bounds x="1475" y="456" width="130" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0frwkbs" bpmnElement="TextAnnotation_1a9lznb">
<dc:Bounds x="1108" y="456" width="150" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0e3ojvf" bpmnElement="TextAnnotation_1kolkrd">
<dc:Bounds x="468" y="458" width="160" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0ii33x4" bpmnElement="TextAnnotation_1n6upy7">
<dc:Bounds x="960" y="593" width="139.98178228437357" height="54.9863387978142" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_02km012" bpmnElement="TextAnnotation_16jr15m">
<dc:Bounds x="1460" y="593" width="139.98178228437357" height="54.9863387978142" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_167gbdw" bpmnElement="Event_1npswa4" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1170" y="312" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1127" y="303" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0cv9zv1" bpmnElement="Event_1snzi1i" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1522" y="312" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1479" y="303" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_05adacn" bpmnElement="Event_1soiob7" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="530" y="315" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="487" y="303" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_12rj5jh" bpmnElement="Flow_1keje64">
<di:waypoint x="698" y="753" />
<di:waypoint x="698" y="809" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_10xqu4x" bpmnElement="Flow_0lqh74p">
<di:waypoint x="1725" y="370" />
<di:waypoint x="1835" y="370" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="1778" y="352" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_06v4dpo" bpmnElement="Flow_1lxkqos">
<di:waypoint x="998" y="348" />
<di:waypoint x="998" y="230" />
<di:waypoint x="1860" y="230" />
<di:waypoint x="1860" y="345" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1008" y="299" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1el6vdg" bpmnElement="Flow_0oo5pfa">
<di:waypoint x="1885" y="370" />
<di:waypoint x="2002" y="370" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1oyj9si" bpmnElement="Flow_1lyyiz0">
<di:waypoint x="548" y="315" />
<di:waypoint x="548" y="270" />
<di:waypoint x="698" y="270" />
<di:waypoint x="698" y="348" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1os3d33" bpmnElement="Flow_1g2jj3p">
<di:waypoint x="578" y="373" />
<di:waypoint x="673" y="373" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1b455py" bpmnElement="Flow_1x580h9">
<di:waypoint x="698" y="398" />
<di:waypoint x="698" y="448" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="707" y="411" width="13" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_06gzkkk" bpmnElement="Flow_0md115z">
<di:waypoint x="723" y="373" />
<di:waypoint x="823" y="373" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="764" y="355" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0kne5x6" bpmnElement="Flow_0dp8ucz">
<di:waypoint x="348" y="348" />
<di:waypoint x="348" y="230" />
<di:waypoint x="848" y="230" />
<di:waypoint x="848" y="348" />
<bpmndi:BPMNLabel>
<dc:Bounds x="358" y="299" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0hxla8q" bpmnElement="Flow_1rqkqll">
<di:waypoint x="373" y="373" />
<di:waypoint x="823" y="373" />
<bpmndi:BPMNLabel>
<dc:Bounds x="435" y="355" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1y7dcw6" bpmnElement="Flow_1r79utd">
<di:waypoint x="873" y="373" />
<di:waypoint x="973" y="373" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0pdnl07" bpmnElement="Flow_012b631">
<di:waypoint x="216" y="373" />
<di:waypoint x="323" y="373" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1nnmv0l" bpmnElement="Flow_1g4yuo2">
<di:waypoint x="1700" y="525" />
<di:waypoint x="1700" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_042or8j" bpmnElement="Flow_0aizxt9">
<di:waypoint x="1700" y="395" />
<di:waypoint x="1700" y="445" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="1709" y="411" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0k02zcb" bpmnElement="Flow_1vexmsi">
<di:waypoint x="1570" y="370" />
<di:waypoint x="1675" y="370" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_11zsfi9" bpmnElement="Flow_03sxgm0">
<di:waypoint x="1540" y="312" />
<di:waypoint x="1540" y="270" />
<di:waypoint x="1700" y="270" />
<di:waypoint x="1700" y="345" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0trvskp" bpmnElement="Flow_05f5f0v">
<di:waypoint x="1373" y="370" />
<di:waypoint x="1470" y="370" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="1407" y="353" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0vzex6t" bpmnElement="Flow_1406y4i">
<di:waypoint x="1188" y="312" />
<di:waypoint x="1188" y="270" />
<di:waypoint x="1348" y="270" />
<di:waypoint x="1348" y="345" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1xxo6j5" bpmnElement="Flow_0hms2h4">
<di:waypoint x="1023" y="373" />
<di:waypoint x="1118" y="373" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1066" y="355" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_03p7sg2" bpmnElement="Flow_1kwua5e">
<di:waypoint x="1218" y="370" />
<di:waypoint x="1323" y="370" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0r1jn47" bpmnElement="Flow_1813q0i">
<di:waypoint x="1348" y="395" />
<di:waypoint x="1348" y="445" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="1356" y="410" width="13" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_004gyze_di" bpmnElement="Flow_004gyze">
<di:waypoint x="698" y="845" />
<di:waypoint x="698" y="902" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0rjvgdf" bpmnElement="Flow_1iunwdu">
<di:waypoint x="1348" y="845" />
<di:waypoint x="1348" y="902" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1pirfvb" bpmnElement="Flow_1tor5bi">
<di:waypoint x="1700" y="845" />
<di:waypoint x="1700" y="902" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lnak4c_di" bpmnElement="Flow_0lnak4c">
<di:waypoint x="1348" y="755" />
<di:waypoint x="1348" y="809" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_08t3xms_di" bpmnElement="Flow_08t3xms">
<di:waypoint x="1700" y="755" />
<di:waypoint x="1700" y="809" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_073pn9r_di" bpmnElement="Flow_073pn9r">
<di:waypoint x="698" y="528" />
<di:waypoint x="698" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_02thtx5_di" bpmnElement="Flow_02thtx5">
<di:waypoint x="1348" y="525" />
<di:waypoint x="1348" y="580" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jvqu39_di" bpmnElement="Flow_0jvqu39">
<di:waypoint x="1348" y="660" />
<di:waypoint x="1348" y="719" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0qb0exd_di" bpmnElement="Flow_0qb0exd">
<di:waypoint x="1700" y="660" />
<di:waypoint x="1700" y="719" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1pxv5oq_di" bpmnElement="Flow_1pxv5oq">
<di:waypoint x="698" y="660" />
<di:waypoint x="698" y="717" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_040cj9b" bpmnElement="Association_1hj3ibp">
<di:waypoint x="529" y="413" />
<di:waypoint x="529" y="458" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_08641bf" bpmnElement="Association_0ddcuxs">
<di:waypoint x="1520" y="410" />
<di:waypoint x="1520" y="456" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0e27d18" bpmnElement="Association_0jtm4c5">
<di:waypoint x="1171" y="410" />
<di:waypoint x="1171" y="456" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_0zkgphf_di" bpmnElement="Association_0zkgphf">
<di:waypoint x="960" y="620" />
<di:waypoint x="748" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_1fna4xp_di" bpmnElement="Association_1fna4xp">
<di:waypoint x="1298" y="620" />
<di:waypoint x="1100" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_1597hcf_di" bpmnElement="Association_1597hcf">
<di:waypoint x="1460" y="620" />
<di:waypoint x="1398" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_1ep17ra_di" bpmnElement="Association_1ep17ra">
<di:waypoint x="1600" y="620" />
<di:waypoint x="1650" y="620" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_1mpnxfz">
<bpmndi:BPMNPlane id="BPMNPlane_0hr3t91" bpmnElement="Activity_1rkj7mr">
<bpmndi:BPMNShape id="BPMNShape_1w7odv0" bpmnElement="Gateway_1rjsw7d" isMarkerVisible="true">
<dc:Bounds x="485" y="-49" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="466" y="-192" width="88" height="132" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1jy1y6t" bpmnElement="Activity_0fce7fy">
<dc:Bounds x="2432" y="600" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1vp1a2o" bpmnElement="Activity_0g7min2" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="750" y="600" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_11egr6s" bpmnElement="Activity_09525jb" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="750" y="250" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1esyi7f" bpmnElement="Gateway_13ojie2" isMarkerVisible="true">
<dc:Bounds x="957" y="615" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1qiw55f" bpmnElement="Gateway_0o5p0ic" isMarkerVisible="true">
<dc:Bounds x="1127" y="425" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0uc8s2x" bpmnElement="Activity_1btqq2f" isExpanded="true" bioc:stroke="#6b3c00" bioc:fill="#ffe0b2" color:background-color="#ffe0b2" color:border-color="#6b3c00">
<dc:Bounds x="1102" y="540" width="1250" height="387" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_03zfe26" bpmnElement="Activity_05l2f78" isExpanded="true" bioc:stroke="#5b176d" bioc:fill="#e1bee7" color:background-color="#e1bee7" color:border-color="#5b176d">
<dc:Bounds x="1627" y="596" width="415" height="221" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_023mbom" bpmnElement="Event_1q4e5k8">
<dc:Bounds x="1961" y="660" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_07kmb5f" bpmnElement="Activity_0squrq4" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="1762" y="638" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0mva2i5" bpmnElement="Event_1vcjfv7">
<dc:Bounds x="1667" y="660" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_03lnk7i" bpmnElement="Event_0gyvgk0" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1811" y="700" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1846" y="733" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1ld7z7o" bpmnElement="Flow_0xwq1bd">
<di:waypoint x="1862" y="678" />
<di:waypoint x="1961" y="678" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_01nkdgf" bpmnElement="Flow_1gpsdr9">
<di:waypoint x="1829" y="736" />
<di:waypoint x="1829" y="777" />
<di:waypoint x="1979" y="777" />
<di:waypoint x="1979" y="697" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0enn4r9" bpmnElement="Flow_06kt2q3">
<di:waypoint x="1703" y="678" />
<di:waypoint x="1762" y="678" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_0g37g8d" bpmnElement="Gateway_04e5kgv" isMarkerVisible="true">
<dc:Bounds x="2147" y="672" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2132" y="589" width="83" height="80" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1544jul" bpmnElement="Gateway_13az8f8" isMarkerVisible="true">
<dc:Bounds x="1442" y="672" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0k4rr1s" bpmnElement="Activity_1shf5kl" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="1222" y="657" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_19utccg" bpmnElement="Event_188f6cx">
<dc:Bounds x="2284" y="679" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0t3vu9y" bpmnElement="Event_17cij1t">
<dc:Bounds x="1134" y="679" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1s65haw" bpmnElement="Activity_04uls9g">
<dc:Bounds x="1417" y="806" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0iorjv2_di" bpmnElement="Event_00k00ql" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1304" y="828" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1278" y="874" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_09bf3pa_di" bpmnElement="Event_0dr8gbt" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="1449" y="579" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1489" y="581" width="80" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0k6q64w" bpmnElement="Event_05bjnn3" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1304" y="719" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1349" y="727" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1vnmah9" bpmnElement="Flow_0iwqcs9">
<di:waypoint x="1492" y="697" />
<di:waypoint x="1627" y="697" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1520" y="639" width="73" height="53" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_01izbzw" bpmnElement="Flow_1bjsrzi">
<di:waypoint x="2042" y="697" />
<di:waypoint x="2147" y="697" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1tjppit" bpmnElement="Flow_0x0i1q2">
<di:waypoint x="1467" y="672" />
<di:waypoint x="1467" y="615" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="1374" y="617" width="88" height="53" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1v550at" bpmnElement="Flow_0ztoiyk">
<di:waypoint x="2172" y="722" />
<di:waypoint x="2172" y="846" />
<di:waypoint x="1517" y="846" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2182" y="752" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_09wbinv" bpmnElement="Flow_1opgre0">
<di:waypoint x="1467" y="722" />
<di:waypoint x="1467" y="806" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="1472" y="742" width="57" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0g2vtrn" bpmnElement="Flow_0lnqdse">
<di:waypoint x="1322" y="755" />
<di:waypoint x="1322" y="828" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0h4hdx1" bpmnElement="Flow_1hxy2f0">
<di:waypoint x="2197" y="697" />
<di:waypoint x="2284" y="697" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2235" y="679" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1d9stbf" bpmnElement="Flow_0gcj0at">
<di:waypoint x="1170" y="697" />
<di:waypoint x="1222" y="697" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1oexdd7_di" bpmnElement="Flow_1oexdd7">
<di:waypoint x="1322" y="697" />
<di:waypoint x="1442" y="697" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jp3fvu_di" bpmnElement="Flow_0jp3fvu">
<di:waypoint x="1417" y="846" />
<di:waypoint x="1340" y="846" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_0g2mk1q" bpmnElement="Activity_1x3eu0g" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="750" y="20" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ke4udr" bpmnElement="Activity_0kz9n58" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="750" y="-154" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1y43y2p" bpmnElement="Gateway_03iniyu" isMarkerVisible="true">
<dc:Bounds x="2885" y="265" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1rkxydt" bpmnElement="Gateway_0so7d85" isMarkerVisible="true">
<dc:Bounds x="485" y="615" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="468" y="473" width="84" height="132" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_05nzcxp" bpmnElement="Gateway_10txamw" isMarkerVisible="true">
<dc:Bounds x="1215" y="-49" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0zloa08" bpmnElement="Event_1n6hxww">
<dc:Bounds x="212" y="272" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0u0ju8f" bpmnElement="Event_08pe4sl">
<dc:Bounds x="3142" y="272" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="3130" y="315" width="61" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1rtgass" bpmnElement="Activity_0nnzzlk">
<dc:Bounds x="932" y="410" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_03ywfqs_di" bpmnElement="Gateway_1ohdyvz">
<dc:Bounds x="615" y="-49" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1rnjndx_di" bpmnElement="Gateway_0ou9oao">
<dc:Bounds x="1075" y="-49" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0e6u0db_di" bpmnElement="Gateway_0e6u0db" isMarkerVisible="true">
<dc:Bounds x="957" y="-139" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1rscfg8" bpmnElement="Gateway_0mxturc" isMarkerVisible="true">
<dc:Bounds x="957" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0mmv7ag_di" bpmnElement="Gateway_1qe6omd">
<dc:Bounds x="355" y="265" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_16nv4a2_di" bpmnElement="Gateway_1a10s4f">
<dc:Bounds x="3015" y="265" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0qt4cz9_di" bpmnElement="Gateway_0wz1n6v">
<dc:Bounds x="615" y="615" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1a56xxt_di" bpmnElement="Gateway_1a56xxt" isMarkerVisible="true">
<dc:Bounds x="2617" y="615" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1ewmu59_di" bpmnElement="Gateway_1xihzbr">
<dc:Bounds x="2755" y="265" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0296rvn_di" bpmnElement="Gateway_0296rvn" isMarkerVisible="true">
<dc:Bounds x="957" y="265" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_02e4sxf_di" bpmnElement="Event_0a13vjf">
<dc:Bounds x="492" y="732" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="491" y="775" width="39" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0nxxlfj_di" bpmnElement="Event_11ggwa2">
<dc:Bounds x="2892" y="407" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2892" y="450" width="38" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1it6t7s_di" bpmnElement="Event_0wm2eis">
<dc:Bounds x="1352" y="-42" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1347" y="1" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_13zb2gj_di" bpmnElement="Event_0vweb8z">
<dc:Bounds x="3022" y="152" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="3017" y="122" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1wwki0f" bpmnElement="TextAnnotation_15d9s2a">
<dc:Bounds x="1647" y="760" width="180" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1rsjqws" bpmnElement="TextAnnotation_0ap6tkp">
<dc:Bounds x="1177" y="579" width="190" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1yqx8rt" bpmnElement="TextAnnotation_15iz2s4">
<dc:Bounds x="725" y="-239" width="180" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1vuv0vt" bpmnElement="TextAnnotation_0is7g6k">
<dc:Bounds x="759" y="-39" width="82" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1m5tplc" bpmnElement="TextAnnotation_0mxl183">
<dc:Bounds x="705" y="175" width="160" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0bntr01" bpmnElement="TextAnnotation_0dyibqq">
<dc:Bounds x="700" y="525" width="169" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1wsbwje_di" bpmnElement="Event_1eqwznp" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="2334" y="522" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2312" y="485" width="80" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0re8pgr_di" bpmnElement="Event_1oanq42" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="1134" y="522" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1164" y="509" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1d2ampr" bpmnElement="Event_1c3hgiu" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="832" y="-172" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="879" y="-161" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1fo6o34" bpmnElement="Event_1iqubhz" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="832" y="2" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="879" y="13" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0umx2c2" bpmnElement="Event_1bc2zam" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="832" y="232" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="878" y="243" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_094l8o7" bpmnElement="Event_0uzivt2" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="832" y="582" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="879" y="590" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1ve7vmb" bpmnElement="Flow_110eej6">
<di:waypoint x="248" y="290" />
<di:waypoint x="355" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0rvw0u6" bpmnElement="Flow_0j7rdsf">
<di:waypoint x="535" y="-24" />
<di:waypoint x="615" y="-24" />
<bpmndi:BPMNLabel>
<dc:Bounds x="564" y="-42" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0174mfu" bpmnElement="Flow_1qx1zza">
<di:waypoint x="510" y="1" />
<di:waypoint x="510" y="136" />
<di:waypoint x="1240" y="136" />
<di:waypoint x="1240" y="1" />
<bpmndi:BPMNLabel>
<dc:Bounds x="520" y="28" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0jg96dm" bpmnElement="Flow_0yg6f65">
<di:waypoint x="850" y="640" />
<di:waypoint x="957" y="640" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_16n91dc" bpmnElement="Flow_0pftc7b">
<di:waypoint x="982" y="665" />
<di:waypoint x="982" y="967" />
<di:waypoint x="2482" y="967" />
<di:waypoint x="2482" y="680" />
<bpmndi:BPMNLabel color:color="#205022">
<dc:Bounds x="893" y="696" width="83" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_00fmys1" bpmnElement="Flow_0fh1alr">
<di:waypoint x="2352" y="640" />
<di:waypoint x="2432" y="640" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1foa075" bpmnElement="Flow_1bpjs6z">
<di:waypoint x="2370" y="540" />
<di:waypoint x="2482" y="540" />
<di:waypoint x="2482" y="600" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0l4fqhb" bpmnElement="Flow_06v53sx">
<di:waypoint x="1177" y="450" />
<di:waypoint x="2642" y="450" />
<di:waypoint x="2642" y="615" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_12j04vh" bpmnElement="Flow_1njw820">
<di:waypoint x="535" y="640" />
<di:waypoint x="615" y="640" />
<bpmndi:BPMNLabel>
<dc:Bounds x="563" y="622" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0cvy2yc" bpmnElement="Flow_1908ok5">
<di:waypoint x="1007" y="640" />
<di:waypoint x="1102" y="640" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1007" y="590" width="73" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1e0i8n9" bpmnElement="Flow_0x10cn2">
<di:waypoint x="982" y="615" />
<di:waypoint x="982" y="490" />
<bpmndi:BPMNLabel color:color="#831311">
<dc:Bounds x="920" y="543" width="57" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_19fskl3" bpmnElement="Flow_0a6ry10">
<di:waypoint x="850" y="582" />
<di:waypoint x="850" y="367" />
<di:waypoint x="1152" y="367" />
<di:waypoint x="1152" y="425" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0mbj5td" bpmnElement="Flow_0rgg0y2">
<di:waypoint x="1152" y="522" />
<di:waypoint x="1152" y="475" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1hcxrmn" bpmnElement="Flow_0j6uf4t">
<di:waypoint x="510" y="665" />
<di:waypoint x="510" y="732" />
<bpmndi:BPMNLabel>
<dc:Bounds x="520" y="667" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ttioi8_di" bpmnElement="Flow_0ttioi8">
<di:waypoint x="1032" y="450" />
<di:waypoint x="1127" y="450" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_04m9n0g_di" bpmnElement="Flow_04m9n0g">
<di:waypoint x="2532" y="640" />
<di:waypoint x="2617" y="640" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_00282aa_di" bpmnElement="Flow_00282aa">
<di:waypoint x="640" y="-49" />
<di:waypoint x="640" y="-114" />
<di:waypoint x="750" y="-114" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_07kk315_di" bpmnElement="Flow_07kk315">
<di:waypoint x="850" y="-114" />
<di:waypoint x="957" y="-114" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ivy97f_di" bpmnElement="Flow_0ivy97f">
<di:waypoint x="850" y="-172" />
<di:waypoint x="850" y="-204" />
<di:waypoint x="982" y="-204" />
<di:waypoint x="982" y="-139" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lxgycr_di" bpmnElement="Flow_0lxgycr">
<di:waypoint x="850" y="60" />
<di:waypoint x="957" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lncao2_di" bpmnElement="Flow_0lncao2">
<di:waypoint x="850" y="2" />
<di:waypoint x="850" y="-34" />
<di:waypoint x="982" y="-34" />
<di:waypoint x="982" y="35" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lcg1bw_di" bpmnElement="Flow_0lcg1bw">
<di:waypoint x="1007" y="-114" />
<di:waypoint x="1100" y="-114" />
<di:waypoint x="1100" y="-49" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0807ce6_di" bpmnElement="Flow_0807ce6">
<di:waypoint x="1007" y="60" />
<di:waypoint x="1100" y="60" />
<di:waypoint x="1100" y="1" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0m9bxlf_di" bpmnElement="Flow_0m9bxlf">
<di:waypoint x="640" y="1" />
<di:waypoint x="640" y="60" />
<di:waypoint x="750" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1kdxrv8_di" bpmnElement="Flow_1kdxrv8">
<di:waypoint x="1125" y="-24" />
<di:waypoint x="1215" y="-24" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0op0sc2_di" bpmnElement="Flow_0op0sc2">
<di:waypoint x="380" y="265" />
<di:waypoint x="380" y="-24" />
<di:waypoint x="485" y="-24" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1j8sj3z_di" bpmnElement="Flow_1j8sj3z">
<di:waypoint x="3065" y="290" />
<di:waypoint x="3142" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_06mduhx_di" bpmnElement="Flow_06mduhx">
<di:waypoint x="640" y="615" />
<di:waypoint x="640" y="290" />
<di:waypoint x="750" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0a6nhzx_di" bpmnElement="Flow_0a6nhzx">
<di:waypoint x="665" y="640" />
<di:waypoint x="750" y="640" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jsai7j_di" bpmnElement="Flow_0jsai7j">
<di:waypoint x="2667" y="640" />
<di:waypoint x="2780" y="640" />
<di:waypoint x="2780" y="315" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0qxgqrd_di" bpmnElement="Flow_0qxgqrd">
<di:waypoint x="2805" y="290" />
<di:waypoint x="2885" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1p1q9lz_di" bpmnElement="Flow_1p1q9lz">
<di:waypoint x="850" y="290" />
<di:waypoint x="957" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1hehz6o_di" bpmnElement="Flow_1hehz6o">
<di:waypoint x="850" y="232" />
<di:waypoint x="850" y="190" />
<di:waypoint x="982" y="190" />
<di:waypoint x="982" y="265" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0217jqn_di" bpmnElement="Flow_0217jqn">
<di:waypoint x="1007" y="290" />
<di:waypoint x="2755" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ibmcmg_di" bpmnElement="Flow_1ibmcmg">
<di:waypoint x="380" y="315" />
<di:waypoint x="380" y="640" />
<di:waypoint x="485" y="640" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ny9f2j_di" bpmnElement="Flow_1ny9f2j">
<di:waypoint x="2935" y="290" />
<di:waypoint x="3015" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ao7a6z_di" bpmnElement="Flow_0ao7a6z">
<di:waypoint x="1265" y="-24" />
<di:waypoint x="1352" y="-24" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19838i3_di" bpmnElement="Flow_19838i3">
<di:waypoint x="2910" y="407" />
<di:waypoint x="2910" y="315" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1671ujm_di" bpmnElement="Flow_1671ujm">
<di:waypoint x="3040" y="188" />
<di:waypoint x="3040" y="265" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0lm7v6s" bpmnElement="Association_1p15gog">
<di:waypoint x="800" y="600" />
<di:waypoint x="800" y="555" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0p2y0ws" bpmnElement="Association_17xak97">
<di:waypoint x="799" y="250" />
<di:waypoint x="799" y="205" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_15clv61" bpmnElement="Association_01lsb2w">
<di:waypoint x="800" y="20" />
<di:waypoint x="800" y="-9" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1hay8d4" bpmnElement="Association_0r1zr5w">
<di:waypoint x="801" y="-154" />
<di:waypoint x="801" y="-209" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1lzzn6n" bpmnElement="Association_1mpit55">
<di:waypoint x="1787" y="718" />
<di:waypoint x="1787" y="760" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0rjna56" bpmnElement="Association_100nvze">
<di:waypoint x="1272" y="657" />
<di:waypoint x="1272" y="609" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0faox5d">
<bpmndi:BPMNPlane id="BPMNPlane_0i26bap" bpmnElement="Activity_0joys7w">
<bpmndi:BPMNShape id="BPMNShape_0cvsvdj" bpmnElement="Activity_1ugi3ee" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="558" y="380" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_18v669y" bpmnElement="Gateway_0nnr7s6" isMarkerVisible="true">
<dc:Bounds x="763" y="395" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0nxj8gw" bpmnElement="Gateway_1prxr23" isMarkerVisible="true">
<dc:Bounds x="413" y="395" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="396" y="345" width="84" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_03512xl" bpmnElement="Activity_1tahyai" bioc:stroke="#205022" bioc:fill="#c8e6c9" color:background-color="#c8e6c9" color:border-color="#205022">
<dc:Bounds x="558" y="135" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_16ueg2r" bpmnElement="Gateway_02ksohg" isMarkerVisible="true">
<dc:Bounds x="765" y="150" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0rkxg4c" bpmnElement="Gateway_02y0e5i" isMarkerVisible="true">
<dc:Bounds x="413" y="150" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="396" y="100" width="84" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1lbzf9w" bpmnElement="Event_1vci1fz">
<dc:Bounds x="152" y="282" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0jpanst" bpmnElement="Event_0dc3vww">
<dc:Bounds x="1032" y="282" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1012" y="325" width="77" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0cdswha_di" bpmnElement="Gateway_15nqhqb">
<dc:Bounds x="295" y="275" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0cgbixz_di" bpmnElement="Gateway_1qp130m">
<dc:Bounds x="875" y="275" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_188blqm" bpmnElement="TextAnnotation_0bj6e2o">
<dc:Bounds x="568" y="500" width="100" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0bexp37" bpmnElement="TextAnnotation_020juy6">
<dc:Bounds x="578" y="250" width="100" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1p06zvy" bpmnElement="Event_12t12ko" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="640" y="117" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="687" y="128" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1qrjt52" bpmnElement="Event_0vglg53" bioc:stroke="#831311" bioc:fill="#ffcdd2" color:background-color="#ffcdd2" color:border-color="#831311">
<dc:Bounds x="640" y="362" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="687" y="373" width="47" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_16cub6f" bpmnElement="Flow_0u0ydln">
<di:waypoint x="658" y="420" />
<di:waypoint x="763" y="420" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0z94ajp" bpmnElement="Flow_1lqqnv7">
<di:waypoint x="658" y="362" />
<di:waypoint x="658" y="330" />
<di:waypoint x="788" y="330" />
<di:waypoint x="788" y="395" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1pyv8t1" bpmnElement="Flow_16ka4fb">
<di:waypoint x="463" y="420" />
<di:waypoint x="558" y="420" />
<bpmndi:BPMNLabel>
<dc:Bounds x="504" y="402" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1jw4avz" bpmnElement="Flow_1heg8ez">
<di:waypoint x="438" y="445" />
<di:waypoint x="438" y="550" />
<di:waypoint x="788" y="550" />
<di:waypoint x="788" y="445" />
<bpmndi:BPMNLabel>
<dc:Bounds x="448" y="468" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0qbrvw5" bpmnElement="Flow_0ddgl1y">
<di:waypoint x="658" y="175" />
<di:waypoint x="765" y="175" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_19exr1n" bpmnElement="Flow_16tvbd9">
<di:waypoint x="658" y="117" />
<di:waypoint x="658" y="80" />
<di:waypoint x="790" y="80" />
<di:waypoint x="790" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0i7oksp" bpmnElement="Flow_1gnwc5z">
<di:waypoint x="463" y="175" />
<di:waypoint x="558" y="175" />
<bpmndi:BPMNLabel>
<dc:Bounds x="501" y="157" width="14" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0rxztzy" bpmnElement="Flow_1ycoq9c">
<di:waypoint x="438" y="200" />
<di:waypoint x="438" y="300" />
<di:waypoint x="790" y="300" />
<di:waypoint x="790" y="200" />
<bpmndi:BPMNLabel>
<dc:Bounds x="413" y="221" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0x56n4o_di" bpmnElement="Flow_0x56n4o">
<di:waypoint x="188" y="300" />
<di:waypoint x="295" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1pekbmq_di" bpmnElement="Flow_1pekbmq">
<di:waypoint x="320" y="275" />
<di:waypoint x="320" y="175" />
<di:waypoint x="413" y="175" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1fid6v6_di" bpmnElement="Flow_1fid6v6">
<di:waypoint x="320" y="325" />
<di:waypoint x="320" y="420" />
<di:waypoint x="413" y="420" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0yo51l8_di" bpmnElement="Flow_0yo51l8">
<di:waypoint x="815" y="175" />
<di:waypoint x="900" y="175" />
<di:waypoint x="900" y="275" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_134n92m_di" bpmnElement="Flow_134n92m">
<di:waypoint x="813" y="420" />
<di:waypoint x="900" y="420" />
<di:waypoint x="900" y="325" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_18ud6bg_di" bpmnElement="Flow_18ud6bg">
<di:waypoint x="925" y="300" />
<di:waypoint x="1032" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0u9o064" bpmnElement="Association_1rltkj1">
<di:waypoint x="608" y="460" />
<di:waypoint x="608" y="500" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0utfljj" bpmnElement="Association_1sw50y0">
<di:waypoint x="608" y="215" />
<di:waypoint x="608" y="250" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0azaldj">
<bpmndi:BPMNPlane id="BPMNPlane_1txr1i1" bpmnElement="Activity_03kcpkr">
<bpmndi:BPMNShape id="BPMNShape_0e9jowm" bpmnElement="Activity_0vcobdq">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0gvjdtf" bpmnElement="Activity_1tja5bd">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0eysscn_di" bpmnElement="Event_0eysscn">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0kxrkbg_di" bpmnElement="Event_0kxrkbg">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_05pt1hw_di" bpmnElement="Flow_05pt1hw">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0udfsrb_di" bpmnElement="Flow_0udfsrb">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ncp5wo_di" bpmnElement="Flow_1ncp5wo">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_1jwv2fk">
<bpmndi:BPMNPlane id="BPMNPlane_1pqh9f3" bpmnElement="Activity_1xza5u5">
<bpmndi:BPMNShape id="BPMNShape_0bi1u0d" bpmnElement="Activity_00alit0">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1y48wq5" bpmnElement="Activity_0jr2b8s">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0emay0n" bpmnElement="Event_03uyu5j">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0u19l99" bpmnElement="Event_1i472nu">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_0p0qzcv" bpmnElement="Flow_07oq9h7">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_05y3wcc" bpmnElement="Flow_08g8enx">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1qthzyy" bpmnElement="Flow_0z5u4sn">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0kaokj1">
<bpmndi:BPMNPlane id="BPMNPlane_1dgfflf" bpmnElement="Activity_061ox8j">
<bpmndi:BPMNShape id="BPMNShape_1ga5jk6" bpmnElement="Activity_0guct9r">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_01wi9u3" bpmnElement="Activity_1jo2037">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_149y22x" bpmnElement="Event_1imu0pe">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_01bphvr" bpmnElement="Event_0zajiwt">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_0udufcp" bpmnElement="Flow_11fn0lr">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_02co9i2" bpmnElement="Flow_0sm2rh7">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1u4m5ft" bpmnElement="Flow_0cvv61l">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0amgazu">
<bpmndi:BPMNPlane id="BPMNPlane_1sj29zv" bpmnElement="Activity_0mri2jx">
<bpmndi:BPMNShape id="BPMNShape_0pr4xz6" bpmnElement="Activity_0rt87eg">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1fsqqlr" bpmnElement="Activity_1ub65s1">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1gm6s90" bpmnElement="Event_13074tf">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0najecc" bpmnElement="Event_0i2ib72">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1l0pemu" bpmnElement="Flow_0qkicsk">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1vaxwvp" bpmnElement="Flow_0aklvo1">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1js1316" bpmnElement="Flow_1dsgcpt">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0ntwu5l">
<bpmndi:BPMNPlane id="BPMNPlane_1e65sw7" bpmnElement="Activity_1iub37x">
<bpmndi:BPMNShape id="BPMNShape_045ia25" bpmnElement="Activity_1w03qa5">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0n4dwm6" bpmnElement="Activity_0r0ne0d">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_12ieqex" bpmnElement="Event_0lr78ww">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1al6i63" bpmnElement="Event_1d2fe39">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1srjdyq" bpmnElement="Flow_18yxef7">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0pf51lh" bpmnElement="Flow_03sq5h8">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_08n1kzi" bpmnElement="Flow_0v8q6cy">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_1h3ssjx">
<bpmndi:BPMNPlane id="BPMNPlane_14qkkw0" bpmnElement="Activity_0t6des0">
<bpmndi:BPMNShape id="BPMNShape_19x6dhf" bpmnElement="Activity_0of2drj">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0dw93v1" bpmnElement="Activity_19by4n4">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1w9souf" bpmnElement="Event_1ww30b1">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_05ttgux" bpmnElement="Event_0y6csaw">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_15n1ee1" bpmnElement="Flow_1g42gb4">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0fhx4vh" bpmnElement="Flow_10cuenc">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1sd1bb8" bpmnElement="Flow_1ud2377">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_1rdqu4r">
<bpmndi:BPMNPlane id="BPMNPlane_12a9i49" bpmnElement="Activity_1xo0i79">
<bpmndi:BPMNShape id="BPMNShape_0wk2iq7" bpmnElement="Activity_1iwdq5b">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0wdvfoc" bpmnElement="Activity_1edccob">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0r24gvl" bpmnElement="Event_1kfb3ai">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0plia9x" bpmnElement="Event_1yb8git">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_03gj72t" bpmnElement="Flow_05ev1b4">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0hka0ny" bpmnElement="Flow_0fmygbl">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0q0xjmc" bpmnElement="Flow_0szbr0b">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_0dz6825">
<bpmndi:BPMNPlane id="BPMNPlane_1ur9x79" bpmnElement="Activity_0m0oxtm">
<bpmndi:BPMNShape id="BPMNShape_0o7nug8" bpmnElement="Activity_0cym9s1">
<dc:Bounds x="478" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0xulyln" bpmnElement="Activity_0u78g9c">
<dc:Bounds x="298" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0rrnoeh" bpmnElement="Event_071w0mk">
<dc:Bounds x="180" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0wo6xzw" bpmnElement="Event_1uwgi5i">
<dc:Bounds x="660" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_1t1w91a" bpmnElement="Flow_1miwr5q">
<di:waypoint x="398" y="200" />
<di:waypoint x="478" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1peo1js" bpmnElement="Flow_0pqh6ps">
<di:waypoint x="578" y="200" />
<di:waypoint x="660" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_14iqhv3" bpmnElement="Flow_0yvl9v1">
<di:waypoint x="216" y="200" />
<di:waypoint x="298" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>