<?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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" xmlns:color="http://www.omg.org/spec/BPMN/non-normative/color/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1vya1xk" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.11.1" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
  <bpmn:collaboration id="Collaboration_1or4c3u">
    <bpmn:participant id="Participant_07xe3o3" processRef="Process_0644jzd" />
  </bpmn:collaboration>
  <bpmn:process id="Process_0644jzd" isExecutable="true">
    <bpmn:serviceTask id="Activity_1yhgktx" name="Enviar Mail de bienvenida" camunda:type="external" camunda:topic="ProcessInstance:sendEmail">
      <bpmn:extensionElements>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="javascript">var attachDocuments = '{"link" : true,'
+ ' "range": "last", '
+ ' "module": "BP_OFFER_PV-OFFER-DOCUMENTS"}';

execution.setVariableLocal('mailTemplateCode', '12_EMAIL_INFORMACION_CONTACTO_ENDESA_1');
execution.setVariableLocal("from","ejemploMail@test-mail.wattwin.com");
execution.setVariableLocal("to", "nmiro@sii-e.com;owner");
execution.setVariableLocal("attachDocuments", attachDocuments);</camunda:script>
        </camunda:executionListener>
      </bpmn:extensionElements>
    </bpmn:serviceTask>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1or4c3u">
      <bpmndi:BPMNShape id="Participant_07xe3o3_di" bpmnElement="Participant_07xe3o3" isHorizontal="true">
        <dc:Bounds x="160" y="85" width="600" height="250" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1yhgktx_di" bpmnElement="Activity_1yhgktx" bioc:stroke="#1e88e5" bioc:fill="#bbdefb" color:background-color="#bbdefb" color:border-color="#1e88e5">
        <dc:Bounds x="410" y="170" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
