<?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_0wvt1i5" name="Generar Documento de Oferta" camunda:type="external" camunda:topic="ProcessInstance:generateDocument">
      <bpmn:extensionElements>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="javascript">var template;

template = "OFERTA_EMPRESA_TIEN21_PDF";

var document = '{"documentTemplateCode" : "'
 + template + '",'
 + ' "module": "BP_OFFER_PV-OFFER-DOCUMENTS"}';
 
execution.setVariableLocal("document", document);</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_0wvt1i5_di" bpmnElement="Activity_0wvt1i5" bioc:stroke="#8e24aa" bioc:fill="#e1bee7" color:background-color="#e1bee7" color:border-color="#8e24aa">
        <dc:Bounds x="410" y="170" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
