AnsweredAssumed Answered

Permissions Error with Parallel Gateway

Question asked by dhrobbins on Apr 13, 2017
Latest reply on Apr 14, 2017 by dhrobbins

I have a complex work flow where I have added a Parallel Gateway.  Prior adding the gateway it has functioned as expected.  Now that I have added the Parallel Gateway, the initiator cannot view the workflow details and receives this message when clicking the task link from "Workflows I've Started:

 

User originator does not have permission to access this task.

 

The odd thing is the workflow still allows assigned users access to their tasks.  Older versions of the workflow allow the originator to view the Workflow details and advance tasks.  Really puzzled about this one, and any insight would be great.  

What type of symptoms should I look for?  As I said, without the Parallel Gateway the workflow functions normally.

 

I've posted the code below.

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="lec" name="ECN/Process Change" isExecutable="true">
    <documentation>Saline lectronics</documentation>
    <startEvent id="start" activiti:initiator="initiatorUserName" activiti:formKey="lec:start"></startEvent>
    <sequenceFlow id="sequenceFlow1" sourceRef="start" targetRef="serviceTask1"></sequenceFlow>
    <serviceTask id="serviceTask1" name="Email from Originator" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many =['originator','GROUP_accounts'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
        <activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (execution.getVariable('lec_urgent') == true)
execution.setVariable('bpm_workflowDescription', 'Urgent: '+ bpm_workflowDescription);
else
execution.setVariable('bpm_workflowDescription', bpm_workflowDescription);]]></activiti:string>
          </activiti:field>
        </activiti:executionListener>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="sequenceFlow2" sourceRef="serviceTask1" targetRef="userTask1"></sequenceFlow>
    <userTask id="userTask1" name="Accounts Dept" activiti:candidateGroups="GROUP_accounts" activiti:formKey="lec:accountsdept">
      <documentation>Accounts Dept Manager Desc</documentation>
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_descriptionofchange') != undefined) execution.setVariable('lec_descriptionofchange', task.getVariableLocal('lec_descriptionofchange'));
if (typeof task.getVariableLocal('lec_amdcustapprovalrequired') != undefined) execution.setVariable('lec_amdcustapprovalrequired', task.getVariableLocal('lec_amdcustapprovalrequired'));
if (typeof task.getVariableLocal('lec_amdcustnotes') != undefined) execution.setVariable('lec_amdcustnotes', task.getVariableLocal('lec_amdcustnotes'));
if (typeof task.getVariableLocal('lec_custintlanddtorna') != undefined) execution.setVariable('lec_custintlanddtorna', task.getVariableLocal('lec_custintlanddtorna'));
if (typeof task.getVariableLocal('lec_amdnewfilestoeng') != undefined) execution.setVariable('lec_amdnewfilestoeng', task.getVariableLocal('lec_amdnewfilestoeng'));
if (typeof task.getVariableLocal('lec_amdfilesnotes') != undefined) execution.setVariable('lec_amdfilesnotes', task.getVariableLocal('lec_amdfilesnotes'));
if (typeof task.getVariableLocal('lec_filesintlanddtorna') != undefined) execution.setVariable('lec_filesintlanddtorna', task.getVariableLocal('lec_filesintlanddtorna'));

execution.setVariable('lec_reworkinstructions', '');]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sequenceFlow3" sourceRef="userTask1" targetRef="serviceTask2"></sequenceFlow>
    <serviceTask id="serviceTask2" name="Accounts Dept Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many = ['GROUP_engineer'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  Previous step was Accounts.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="sequenceFlow4" sourceRef="serviceTask2" targetRef="userTask2"></sequenceFlow>
    <userTask id="userTask2" name="Engineering Dept" activiti:candidateGroups="GROUP_engineer" activiti:formKey="lec:engineeringdept">
      <documentation>Engineering Dept Manager Desc</documentation>
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}

execution.setVariable('lec_sendforrework', false);
task.setVariableLocal('lec_sendforrework', false);]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_officialcustomerdocuments') != undefined) execution.setVariable('lec_officialcustomerdocuments', task.getVariableLocal('lec_officialcustomerdocuments'));
if (typeof task.getVariableLocal('lec_descriptionofchange') != undefined) execution.setVariable('lec_descriptionofchange', task.getVariableLocal('lec_descriptionofchange'));
if (typeof task.getVariableLocal('lec_oeiseffectted') != undefined) execution.setVariable('lec_oeiseffectted', task.getVariableLocal('lec_oeiseffectted'));

if (typeof task.getVariableLocal('lec_engfirsttimebuildeng') != undefined) execution.setVariable('lec_engfirsttimebuildeng', task.getVariableLocal('lec_engfirsttimebuildeng'));
if (typeof task.getVariableLocal('lec_engfirsttimebuildnotes') != undefined) execution.setVariable('lec_engfirsttimebuildnotes', task.getVariableLocal('lec_engfirsttimebuildnotes'));
if (typeof task.getVariableLocal('lec_engbuildintlanddtorna') != undefined) execution.setVariable('lec_engbuildintlanddtorna', task.getVariableLocal('lec_engbuildintlanddtorna'));
if (typeof task.getVariableLocal('lec_engprocessvalidationreqd') != undefined) execution.setVariable('lec_engprocessvalidationreqd', task.getVariableLocal('lec_engprocessvalidationreqd'));
if (typeof task.getVariableLocal('lec_engvalnotes') != undefined) execution.setVariable('lec_engvalnotes', task.getVariableLocal('lec_engvalnotes'));
if (typeof task.getVariableLocal('lec_valintlanddtorna') != undefined) execution.setVariable('lec_valintlanddtorna', task.getVariableLocal('lec_valintlanddtorna'));
if (typeof task.getVariableLocal('lec_engassemblydrawingchanges') != undefined) execution.setVariable('lec_engassemblydrawingchanges', task.getVariableLocal('lec_engassemblydrawingchanges'));
if (typeof task.getVariableLocal('lec_engassemblynotes') != undefined) execution.setVariable('lec_engassemblynotes', task.getVariableLocal('lec_engassemblynotes'));
if (typeof task.getVariableLocal('lec_assemblyintlanddtorna') != undefined) execution.setVariable('lec_assemblyintlanddtorna', task.getVariableLocal('lec_assemblyintlanddtorna'));
if (typeof task.getVariableLocal('lec_engbomchanges') != undefined) execution.setVariable('lec_engbomchanges', task.getVariableLocal('lec_engbomchanges'));
if (typeof task.getVariableLocal('lec_engbomnotes') != undefined) execution.setVariable('lec_engbomnotes', task.getVariableLocal('lec_engbomnotes'));
if (typeof task.getVariableLocal('lec_bomintlanddtorna') != undefined) execution.setVariable('lec_bomintlanddtorna', task.getVariableLocal('lec_bomintlanddtorna'));
if (typeof task.getVariableLocal('lec_engnewpcb') != undefined) execution.setVariable('lec_engnewpcb', task.getVariableLocal('lec_engnewpcb'));
if (typeof task.getVariableLocal('lec_engpcbnotes') != undefined) execution.setVariable('lec_engpcbnotes', task.getVariableLocal('lec_engpcbnotes'));
if (typeof task.getVariableLocal('lec_pcbintlanddtorna') != undefined) execution.setVariable('lec_pcbintlanddtorna', task.getVariableLocal('lec_pcbintlanddtorna'));
if (typeof task.getVariableLocal('lec_engnewstencils') != undefined) execution.setVariable('lec_engnewstencils', task.getVariableLocal('lec_engnewstencils'));
if (typeof task.getVariableLocal('lec_engstencilsnotes') != undefined) execution.setVariable('lec_engstencilsnotes', task.getVariableLocal('lec_engstencilsnotes'));
if (typeof task.getVariableLocal('lec_stencilsintlanddtorna') != undefined) execution.setVariable('lec_stencilsintlanddtorna', task.getVariableLocal('lec_stencilsintlanddtorna'));
if (typeof task.getVariableLocal('lec_engprepchanges') != undefined) execution.setVariable('lec_engprepchanges', task.getVariableLocal('lec_engprepchanges'));
if (typeof task.getVariableLocal('lec_engprepnotes') != undefined) execution.setVariable('lec_engprepnotes', task.getVariableLocal('lec_engprepnotes'));
if (typeof task.getVariableLocal('lec_prepintlanddtorna') != undefined) execution.setVariable('lec_prepintlanddtorna', task.getVariableLocal('lec_prepintlanddtorna'));
if (typeof task.getVariableLocal('lec_engvisualchanges') != undefined) execution.setVariable('lec_engvisualchanges', task.getVariableLocal('lec_engvisualchanges'));
if (typeof task.getVariableLocal('lec_engvisualnotes') != undefined) execution.setVariable('lec_engvisualnotes', task.getVariableLocal('lec_engvisualnotes'));
if (typeof task.getVariableLocal('lec_visualintlanddtorna') != undefined) execution.setVariable('lec_visualintlanddtorna', task.getVariableLocal('lec_visualintlanddtorna'));
if (typeof task.getVariableLocal('lec_engtoolingchanges') != undefined) execution.setVariable('lec_engtoolingchanges', task.getVariableLocal('lec_engtoolingchanges'));
if (typeof task.getVariableLocal('lec_engtoolingnotes') != undefined) execution.setVariable('lec_engtoolingnotes', task.getVariableLocal('lec_engtoolingnotes'));
if (typeof task.getVariableLocal('lec_toolingintlanddtorna') != undefined) execution.setVariable('lec_toolingintlanddtorna', task.getVariableLocal('lec_toolingintlanddtorna'));
if (typeof task.getVariableLocal('lec_engassemblytime') != undefined) execution.setVariable('lec_engassemblytime', task.getVariableLocal('lec_engassemblytime'));
if (typeof task.getVariableLocal('lec_engasmbltimenotes') != undefined) execution.setVariable('lec_engasmbltimenotes', task.getVariableLocal('lec_engasmbltimenotes'));
if (typeof task.getVariableLocal('lec_asmbtimeintlanddtorna') != undefined) execution.setVariable('lec_asmbtimeintlanddtorna', task.getVariableLocal('lec_asmbtimeintlanddtorna'));

logger.log(task.getVariableLocal('lec_sendforrework'));
var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sequenceFlow5" sourceRef="userTask2" targetRef="exclusivegateway1"></sequenceFlow>
    <serviceTask id="serviceTask3" name="Engineering Dept Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many = ['GROUP_documentControl'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <userTask id="userTask3" name="Document Control Dept" activiti:candidateGroups="GROUP_documentControl" activiti:formKey="lec:documentcontroldept">
      <documentation>Document Control Description</documentation>
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}

execution.setVariable('lec_sendforrework', false);
task.setVariableLocal('lec_sendforrework', false);]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_testrevimpact') != undefined) execution.setVariable('lec_testrevimpact', task.getVariableLocal('lec_testrevimpact'));
if (typeof task.getVariableLocal('lec_testrevnotes') != undefined) execution.setVariable('lec_testrevnotes', task.getVariableLocal('lec_testrevnotes'));
if (typeof task.getVariableLocal('lec_revintlanddtorna') != undefined) execution.setVariable('lec_revintlanddtorna', task.getVariableLocal('lec_revintlanddtorna'));
if (typeof task.getVariableLocal('lec_testnrecharges') != undefined) execution.setVariable('lec_testnrecharges', task.getVariableLocal('lec_testnrecharges'));
if (typeof task.getVariableLocal('lec_testnrenotes') != undefined) execution.setVariable('lec_testnrenotes', task.getVariableLocal('lec_testnrenotes'));
if (typeof task.getVariableLocal('lec_nreintlanddtorna') != undefined) execution.setVariable('lec_nreintlanddtorna', task.getVariableLocal('lec_nreintlanddtorna'));
if (typeof task.getVariableLocal('lec_testintorextchipprg') != undefined) execution.setVariable('lec_testintorextchipprg', task.getVariableLocal('lec_testintorextchipprg'));
if (typeof task.getVariableLocal('lec_testintorextnotes') != undefined) execution.setVariable('lec_testintorextnotes', task.getVariableLocal('lec_testintorextnotes'));
if (typeof task.getVariableLocal('lec_intorextintlanddtorna') != undefined) execution.setVariable('lec_intorextintlanddtorna', task.getVariableLocal('lec_intorextintlanddtorna'));
if (typeof task.getVariableLocal('lec_testlaborordurchange') != undefined) execution.setVariable('lec_testlaborordurchange', task.getVariableLocal('lec_testlaborordurchange'));
if (typeof task.getVariableLocal('lec_testlaborordurnotes') != undefined) execution.setVariable('lec_testlaborordurnotes', task.getVariableLocal('lec_testlaborordurnotes'));
if (typeof task.getVariableLocal('lec_lbrordurintlanddtorna') != undefined) execution.setVariable('lec_lbrordurintlanddtorna', task.getVariableLocal('lec_lbrordurintlanddtorna'));
if (typeof task.getVariableLocal('lec_docm2mchanges') != undefined) execution.setVariable('lec_docm2mchanges', task.getVariableLocal('lec_docm2mchanges'));
if (typeof task.getVariableLocal('lec_docm2mnotes') != undefined) execution.setVariable('lec_docm2mnotes', task.getVariableLocal('lec_docm2mnotes'));
if (typeof task.getVariableLocal('lec_m2mintlanddtorna') != undefined) execution.setVariable('lec_m2mintlanddtorna', task.getVariableLocal('lec_m2mintlanddtorna'));
if (typeof task.getVariableLocal('lec_docbom') != undefined) execution.setVariable('lec_docbom', task.getVariableLocal('lec_docbom'));
if (typeof task.getVariableLocal('lec_docbomnotes') != undefined) execution.setVariable('lec_docbomnotes', task.getVariableLocal('lec_docbomnotes'));
if (typeof task.getVariableLocal('lec_docbomintldtorna') != undefined) execution.setVariable('lec_docbomintldtorna', task.getVariableLocal('lec_docbomintldtorna'));
if (typeof task.getVariableLocal('lec_docrouter') != undefined) execution.setVariable('lec_docrouter', task.getVariableLocal('lec_docrouter'));
if (typeof task.getVariableLocal('lec_docrouternotes') != undefined) execution.setVariable('lec_docrouternotes', task.getVariableLocal('lec_docrouternotes'));
if (typeof task.getVariableLocal('lec_routerintlanddtorna') != undefined) execution.setVariable('lec_routerintlanddtorna', task.getVariableLocal('lec_routerintlanddtorna'));
if (typeof task.getVariableLocal('lec_docfilesoremailssaved') != undefined) execution.setVariable('lec_docfilesoremailssaved', task.getVariableLocal('lec_docfilesoremailssaved'));
if (typeof task.getVariableLocal('lec_docfilesnotes') != undefined) execution.setVariable('lec_docfilesnotes', task.getVariableLocal('lec_docfilesnotes'));
if (typeof task.getVariableLocal('lec_docfilesintlanddtorna') != undefined) execution.setVariable('lec_docfilesintlanddtorna', task.getVariableLocal('lec_docfilesintlanddtorna'));
if (typeof task.getVariableLocal('lec_docprerelactions') != undefined) execution.setVariable('lec_docprerelactions', task.getVariableLocal('lec_docprerelactions'));
if (typeof task.getVariableLocal('lec_docrelnotes') != undefined) execution.setVariable('lec_docrelnotes', task.getVariableLocal('lec_docrelnotes'));
if (typeof task.getVariableLocal('lec_relintlanddtorna') != undefined) execution.setVariable('lec_relintlanddtorna', task.getVariableLocal('lec_relintlanddtorna'));
if (typeof task.getVariableLocal('lec_docmovedecnform') != undefined) execution.setVariable('lec_docmovedecnform', task.getVariableLocal('lec_docmovedecnform'));
if (typeof task.getVariableLocal('lec_docmovednotes') != undefined) execution.setVariable('lec_docmovednotes', task.getVariableLocal('lec_docmovednotes'));
if (typeof task.getVariableLocal('lec_docmovedinitlanddtorna') != undefined) execution.setVariable('lec_docmovedinitlanddtorna', task.getVariableLocal('lec_docmovedinitlanddtorna'));
if (typeof task.getVariableLocal('lec_docworkinstructionsupdated') != undefined) execution.setVariable('lec_docworkinstructionsupdated', task.getVariableLocal('lec_docworkinstructionsupdated'));
if (typeof task.getVariableLocal('lec_docworknotes') != undefined) execution.setVariable('lec_docworknotes', task.getVariableLocal('lec_docworknotes'));
if (typeof task.getVariableLocal('lec_docworkintlanddateorna') != undefined) execution.setVariable('lec_docworkintlanddateorna', task.getVariableLocal('lec_docworkintlanddateorna'));
if (typeof task.getVariableLocal('lec_docsmtprogramsupdated') != undefined) execution.setVariable('lec_docsmtprogramsupdated', task.getVariableLocal('lec_docsmtprogramsupdated'));
if (typeof task.getVariableLocal('lec_docsmtnotes') != undefined) execution.setVariable('lec_docsmtnotes', task.getVariableLocal('lec_docsmtnotes'));
if (typeof task.getVariableLocal('lec_docsmtintlanddateorna') != undefined) execution.setVariable('lec_docsmtintlanddateorna', task.getVariableLocal('lec_docsmtintlanddateorna'));
if (typeof task.getVariableLocal('lec_docaoiprogramsupdated') != undefined) execution.setVariable('lec_docaoiprogramsupdated', task.getVariableLocal('lec_docaoiprogramsupdated'));
if (typeof task.getVariableLocal('lec_docaoinotes') != undefined) execution.setVariable('lec_docaoinotes', task.getVariableLocal('lec_docaoinotes'));
if (typeof task.getVariableLocal('lec_docaoiintlanddateorna') != undefined) execution.setVariable('lec_docaoiintlanddateorna', task.getVariableLocal('lec_docaoiintlanddateorna'));
if (typeof task.getVariableLocal('lec_docprocessvalidationsheets') != undefined) execution.setVariable('lec_docprocessvalidationsheets', task.getVariableLocal('lec_docprocessvalidationsheets'));
if (typeof task.getVariableLocal('lec_docprocessnotes') != undefined) execution.setVariable('lec_docprocessnotes', task.getVariableLocal('lec_docprocessnotes'));
if (typeof task.getVariableLocal('lec_processintlanddateorna') != undefined) execution.setVariable('lec_processintlanddateorna', task.getVariableLocal('lec_processintlanddateorna'));
if (typeof task.getVariableLocal('lec_doccogiscan') != undefined) execution.setVariable('lec_doccogiscan', task.getVariableLocal('lec_doccogiscan'));
if (typeof task.getVariableLocal('lec_doccogiscannotes') != undefined) execution.setVariable('lec_doccogiscannotes', task.getVariableLocal('lec_doccogiscannotes'));
if (typeof task.getVariableLocal('lec_cogiscanintlanddateorna') != undefined) execution.setVariable('lec_cogiscanintlanddateorna', task.getVariableLocal('lec_cogiscanintlanddateorna'));
if (typeof task.getVariableLocal('lec_smtprogramsupdated') != undefined) execution.setVariable('lec_smtprogramsupdated', task.getVariableLocal('lec_smtprogramsupdated'));
if (typeof task.getVariableLocal('lec_smtnotes') != undefined) execution.setVariable('lec_smtnotes', task.getVariableLocal('lec_smtnotes'));
if (typeof task.getVariableLocal('lec_smtintlanddateorna') != undefined) execution.setVariable('lec_smtintlanddateorna', task.getVariableLocal('lec_smtintlanddateorna'));
if (typeof task.getVariableLocal('lec_smtaoiprogramsupdated') != undefined) execution.setVariable('lec_smtaoiprogramsupdated', task.getVariableLocal('lec_smtaoiprogramsupdated'));
if (typeof task.getVariableLocal('lec_smtaoinotes') != undefined) execution.setVariable('lec_smtaoinotes', task.getVariableLocal('lec_smtaoinotes'));
if (typeof task.getVariableLocal('lec_smtaoiintlanddateorna') != undefined) execution.setVariable('lec_smtaoiintlanddateorna', task.getVariableLocal('lec_smtaoiintlanddateorna'));
if (typeof task.getVariableLocal('lec_modaxialprogramsupdated') != undefined) execution.setVariable('lec_modaxialprogramsupdated', task.getVariableLocal('lec_modaxialprogramsupdated'));
if (typeof task.getVariableLocal('lec_modaxielnotes') != undefined) execution.setVariable('lec_modaxielnotes', task.getVariableLocal('lec_modaxielnotes'));
if (typeof task.getVariableLocal('lec_axielintlanddateorna') != undefined) execution.setVariable('lec_axielintlanddateorna', task.getVariableLocal('lec_axielintlanddateorna'));
if (typeof task.getVariableLocal('lec_modssmprogramsupdated') != undefined) execution.setVariable('lec_modssmprogramsupdated', task.getVariableLocal('lec_modssmprogramsupdated'));
if (typeof task.getVariableLocal('lec_modssmnotes') != undefined) execution.setVariable('lec_modssmnotes', task.getVariableLocal('lec_modssmnotes'));
if (typeof task.getVariableLocal('lec_ssmintlanddateorna') != undefined) execution.setVariable('lec_ssmintlanddateorna', task.getVariableLocal('lec_ssmintlanddateorna'));
if (typeof task.getVariableLocal('lec_modrsmprogramsupdated') != undefined) execution.setVariable('lec_modrsmprogramsupdated', task.getVariableLocal('lec_modrsmprogramsupdated'));
if (typeof task.getVariableLocal('lec_modrsmnotes') != undefined) execution.setVariable('lec_modrsmnotes', task.getVariableLocal('lec_modrsmnotes'));
if (typeof task.getVariableLocal('lec_rsmintlanddateorna') != undefined) execution.setVariable('lec_rsmintlanddateorna', task.getVariableLocal('lec_rsmintlanddateorna'));
if (typeof task.getVariableLocal('lec_modwaveprogramsupdated') != undefined) execution.setVariable('lec_modwaveprogramsupdated', task.getVariableLocal('lec_modwaveprogramsupdated'));
if (typeof task.getVariableLocal('lec_modwavenotes') != undefined) execution.setVariable('lec_modwavenotes', task.getVariableLocal('lec_modwavenotes'));
if (typeof task.getVariableLocal('lec_waveintlanddateorna') != undefined) execution.setVariable('lec_waveintlanddateorna', task.getVariableLocal('lec_waveintlanddateorna'));
if (typeof task.getVariableLocal('lec_modccprogramsupdated') != undefined) execution.setVariable('lec_modccprogramsupdated', task.getVariableLocal('lec_modccprogramsupdated'));
if (typeof task.getVariableLocal('lec_modccnotes') != undefined) execution.setVariable('lec_modccnotes', task.getVariableLocal('lec_modccnotes'));
if (typeof task.getVariableLocal('lec_ccintlanddateorna') != undefined) execution.setVariable('lec_ccintlanddateorna', task.getVariableLocal('lec_ccintlanddateorna'));
if (typeof task.getVariableLocal('lec_hsdaoiprogramsupdated') != undefined) execution.setVariable('lec_hsdaoiprogramsupdated', task.getVariableLocal('lec_hsdaoiprogramsupdated'));
if (typeof task.getVariableLocal('lec_hsdaoinotes') != undefined) execution.setVariable('lec_hsdaoinotes', task.getVariableLocal('lec_hsdaoinotes'));
if (typeof task.getVariableLocal('lec_aoiintlanddateorna') != undefined) execution.setVariable('lec_aoiintlanddateorna', task.getVariableLocal('lec_aoiintlanddateorna'));
if (typeof task.getVariableLocal('lec_hsdrouterprgmsupdated') != undefined) execution.setVariable('lec_hsdrouterprgmsupdated', task.getVariableLocal('lec_hsdrouterprgmsupdated'));
if (typeof task.getVariableLocal('lec_hsdrouternotes') != undefined) execution.setVariable('lec_hsdrouternotes', task.getVariableLocal('lec_hsdrouternotes'));
if (typeof task.getVariableLocal('lec_routerintlanddateorna') != undefined) execution.setVariable('lec_routerintlanddateorna', task.getVariableLocal('lec_routerintlanddateorna'));
if (typeof task.getVariableLocal('lec_testprocorprgupdated') != undefined) execution.setVariable('lec_testprocorprgupdated', task.getVariableLocal('lec_testprocorprgupdated'));
if (typeof task.getVariableLocal('lec_testprocorprgmsnotes') != undefined) execution.setVariable('lec_testprocorprgmsnotes', task.getVariableLocal('lec_testprocorprgmsnotes'));
if (typeof task.getVariableLocal('lec_procprgintlanddateorna') != undefined) execution.setVariable('lec_procprgintlanddateorna', task.getVariableLocal('lec_procprgintlanddateorna'));
if (typeof task.getVariableLocal('lec_testevaltimestds') != undefined) execution.setVariable('lec_testevaltimestds', task.getVariableLocal('lec_testevaltimestds'));
if (typeof task.getVariableLocal('lec_testevalnotes') != undefined) execution.setVariable('lec_testevalnotes', task.getVariableLocal('lec_testevalnotes'));
if (typeof task.getVariableLocal('lec_evalintlanddateorna') != undefined) execution.setVariable('lec_evalintlanddateorna', task.getVariableLocal('lec_evalintlanddateorna'));
if (typeof task.getVariableLocal('lec_qadfinalqaverification') != undefined) execution.setVariable('lec_qadfinalqaverification', task.getVariableLocal('lec_qadfinalqaverification'));
if (typeof task.getVariableLocal('lec_qadqanotes') != undefined) execution.setVariable('lec_qadqanotes', task.getVariableLocal('lec_qadqanotes'));
if (typeof task.getVariableLocal('lec_qavernintlanddateorna') != undefined) execution.setVariable('lec_qavernintlanddateorna', task.getVariableLocal('lec_qavernintlanddateorna'));
if (typeof task.getVariableLocal('lec_stkattachedtotravelers') != undefined) execution.setVariable('lec_stkattachedtotravelers', task.getVariableLocal('lec_stkattachedtotravelers'));
if (typeof task.getVariableLocal('lec_stktravelernotes') != undefined) execution.setVariable('lec_stktravelernotes', task.getVariableLocal('lec_stktravelernotes'));
if (typeof task.getVariableLocal('lec_travelerintlanddateorna') != undefined) execution.setVariable('lec_travelerintlanddateorna', task.getVariableLocal('lec_travelerintlanddateorna'));
if (typeof task.getVariableLocal('lec_stkmtrlorwippurgereqd') != undefined) execution.setVariable('lec_stkmtrlorwippurgereqd', task.getVariableLocal('lec_stkmtrlorwippurgereqd'));
if (typeof task.getVariableLocal('lec_stkmaterialnotes') != undefined) execution.setVariable('lec_stkmaterialnotes', task.getVariableLocal('lec_stkmaterialnotes'));
if (typeof task.getVariableLocal('lec_materialintlanddateorna') != undefined) execution.setVariable('lec_materialintlanddateorna', task.getVariableLocal('lec_materialintlanddateorna'));
if (typeof task.getVariableLocal('lec_stkorphanpartspulled') != undefined) execution.setVariable('lec_stkorphanpartspulled', task.getVariableLocal('lec_stkorphanpartspulled'));
if (typeof task.getVariableLocal('lec_stkorphanpartsnotes') != undefined) execution.setVariable('lec_stkorphanpartsnotes', task.getVariableLocal('lec_stkorphanpartsnotes'));
if (typeof task.getVariableLocal('lec_orphanintlanddateorna') != undefined) execution.setVariable('lec_orphanintlanddateorna', task.getVariableLocal('lec_orphanintlanddateorna'));
if (typeof task.getVariableLocal('lec_shporstkredecnscanned') != undefined) execution.setVariable('lec_shporstkredecnscanned', task.getVariableLocal('lec_shporstkredecnscanned'));
if (typeof task.getVariableLocal('lec_shporstkscannednotes') != undefined) execution.setVariable('lec_shporstkscannednotes', task.getVariableLocal('lec_shporstkscannednotes'));
if (typeof task.getVariableLocal('lec_shporstkintlanddateorna') != undefined) execution.setVariable('lec_shporstkintlanddateorna', task.getVariableLocal('lec_shporstkintlanddateorna'));

logger.log(task.getVariableLocal('lec_sendforrework'));
execution.setVariable('lec_sendforrework', task.getVariableLocal('lec_sendforrework'));
execution.setVariable('lec_docprerelactions', task.getVariableLocal('lec_docprerelactions'));

var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sequenceFlow7" sourceRef="userTask3" targetRef="exclusivegateway9"></sequenceFlow>
    <serviceTask id="serviceTask4" name="Document Control Dept Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many = ['GROUP_quality'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  Previous step was Document Control.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <userTask id="userTask9" name="Originator Assign" activiti:assignee="${initiator.properties.userName}" activiti:formKey="lec:originatorassign">
      <documentation>Initiator Assign Description</documentation>
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;;]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_selectreviewers') != undefined) execution.setVariable('lec_selectreviewers', task.getVariableLocal('lec_selectreviewers'));

var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sequenceFlow19" sourceRef="userTask9" targetRef="exclusivegateway8"></sequenceFlow>
    <serviceTask id="serviceTask10" name="Originator Assign Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many=['GROUP_accountManager','GROUP_qualityManager','GROUP_manufacturingManager','GROUP_engineerManager'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your approval.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="sequenceFlow20" sourceRef="serviceTask10" targetRef="serviceTask11"></sequenceFlow>
    <serviceTask id="serviceTask11" name="Review initialization" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[execution.setVariable('lec_appoversreviewapprovalcount', 0);
execution.setVariable('lec_appoversreviewrequiredapprovalcount', 4);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <exclusiveGateway id="exclusiveGateway1"></exclusiveGateway>
    <sequenceFlow id="sequenceFlow23" name="Rejected" sourceRef="exclusiveGateway1" targetRef="userTask9">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${lec_appoversreviewtransitions == 'Rejected'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sequenceFlow24" name="Approved" sourceRef="exclusiveGateway1" targetRef="exclusiveGateway2"></sequenceFlow>
    <exclusiveGateway id="exclusiveGateway2"></exclusiveGateway>
    <serviceTask id="serviceTask12" name="Approvers Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many =['config_originator','GROUP_Originator'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <endEvent id="end"></endEvent>
    <sequenceFlow id="sequenceFlow26" sourceRef="serviceTask12" targetRef="exclusivegateway10"></sequenceFlow>
    <userTask id="usertask1" name="Testing Dept" activiti:candidateGroups="GROUP_testing" activiti:formKey="lec:testingdept">
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}

execution.setVariable('lec_sendforrework', false);
task.setVariableLocal('lec_sendforrework', false);]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_testrevimpact') != undefined) execution.setVariable('lec_testrevimpact', task.getVariableLocal('lec_testrevimpact'));
if (typeof task.getVariableLocal('lec_testrevnotes') != undefined) execution.setVariable('lec_testrevnotes', task.getVariableLocal('lec_testrevnotes'));
if (typeof task.getVariableLocal('lec_revintlanddtorna') != undefined) execution.setVariable('lec_revintlanddtorna', task.getVariableLocal('lec_revintlanddtorna'));
if (typeof task.getVariableLocal('lec_testnrecharges') != undefined) execution.setVariable('lec_testnrecharges', task.getVariableLocal('lec_testnrecharges'));
if (typeof task.getVariableLocal('lec_testnrenotes') != undefined) execution.setVariable('lec_testnrenotes', task.getVariableLocal('lec_testnrenotes'));
if (typeof task.getVariableLocal('lec_nreintlanddtorna') != undefined) execution.setVariable('lec_nreintlanddtorna', task.getVariableLocal('lec_nreintlanddtorna'));
if (typeof task.getVariableLocal('lec_testintorextchipprg') != undefined) execution.setVariable('lec_testintorextchipprg', task.getVariableLocal('lec_testintorextchipprg'));
if (typeof task.getVariableLocal('lec_testintorextnotes') != undefined) execution.setVariable('lec_testintorextnotes', task.getVariableLocal('lec_testintorextnotes'));
if (typeof task.getVariableLocal('lec_intorextintlanddtorna') != undefined) execution.setVariable('lec_intorextintlanddtorna', task.getVariableLocal('lec_intorextintlanddtorna'));
if (typeof task.getVariableLocal('lec_testlaborordurchange') != undefined) execution.setVariable('lec_testlaborordurchange', task.getVariableLocal('lec_testlaborordurchange'));
if (typeof task.getVariableLocal('lec_testlaborordurnotes') != undefined) execution.setVariable('lec_testlaborordurnotes', task.getVariableLocal('lec_testlaborordurnotes'));
if (typeof task.getVariableLocal('lec_lbrordurintlanddtorna') != undefined) execution.setVariable('lec_lbrordurintlanddtorna', task.getVariableLocal('lec_lbrordurintlanddtorna'));
if (typeof task.getVariableLocal('lec_docm2mchanges') != undefined) execution.setVariable('lec_docm2mchanges', task.getVariableLocal('lec_docm2mchanges'));
if (typeof task.getVariableLocal('lec_docm2mnotes') != undefined) execution.setVariable('lec_docm2mnotes', task.getVariableLocal('lec_docm2mnotes'));
if (typeof task.getVariableLocal('lec_m2mintlanddtorna') != undefined) execution.setVariable('lec_m2mintlanddtorna', task.getVariableLocal('lec_m2mintlanddtorna'));
if (typeof task.getVariableLocal('lec_docbom') != undefined) execution.setVariable('lec_docbom', task.getVariableLocal('lec_docbom'));
if (typeof task.getVariableLocal('lec_docbomnotes') != undefined) execution.setVariable('lec_docbomnotes', task.getVariableLocal('lec_docbomnotes'));
if (typeof task.getVariableLocal('lec_docbomintldtorna') != undefined) execution.setVariable('lec_docbomintldtorna', task.getVariableLocal('lec_docbomintldtorna'));
if (typeof task.getVariableLocal('lec_docrouter') != undefined) execution.setVariable('lec_docrouter', task.getVariableLocal('lec_docrouter'));
if (typeof task.getVariableLocal('lec_docrouternotes') != undefined) execution.setVariable('lec_docrouternotes', task.getVariableLocal('lec_docrouternotes'));
if (typeof task.getVariableLocal('lec_routerintlanddtorna') != undefined) execution.setVariable('lec_routerintlanddtorna', task.getVariableLocal('lec_routerintlanddtorna'));
if (typeof task.getVariableLocal('lec_docfilesoremailssaved') != undefined) execution.setVariable('lec_docfilesoremailssaved', task.getVariableLocal('lec_docfilesoremailssaved'));
if (typeof task.getVariableLocal('lec_docfilesnotes') != undefined) execution.setVariable('lec_docfilesnotes', task.getVariableLocal('lec_docfilesnotes'));
if (typeof task.getVariableLocal('lec_docfilesintlanddtorna') != undefined) execution.setVariable('lec_docfilesintlanddtorna', task.getVariableLocal('lec_docfilesintlanddtorna'));
if (typeof task.getVariableLocal('lec_docprerelactions') != undefined) execution.setVariable('lec_docprerelactions', task.getVariableLocal('lec_docprerelactions'));
if (typeof task.getVariableLocal('lec_docrelnotes') != undefined) execution.setVariable('lec_docrelnotes', task.getVariableLocal('lec_docrelnotes'));
if (typeof task.getVariableLocal('lec_relintlanddtorna') != undefined) execution.setVariable('lec_relintlanddtorna', task.getVariableLocal('lec_relintlanddtorna'));
if (typeof task.getVariableLocal('lec_docmovedecnform') != undefined) execution.setVariable('lec_docmovedecnform', task.getVariableLocal('lec_docmovedecnform'));
if (typeof task.getVariableLocal('lec_docmovednotes') != undefined) execution.setVariable('lec_docmovednotes', task.getVariableLocal('lec_docmovednotes'));
if (typeof task.getVariableLocal('lec_docmovedinitlanddtorna') != undefined) execution.setVariable('lec_docmovedinitlanddtorna', task.getVariableLocal('lec_docmovedinitlanddtorna'));
if (typeof task.getVariableLocal('lec_docworkinstructionsupdated') != undefined) execution.setVariable('lec_docworkinstructionsupdated', task.getVariableLocal('lec_docworkinstructionsupdated'));
if (typeof task.getVariableLocal('lec_docworknotes') != undefined) execution.setVariable('lec_docworknotes', task.getVariableLocal('lec_docworknotes'));
if (typeof task.getVariableLocal('lec_docworkintlanddateorna') != undefined) execution.setVariable('lec_docworkintlanddateorna', task.getVariableLocal('lec_docworkintlanddateorna'));
if (typeof task.getVariableLocal('lec_docsmtprogramsupdated') != undefined) execution.setVariable('lec_docsmtprogramsupdated', task.getVariableLocal('lec_docsmtprogramsupdated'));
if (typeof task.getVariableLocal('lec_docsmtnotes') != undefined) execution.setVariable('lec_docsmtnotes', task.getVariableLocal('lec_docsmtnotes'));
if (typeof task.getVariableLocal('lec_docsmtintlanddateorna') != undefined) execution.setVariable('lec_docsmtintlanddateorna', task.getVariableLocal('lec_docsmtintlanddateorna'));
if (typeof task.getVariableLocal('lec_docaoiprogramsupdated') != undefined) execution.setVariable('lec_docaoiprogramsupdated', task.getVariableLocal('lec_docaoiprogramsupdated'));
if (typeof task.getVariableLocal('lec_docaoinotes') != undefined) execution.setVariable('lec_docaoinotes', task.getVariableLocal('lec_docaoinotes'));
if (typeof task.getVariableLocal('lec_docaoiintlanddateorna') != undefined) execution.setVariable('lec_docaoiintlanddateorna', task.getVariableLocal('lec_docaoiintlanddateorna'));
if (typeof task.getVariableLocal('lec_docprocessvalidationsheets') != undefined) execution.setVariable('lec_docprocessvalidationsheets', task.getVariableLocal('lec_docprocessvalidationsheets'));
if (typeof task.getVariableLocal('lec_docprocessnotes') != undefined) execution.setVariable('lec_docprocessnotes', task.getVariableLocal('lec_docprocessnotes'));
if (typeof task.getVariableLocal('lec_processintlanddateorna') != undefined) execution.setVariable('lec_processintlanddateorna', task.getVariableLocal('lec_processintlanddateorna'));
if (typeof task.getVariableLocal('lec_doccogiscan') != undefined) execution.setVariable('lec_doccogiscan', task.getVariableLocal('lec_doccogiscan'));
if (typeof task.getVariableLocal('lec_doccogiscannotes') != undefined) execution.setVariable('lec_doccogiscannotes', task.getVariableLocal('lec_doccogiscannotes'));
if (typeof task.getVariableLocal('lec_cogiscanintlanddateorna') != undefined) execution.setVariable('lec_cogiscanintlanddateorna', task.getVariableLocal('lec_cogiscanintlanddateorna'));
if (typeof task.getVariableLocal('lec_smtprogramsupdated') != undefined) execution.setVariable('lec_smtprogramsupdated', task.getVariableLocal('lec_smtprogramsupdated'));
if (typeof task.getVariableLocal('lec_smtnotes') != undefined) execution.setVariable('lec_smtnotes', task.getVariableLocal('lec_smtnotes'));
if (typeof task.getVariableLocal('lec_smtintlanddateorna') != undefined) execution.setVariable('lec_smtintlanddateorna', task.getVariableLocal('lec_smtintlanddateorna'));
if (typeof task.getVariableLocal('lec_smtaoiprogramsupdated') != undefined) execution.setVariable('lec_smtaoiprogramsupdated', task.getVariableLocal('lec_smtaoiprogramsupdated'));
if (typeof task.getVariableLocal('lec_smtaoinotes') != undefined) execution.setVariable('lec_smtaoinotes', task.getVariableLocal('lec_smtaoinotes'));
if (typeof task.getVariableLocal('lec_smtaoiintlanddateorna') != undefined) execution.setVariable('lec_smtaoiintlanddateorna', task.getVariableLocal('lec_smtaoiintlanddateorna'));
if (typeof task.getVariableLocal('lec_modaxialprogramsupdated') != undefined) execution.setVariable('lec_modaxialprogramsupdated', task.getVariableLocal('lec_modaxialprogramsupdated'));
if (typeof task.getVariableLocal('lec_modaxielnotes') != undefined) execution.setVariable('lec_modaxielnotes', task.getVariableLocal('lec_modaxielnotes'));
if (typeof task.getVariableLocal('lec_axielintlanddateorna') != undefined) execution.setVariable('lec_axielintlanddateorna', task.getVariableLocal('lec_axielintlanddateorna'));
if (typeof task.getVariableLocal('lec_modssmprogramsupdated') != undefined) execution.setVariable('lec_modssmprogramsupdated', task.getVariableLocal('lec_modssmprogramsupdated'));
if (typeof task.getVariableLocal('lec_modssmnotes') != undefined) execution.setVariable('lec_modssmnotes', task.getVariableLocal('lec_modssmnotes'));
if (typeof task.getVariableLocal('lec_ssmintlanddateorna') != undefined) execution.setVariable('lec_ssmintlanddateorna', task.getVariableLocal('lec_ssmintlanddateorna'));
if (typeof task.getVariableLocal('lec_modrsmprogramsupdated') != undefined) execution.setVariable('lec_modrsmprogramsupdated', task.getVariableLocal('lec_modrsmprogramsupdated'));
if (typeof task.getVariableLocal('lec_modrsmnotes') != undefined) execution.setVariable('lec_modrsmnotes', task.getVariableLocal('lec_modrsmnotes'));
if (typeof task.getVariableLocal('lec_rsmintlanddateorna') != undefined) execution.setVariable('lec_rsmintlanddateorna', task.getVariableLocal('lec_rsmintlanddateorna'));
if (typeof task.getVariableLocal('lec_modwaveprogramsupdated') != undefined) execution.setVariable('lec_modwaveprogramsupdated', task.getVariableLocal('lec_modwaveprogramsupdated'));
if (typeof task.getVariableLocal('lec_modwavenotes') != undefined) execution.setVariable('lec_modwavenotes', task.getVariableLocal('lec_modwavenotes'));
if (typeof task.getVariableLocal('lec_waveintlanddateorna') != undefined) execution.setVariable('lec_waveintlanddateorna', task.getVariableLocal('lec_waveintlanddateorna'));
if (typeof task.getVariableLocal('lec_modccprogramsupdated') != undefined) execution.setVariable('lec_modccprogramsupdated', task.getVariableLocal('lec_modccprogramsupdated'));
if (typeof task.getVariableLocal('lec_modccnotes') != undefined) execution.setVariable('lec_modccnotes', task.getVariableLocal('lec_modccnotes'));
if (typeof task.getVariableLocal('lec_ccintlanddateorna') != undefined) execution.setVariable('lec_ccintlanddateorna', task.getVariableLocal('lec_ccintlanddateorna'));
if (typeof task.getVariableLocal('lec_hsdaoiprogramsupdated') != undefined) execution.setVariable('lec_hsdaoiprogramsupdated', task.getVariableLocal('lec_hsdaoiprogramsupdated'));
if (typeof task.getVariableLocal('lec_hsdaoinotes') != undefined) execution.setVariable('lec_hsdaoinotes', task.getVariableLocal('lec_hsdaoinotes'));
if (typeof task.getVariableLocal('lec_aoiintlanddateorna') != undefined) execution.setVariable('lec_aoiintlanddateorna', task.getVariableLocal('lec_aoiintlanddateorna'));
if (typeof task.getVariableLocal('lec_hsdrouterprgmsupdated') != undefined) execution.setVariable('lec_hsdrouterprgmsupdated', task.getVariableLocal('lec_hsdrouterprgmsupdated'));
if (typeof task.getVariableLocal('lec_hsdrouternotes') != undefined) execution.setVariable('lec_hsdrouternotes', task.getVariableLocal('lec_hsdrouternotes'));
if (typeof task.getVariableLocal('lec_routerintlanddateorna') != undefined) execution.setVariable('lec_routerintlanddateorna', task.getVariableLocal('lec_routerintlanddateorna'));
if (typeof task.getVariableLocal('lec_testprocorprgupdated') != undefined) execution.setVariable('lec_testprocorprgupdated', task.getVariableLocal('lec_testprocorprgupdated'));
if (typeof task.getVariableLocal('lec_testprocorprgmsnotes') != undefined) execution.setVariable('lec_testprocorprgmsnotes', task.getVariableLocal('lec_testprocorprgmsnotes'));
if (typeof task.getVariableLocal('lec_procprgintlanddateorna') != undefined) execution.setVariable('lec_procprgintlanddateorna', task.getVariableLocal('lec_procprgintlanddateorna'));
if (typeof task.getVariableLocal('lec_testevaltimestds') != undefined) execution.setVariable('lec_testevaltimestds', task.getVariableLocal('lec_testevaltimestds'));
if (typeof task.getVariableLocal('lec_testevalnotes') != undefined) execution.setVariable('lec_testevalnotes', task.getVariableLocal('lec_testevalnotes'));
if (typeof task.getVariableLocal('lec_evalintlanddateorna') != undefined) execution.setVariable('lec_evalintlanddateorna', task.getVariableLocal('lec_evalintlanddateorna'));
if (typeof task.getVariableLocal('lec_qadfinalqaverification') != undefined) execution.setVariable('lec_qadfinalqaverification', task.getVariableLocal('lec_qadfinalqaverification'));
if (typeof task.getVariableLocal('lec_qadqanotes') != undefined) execution.setVariable('lec_qadqanotes', task.getVariableLocal('lec_qadqanotes'));
if (typeof task.getVariableLocal('lec_qavernintlanddateorna') != undefined) execution.setVariable('lec_qavernintlanddateorna', task.getVariableLocal('lec_qavernintlanddateorna'));
if (typeof task.getVariableLocal('lec_stkattachedtotravelers') != undefined) execution.setVariable('lec_stkattachedtotravelers', task.getVariableLocal('lec_stkattachedtotravelers'));
if (typeof task.getVariableLocal('lec_stktravelernotes') != undefined) execution.setVariable('lec_stktravelernotes', task.getVariableLocal('lec_stktravelernotes'));
if (typeof task.getVariableLocal('lec_travelerintlanddateorna') != undefined) execution.setVariable('lec_travelerintlanddateorna', task.getVariableLocal('lec_travelerintlanddateorna'));
if (typeof task.getVariableLocal('lec_stkmtrlorwippurgereqd') != undefined) execution.setVariable('lec_stkmtrlorwippurgereqd', task.getVariableLocal('lec_stkmtrlorwippurgereqd'));
if (typeof task.getVariableLocal('lec_stkmaterialnotes') != undefined) execution.setVariable('lec_stkmaterialnotes', task.getVariableLocal('lec_stkmaterialnotes'));
if (typeof task.getVariableLocal('lec_materialintlanddateorna') != undefined) execution.setVariable('lec_materialintlanddateorna', task.getVariableLocal('lec_materialintlanddateorna'));
if (typeof task.getVariableLocal('lec_stkorphanpartspulled') != undefined) execution.setVariable('lec_stkorphanpartspulled', task.getVariableLocal('lec_stkorphanpartspulled'));
if (typeof task.getVariableLocal('lec_stkorphanpartsnotes') != undefined) execution.setVariable('lec_stkorphanpartsnotes', task.getVariableLocal('lec_stkorphanpartsnotes'));
if (typeof task.getVariableLocal('lec_orphanintlanddateorna') != undefined) execution.setVariable('lec_orphanintlanddateorna', task.getVariableLocal('lec_orphanintlanddateorna'));
if (typeof task.getVariableLocal('lec_shporstkredecnscanned') != undefined) execution.setVariable('lec_shporstkredecnscanned', task.getVariableLocal('lec_shporstkredecnscanned'));
if (typeof task.getVariableLocal('lec_shporstkscannednotes') != undefined) execution.setVariable('lec_shporstkscannednotes', task.getVariableLocal('lec_shporstkscannednotes'));
if (typeof task.getVariableLocal('lec_shporstkintlanddateorna') != undefined) execution.setVariable('lec_shporstkintlanddateorna', task.getVariableLocal('lec_shporstkintlanddateorna'));

logger.log(task.getVariableLocal('lec_sendforrework'));
var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow2" sourceRef="serviceTask3" targetRef="usertask1"></sequenceFlow>
    <sequenceFlow id="flow3" sourceRef="usertask1" targetRef="exclusivegateway2"></sequenceFlow>
    <userTask id="usertask2" name="Master Scheduler Dept" activiti:candidateGroups="GROUP_materials" activiti:formKey="lec:matdept">
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}

execution.setVariable('lec_sendforrework', false);
task.setVariableLocal('lec_sendforrework', false);]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_descriptionofchange') != undefined) execution.setVariable('lec_descriptionofchange', task.getVariableLocal('lec_descriptionofchange'));

var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow4" sourceRef="usertask2" targetRef="exclusivegateway4"></sequenceFlow>
    <userTask id="usertask3" name="Purchasing Dept" activiti:candidateGroups="GROUP_purchasing" activiti:formKey="lec:purchdept">
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}

execution.setVariable('lec_sendforrework', false);
task.setVariableLocal('lec_sendforrework', false);]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_descriptionofchange') != undefined) execution.setVariable('lec_descriptionofchange', task.getVariableLocal('lec_descriptionofchange'));

var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow5" sourceRef="usertask3" targetRef="exclusivegateway5"></sequenceFlow>
    <userTask id="usertask4" name="Quote Dept" activiti:candidateGroups="GROUP_quote" activiti:formKey="lec:quotedept">
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}

execution.setVariable('lec_sendforrework', false);
task.setVariableLocal('lec_sendforrework', false);]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_descriptionofchange') != undefined) execution.setVariable('lec_descriptionofchange', task.getVariableLocal('lec_descriptionofchange'));

var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow6" sourceRef="usertask4" targetRef="exclusivegateway6"></sequenceFlow>
    <userTask id="usertask5" name="Acct Pres Sign Off" activiti:candidateGroups="GROUP_accounts" activiti:formKey="lec:acctpres">
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

if(execution.getVariable("lec_sendforrework") == true){
  task.setVariableLocal("lec_reworkinstructions", execution.getVariable("lec_reworkinstructions"));
}

execution.setVariable('lec_sendforrework', false);
task.setVariableLocal('lec_sendforrework', false);]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[if (typeof task.getVariableLocal('lec_descriptionofchange') != undefined) execution.setVariable('lec_descriptionofchange', task.getVariableLocal('lec_descriptionofchange'));

var rework =  task.getVariableLocal('lec_sendforrework');

if(rework){
     execution.setVariable('lec_sendforrework', rework);
     execution.setVariable('lec_reworkinstructions', task.getVariableLocal('bpm_comment'));
}else{
       execution.setVariable('lec_reworkinstructions', '');
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow7" sourceRef="usertask5" targetRef="exclusivegateway7"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow8" name="Rework" sourceRef="exclusivegateway1" targetRef="userTask1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow9" name="Approve" sourceRef="exclusivegateway1" targetRef="serviceTask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow10" name="Rework" sourceRef="exclusivegateway2" targetRef="userTask2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow11" name="Approve" sourceRef="exclusivegateway2" targetRef="alfrescoMailtask1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow14" sourceRef="exclusiveGateway2" targetRef="serviceTask12"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow15" name="Approved" sourceRef="exclusivegateway4" targetRef="alfrescoMailtask2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway5" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow17" name="Rework" sourceRef="exclusivegateway5" targetRef="usertask2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow18" name="Approved" sourceRef="exclusivegateway5" targetRef="alfrescoMailtask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway6" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow19" name="Approved" sourceRef="exclusivegateway6" targetRef="alfrescoMailtask4">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow20" name="Rework" sourceRef="exclusivegateway6" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway7" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow21" name="Rework" sourceRef="exclusivegateway7" targetRef="usertask4">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow22" name="Approved" sourceRef="exclusivegateway7" targetRef="alfrescoMailtask5">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway8" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow23" name="Approved" sourceRef="exclusivegateway8" targetRef="serviceTask10">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow24" name="Rework" sourceRef="exclusivegateway8" targetRef="usertask5">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <exclusiveGateway id="exclusivegateway9" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow25" name="Approved" sourceRef="exclusivegateway9" targetRef="serviceTask4">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow26" name="Rework" sourceRef="exclusivegateway9" targetRef="usertask1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow27" sourceRef="serviceTask4" targetRef="usertask2"></sequenceFlow>
    <sequenceFlow id="flow28" name="Rework" sourceRef="exclusivegateway4" targetRef="userTask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="usertask6" name="Post Implementation " activiti:candidateGroups="GROUP_documentControl" activiti:formKey="lec:documentcontroldept"></userTask>
    <exclusiveGateway id="exclusivegateway10" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow29" name="Has Post Imp" sourceRef="exclusivegateway10" targetRef="usertask6">
      <documentation>When DOC Post Implementation Actions checkbox is complete, workflow routes to Post Implementation.</documentation>
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_docprerelactions') == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow30" sourceRef="exclusivegateway10" targetRef="end"></sequenceFlow>
    <serviceTask id="alfrescoMailtask1" name="Test Dept Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many =['GROUP_documentControl'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow31" sourceRef="alfrescoMailtask1" targetRef="userTask3"></sequenceFlow>
    <serviceTask id="alfrescoMailtask2" name="Master Scheduler Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:string><![CDATA[var mail = actions.create("mail");
mail.execute(bpm_package);]]></activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow32" sourceRef="alfrescoMailtask2" targetRef="usertask3"></sequenceFlow>
    <serviceTask id="alfrescoMailtask3" name="Purchasing Dept Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many =['GROUP_quote'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  Purchasing was previous step.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <serviceTask id="alfrescoMailtask4" name="Quote Dept Email" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many =['GROUP_accounts, GROUP_accountsManager'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  Quote was previous step.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <serviceTask id="alfrescoMailtask5" name="Accounts Email " activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
          <activiti:expression><![CDATA[var mail = actions.create('mail');
mail.parameters.to_many =['originator','GROUP_accounts'];
mail.parameters.cc='';
mail.parameters.from='sender@iconma.com';
mail.parameters.subject=bpm_workflowDescription;
mail.parameters.text='A workflow has been created for your review.  Account with Pres Sign off was previous step.  ECN Workflow Content- http://10.1.0.104:8080/share/page/my-tasks#filter=workflows|active';
mail.execute(bpm_package);]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow33" sourceRef="alfrescoMailtask3" targetRef="usertask4"></sequenceFlow>
    <sequenceFlow id="flow34" sourceRef="alfrescoMailtask4" targetRef="usertask5"></sequenceFlow>
    <sequenceFlow id="flow35" sourceRef="alfrescoMailtask5" targetRef="userTask9"></sequenceFlow>
    <parallelGateway id="parallelgateway1" name="Parallel Gateway"></parallelGateway>
    <userTask id="usertask7" name="Test" activiti:candidateGroups="GROUP_purchasing"></userTask>
    <userTask id="usertask8" name="Test P 2"></userTask>
    <sequenceFlow id="flow36" sourceRef="serviceTask11" targetRef="parallelgateway1"></sequenceFlow>
    <sequenceFlow id="flow37" sourceRef="parallelgateway1" targetRef="usertask7"></sequenceFlow>
    <sequenceFlow id="flow38" sourceRef="parallelgateway1" targetRef="usertask8"></sequenceFlow>
    <sequenceFlow id="flow39" sourceRef="usertask8" targetRef="parallelgateway2"></sequenceFlow>
    <sequenceFlow id="flow40" sourceRef="usertask7" targetRef="parallelgateway2"></sequenceFlow>
    <parallelGateway id="parallelgateway2" name="Parallel Gateway"></parallelGateway>
    <sequenceFlow id="flow41" sourceRef="parallelgateway2" targetRef="exclusiveGateway1"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_lec">
    <bpmndi:BPMNPlane bpmnElement="lec" id="BPMNPlane_lec">
      <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
        <omgdc:Bounds height="35.0" width="35.0" x="0.0" y="17.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="serviceTask1" id="BPMNShape_serviceTask1">
        <omgdc:Bounds height="60.0" width="100.0" x="80.0" y="2.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="userTask1" id="BPMNShape_userTask1">
        <omgdc:Bounds height="60.0" width="100.0" x="230.0" y="2.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="serviceTask2" id="BPMNShape_serviceTask2">
        <omgdc:Bounds height="60.0" width="100.0" x="380.0" y="2.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="userTask2" id="BPMNShape_userTask2">
        <omgdc:Bounds height="60.0" width="100.0" x="530.0" y="2.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="serviceTask3" id="BPMNShape_serviceTask3">
        <omgdc:Bounds height="60.0" width="100.0" x="680.0" y="2.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="userTask3" id="BPMNShape_userTask3">
        <omgdc:Bounds height="60.0" width="100.0" x="1080.0" y="1.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="serviceTask4" id="BPMNShape_serviceTask4">
        <omgdc:Bounds height="60.0" width="100.0" x="1260.0" y="2.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="userTask9" id="BPMNShape_userTask9">
        <omgdc:Bounds height="60.0" width="100.0" x="1300.0" y="244.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="serviceTask10" id="BPMNShape_serviceTask10">
        <omgdc:Bounds height="60.0" width="100.0" x="1460.0" y="248.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="serviceTask11" id="BPMNShape_serviceTask11">
        <omgdc:Bounds height="60.0" width="100.0" x="64.0" y="510.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusiveGateway1" id="BPMNShape_exclusiveGateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="385.0" y="519.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusiveGateway2" id="BPMNShape_exclusiveGateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="454.0" y="520.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="serviceTask12" id="BPMNShape_serviceTask12">
        <omgdc:Bounds height="60.0" width="100.0" x="528.0" y="512.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
        <omgdc:Bounds height="35.0" width="35.0" x="824.0" y="524.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
        <omgdc:Bounds height="60.0" width="100.0" x="830.0" y="5.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
        <omgdc:Bounds height="55.0" width="105.0" x="61.0" y="257.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
        <omgdc:Bounds height="55.0" width="105.0" x="444.0" y="254.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask4" id="BPMNShape_usertask4">
        <omgdc:Bounds height="55.0" width="105.0" x="741.0" y="250.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask5" id="BPMNShape_usertask5">
        <omgdc:Bounds height="55.0" width="105.0" x="1015.0" y="254.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="610.0" y="102.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="950.0" y="94.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="BPMNShape_exclusivegateway4">
        <omgdc:Bounds height="40.0" width="40.0" x="214.0" y="340.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway5" id="BPMNShape_exclusivegateway5">
        <omgdc:Bounds height="40.0" width="40.0" x="586.0" y="336.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway6" id="BPMNShape_exclusivegateway6">
        <omgdc:Bounds height="40.0" width="40.0" x="889.0" y="331.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
        <omgdc:Bounds height="40.0" width="40.0" x="1119.0" y="331.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway8" id="BPMNShape_exclusivegateway8">
        <omgdc:Bounds height="40.0" width="40.0" x="1410.0" y="331.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway9" id="BPMNShape_exclusivegateway9">
        <omgdc:Bounds height="40.0" width="40.0" x="1200.0" y="64.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask6" id="BPMNShape_usertask6">
        <omgdc:Bounds height="55.0" width="105.0" x="678.0" y="591.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway10" id="BPMNShape_exclusivegateway10">
        <omgdc:Bounds height="40.0" width="40.0" x="710.0" y="521.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="alfrescoMailtask1" id="BPMNShape_alfrescoMailtask1">
        <omgdc:Bounds height="55.0" width="105.0" x="950.0" y="7.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="alfrescoMailtask2" id="BPMNShape_alfrescoMailtask2">
        <omgdc:Bounds height="55.0" width="105.0" x="300.0" y="257.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="alfrescoMailtask3" id="BPMNShape_alfrescoMailtask3">
        <omgdc:Bounds height="55.0" width="105.0" x="594.0" y="257.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="alfrescoMailtask4" id="BPMNShape_alfrescoMailtask4">
        <omgdc:Bounds height="55.0" width="105.0" x="872.0" y="253.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="alfrescoMailtask5" id="BPMNShape_alfrescoMailtask5">
        <omgdc:Bounds height="55.0" width="105.0" x="1159.0" y="250.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="parallelgateway1" id="BPMNShape_parallelgateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="186.0" y="523.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask7" id="BPMNShape_usertask7">
        <omgdc:Bounds height="55.0" width="105.0" x="212.0" y="427.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask8" id="BPMNShape_usertask8">
        <omgdc:Bounds height="55.0" width="105.0" x="212.0" y="566.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="parallelgateway2" id="BPMNShape_parallelgateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="364.0" y="429.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow1" id="BPMNEdge_sequenceFlow1">
        <omgdi:waypoint x="35.0" y="34.0"></omgdi:waypoint>
        <omgdi:waypoint x="42.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="42.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="80.0" y="32.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow2" id="BPMNEdge_sequenceFlow2">
        <omgdi:waypoint x="180.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="192.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="192.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="230.0" y="32.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow3" id="BPMNEdge_sequenceFlow3">
        <omgdi:waypoint x="330.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="342.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="342.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="380.0" y="32.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow4" id="BPMNEdge_sequenceFlow4">
        <omgdi:waypoint x="480.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="492.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="492.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="530.0" y="32.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow5" id="BPMNEdge_sequenceFlow5">
        <omgdi:waypoint x="630.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="642.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="642.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="630.0" y="102.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow7" id="BPMNEdge_sequenceFlow7">
        <omgdi:waypoint x="1180.0" y="31.0"></omgdi:waypoint>
        <omgdi:waypoint x="1220.0" y="64.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow19" id="BPMNEdge_sequenceFlow19">
        <omgdi:waypoint x="1350.0" y="304.0"></omgdi:waypoint>
        <omgdi:waypoint x="1430.0" y="331.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow20" id="BPMNEdge_sequenceFlow20">
        <omgdi:waypoint x="1510.0" y="308.0"></omgdi:waypoint>
        <omgdi:waypoint x="1110.0" y="398.0"></omgdi:waypoint>
        <omgdi:waypoint x="870.0" y="398.0"></omgdi:waypoint>
        <omgdi:waypoint x="646.0" y="398.0"></omgdi:waypoint>
        <omgdi:waypoint x="388.0" y="398.0"></omgdi:waypoint>
        <omgdi:waypoint x="114.0" y="398.0"></omgdi:waypoint>
        <omgdi:waypoint x="114.0" y="510.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow23" id="BPMNEdge_sequenceFlow23">
        <omgdi:waypoint x="425.0" y="539.0"></omgdi:waypoint>
        <omgdi:waypoint x="416.0" y="540.0"></omgdi:waypoint>
        <omgdi:waypoint x="416.0" y="540.0"></omgdi:waypoint>
        <omgdi:waypoint x="416.0" y="475.0"></omgdi:waypoint>
        <omgdi:waypoint x="916.0" y="474.0"></omgdi:waypoint>
        <omgdi:waypoint x="1350.0" y="304.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="42.0" x="484.0" y="451.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow24" id="BPMNEdge_sequenceFlow24">
        <omgdi:waypoint x="425.0" y="539.0"></omgdi:waypoint>
        <omgdi:waypoint x="416.0" y="540.0"></omgdi:waypoint>
        <omgdi:waypoint x="454.0" y="540.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="424.0" y="590.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow26" id="BPMNEdge_sequenceFlow26">
        <omgdi:waypoint x="628.0" y="542.0"></omgdi:waypoint>
        <omgdi:waypoint x="710.0" y="541.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="780.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="830.0" y="35.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="880.0" y="65.0"></omgdi:waypoint>
        <omgdi:waypoint x="970.0" y="94.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        <omgdi:waypoint x="113.0" y="312.0"></omgdi:waypoint>
        <omgdi:waypoint x="234.0" y="340.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
        <omgdi:waypoint x="496.0" y="309.0"></omgdi:waypoint>
        <omgdi:waypoint x="606.0" y="336.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="793.0" y="305.0"></omgdi:waypoint>
        <omgdi:waypoint x="909.0" y="331.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="1067.0" y="309.0"></omgdi:waypoint>
        <omgdi:waypoint x="1139.0" y="331.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="610.0" y="122.0"></omgdi:waypoint>
        <omgdi:waypoint x="280.0" y="122.0"></omgdi:waypoint>
        <omgdi:waypoint x="280.0" y="62.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="474.0" y="129.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="650.0" y="122.0"></omgdi:waypoint>
        <omgdi:waypoint x="724.0" y="121.0"></omgdi:waypoint>
        <omgdi:waypoint x="730.0" y="62.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="42.0" x="650.0" y="122.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="950.0" y="114.0"></omgdi:waypoint>
        <omgdi:waypoint x="780.0" y="114.0"></omgdi:waypoint>
        <omgdi:waypoint x="580.0" y="62.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="831.0" y="121.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
        <omgdi:waypoint x="990.0" y="114.0"></omgdi:waypoint>
        <omgdi:waypoint x="1023.0" y="110.0"></omgdi:waypoint>
        <omgdi:waypoint x="1002.0" y="62.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="42.0" x="1000.0" y="96.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
        <omgdi:waypoint x="494.0" y="540.0"></omgdi:waypoint>
        <omgdi:waypoint x="528.0" y="542.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
        <omgdi:waypoint x="234.0" y="340.0"></omgdi:waypoint>
        <omgdi:waypoint x="234.0" y="284.0"></omgdi:waypoint>
        <omgdi:waypoint x="300.0" y="284.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="241.0" y="328.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow17" id="BPMNEdge_flow17">
        <omgdi:waypoint x="606.0" y="376.0"></omgdi:waypoint>
        <omgdi:waypoint x="375.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="287.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="113.0" y="390.0"></omgdi:waypoint>
        <omgdi:waypoint x="113.0" y="312.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="606.0" y="376.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
        <omgdi:waypoint x="606.0" y="336.0"></omgdi:waypoint>
        <omgdi:waypoint x="646.0" y="312.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="606.0" y="336.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow19" id="BPMNEdge_flow19">
        <omgdi:waypoint x="909.0" y="331.0"></omgdi:waypoint>
        <omgdi:waypoint x="924.0" y="308.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="872.0" y="310.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20">
        <omgdi:waypoint x="909.0" y="371.0"></omgdi:waypoint>
        <omgdi:waypoint x="614.0" y="389.0"></omgdi:waypoint>
        <omgdi:waypoint x="496.0" y="309.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="794.0" y="388.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
        <omgdi:waypoint x="1139.0" y="371.0"></omgdi:waypoint>
        <omgdi:waypoint x="912.0" y="391.0"></omgdi:waypoint>
        <omgdi:waypoint x="793.0" y="305.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="1047.0" y="377.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
        <omgdi:waypoint x="1139.0" y="331.0"></omgdi:waypoint>
        <omgdi:waypoint x="1139.0" y="274.0"></omgdi:waypoint>
        <omgdi:waypoint x="1159.0" y="277.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="1119.0" y="310.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
        <omgdi:waypoint x="1430.0" y="331.0"></omgdi:waypoint>
        <omgdi:waypoint x="1430.0" y="278.0"></omgdi:waypoint>
        <omgdi:waypoint x="1460.0" y="278.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="1430.0" y="331.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
        <omgdi:waypoint x="1430.0" y="371.0"></omgdi:waypoint>
        <omgdi:waypoint x="1125.0" y="385.0"></omgdi:waypoint>
        <omgdi:waypoint x="1067.0" y="309.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="1353.0" y="387.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
        <omgdi:waypoint x="1220.0" y="64.0"></omgdi:waypoint>
        <omgdi:waypoint x="1219.0" y="32.0"></omgdi:waypoint>
        <omgdi:waypoint x="1260.0" y="32.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="48.0" x="1220.0" y="64.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
        <omgdi:waypoint x="1220.0" y="104.0"></omgdi:waypoint>
        <omgdi:waypoint x="1031.0" y="158.0"></omgdi:waypoint>
        <omgdi:waypoint x="956.0" y="134.0"></omgdi:waypoint>
        <omgdi:waypoint x="880.0" y="65.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="1192.0" y="127.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
        <omgdi:waypoint x="1310.0" y="62.0"></omgdi:waypoint>
        <omgdi:waypoint x="1198.0" y="216.0"></omgdi:waypoint>
        <omgdi:waypoint x="656.0" y="216.0"></omgdi:waypoint>
        <omgdi:waypoint x="112.0" y="216.0"></omgdi:waypoint>
        <omgdi:waypoint x="113.0" y="257.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow28" id="BPMNEdge_flow28">
        <omgdi:waypoint x="234.0" y="340.0"></omgdi:waypoint>
        <omgdi:waypoint x="232.0" y="192.0"></omgdi:waypoint>
        <omgdi:waypoint x="746.0" y="192.0"></omgdi:waypoint>
        <omgdi:waypoint x="1018.0" y="192.0"></omgdi:waypoint>
        <omgdi:waypoint x="1130.0" y="61.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="38.0" x="190.0" y="241.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29">
        <omgdi:waypoint x="730.0" y="561.0"></omgdi:waypoint>
        <omgdi:waypoint x="730.0" y="591.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="62.0" x="730.0" y="561.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow30" id="BPMNEdge_flow30">
        <omgdi:waypoint x="750.0" y="541.0"></omgdi:waypoint>
        <omgdi:waypoint x="824.0" y="541.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow31" id="BPMNEdge_flow31">
        <omgdi:waypoint x="1055.0" y="34.0"></omgdi:waypoint>
        <omgdi:waypoint x="1080.0" y="31.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow32" id="BPMNEdge_flow32">
        <omgdi:waypoint x="405.0" y="284.0"></omgdi:waypoint>
        <omgdi:waypoint x="444.0" y="281.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow33" id="BPMNEdge_flow33">
        <omgdi:waypoint x="699.0" y="284.0"></omgdi:waypoint>
        <omgdi:waypoint x="741.0" y="277.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow34" id="BPMNEdge_flow34">
        <omgdi:waypoint x="977.0" y="280.0"></omgdi:waypoint>
        <omgdi:waypoint x="1015.0" y="281.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow35" id="BPMNEdge_flow35">
        <omgdi:waypoint x="1264.0" y="277.0"></omgdi:waypoint>
        <omgdi:waypoint x="1300.0" y="274.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow36" id="BPMNEdge_flow36">
        <omgdi:waypoint x="164.0" y="540.0"></omgdi:waypoint>
        <omgdi:waypoint x="186.0" y="543.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow37" id="BPMNEdge_flow37">
        <omgdi:waypoint x="206.0" y="523.0"></omgdi:waypoint>
        <omgdi:waypoint x="206.0" y="462.0"></omgdi:waypoint>
        <omgdi:waypoint x="212.0" y="454.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow38" id="BPMNEdge_flow38">
        <omgdi:waypoint x="206.0" y="563.0"></omgdi:waypoint>
        <omgdi:waypoint x="206.0" y="601.0"></omgdi:waypoint>
        <omgdi:waypoint x="212.0" y="593.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow39" id="BPMNEdge_flow39">
        <omgdi:waypoint x="317.0" y="593.0"></omgdi:waypoint>
        <omgdi:waypoint x="384.0" y="597.0"></omgdi:waypoint>
        <omgdi:waypoint x="384.0" y="469.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow40" id="BPMNEdge_flow40">
        <omgdi:waypoint x="317.0" y="454.0"></omgdi:waypoint>
        <omgdi:waypoint x="364.0" y="449.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow41" id="BPMNEdge_flow41">
        <omgdi:waypoint x="384.0" y="469.0"></omgdi:waypoint>
        <omgdi:waypoint x="405.0" y="519.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

Outcomes