Permissions Error with Parallel Gateway

cancel
Showing results for 
Search instead for 
Did you mean: 
dhrobbins
Active Member II

Permissions Error with Parallel Gateway

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>
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
8 Replies
jearles
Established Member II

Re: Permissions Error with Parallel Gateway

David,

I'm looking through your process a bit to see if there is anything note-able; while I'm doing that, would you be able to check your logs files and post the bits potentially pertaining to these permissions denials?

Thanks,

-JEarles
bp3

dhrobbins
Active Member II

Re: Permissions Error with Parallel Gateway

Certainly - thanks.  

dhrobbins
Active Member II

Re: Permissions Error with Parallel Gateway

From Std-out:

2017-04-13 15:57:31,080  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-7] Content Type: application/json
2017-04-13 15:57:31,139  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-7] Caching template /json.status.ftl for web script org/alfresco/repository/workflow/workflow-instance.get and status 500 (format: json)
2017-04-13 15:57:31,145  DEBUG [extensions.webscripts.ScriptConfigModel] [http-apr-8080-exec-7] org.springframework.extensions.webscripts.ScriptConfigModel@68069b66 created:
config service: org.springframework.extensions.config.xml.XMLConfigService@7836a2be
global config: null
script config: null
2017-04-13 15:57:31,145  DEBUG [extensions.webscripts.TemplateConfigModel] [http-apr-8080-exec-7] org.springframework.extensions.webscripts.TemplateConfigModel@74a8adab created:
config service: org.springframework.extensions.config.xml.XMLConfigService@7836a2be
global config: null
script config: null
2017-04-13 15:57:31,145  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Force success status header in response: false
2017-04-13 15:57:31,145  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Sending status 500 (Template: /json.status.ftl)
2017-04-13 15:57:31,145  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Rendering response: content type=application/json
2017-04-13 15:57:31,145  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-7] Cache - set response header Cache-Control: no-cache
2017-04-13 15:57:31,145  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-7] Cache - set response header Pragma: no-cache
2017-04-13 15:57:31,153  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Processed script url (GET) /api/workflow-instances/activiti$199453 in 171.16652ms
2017-04-13 15:57:31,497  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-5] Processing request (GET) http://localhost:8080/alfresco/s/api/people/originator/preferences?alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 15:57:31,497  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-5] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/people/originator/preferences
2017-04-13 15:57:31,497  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-5] Content Type: application/json
2017-04-13 15:57:31,497  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-5] Agent: Firefox
2017-04-13 15:57:31,497  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-5] Invoking Web Script org/alfresco/repository/preference/preferences.get (format json, style: argument, default: json)
2017-04-13 15:57:31,499  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-5] Executing script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js
2017-04-13 15:57:31,500  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-5] preferences.get.js Start
2017-04-13 15:57:31,503  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-5] preferences.get.js End 2 ms
2017-04-13 15:57:31,503  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-5] Executed script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js in 2.659884ms
2017-04-13 15:57:31,504  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-5] Cache - set response header Cache-Control: no-cache
2017-04-13 15:57:31,504  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-5] Cache - set response header Pragma: no-cache
2017-04-13 15:57:31,504  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-5] Rendering response: content type=application/json, status=200
2017-04-13 15:57:31,504  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-5] Rendering template 'org/alfresco/repository/preference/preferences.get.json'
2017-04-13 15:57:31,505  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-5] Rendered template org/alfresco/repository/preference/preferences.get.json in 1.074217ms
2017-04-13 15:57:31,506  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-5] Web Script org/alfresco/repository/preference/preferences.get executed in 8.169521ms
2017-04-13 15:57:31,506  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-5] Processed script url (GET) /api/people/originator/preferences in 8.372647ms
2017-04-13 15:57:40,027  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-4] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130243 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:57:40,027  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-4] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130243 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130243 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:58:00,018  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-5] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130244 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:58:00,018  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-5] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130244 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130244 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:58:20,015  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-6] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130245 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:58:20,015  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-6] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130245 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130245 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:58:40,015  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-7] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130246 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:58:40,015  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-7] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130246 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130246 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:59:00,017  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-8] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130247 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:59:00,017  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-8] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130247 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130247 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:59:20,030  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-9] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130248 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:59:20,031  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-9] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130248 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130248 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:59:40,035  ERROR [solr.util.ConcurrentLRUCache] [Finalizer] ConcurrentLRUCache was not destroyed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
2017-04-13 15:59:40,035  ERROR [solr.util.ConcurrentLRUCache] [Finalizer] ConcurrentLRUCache was not destroyed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
2017-04-13 15:59:40,035  ERROR [solr.util.ConcurrentLRUCache] [Finalizer] ConcurrentLRUCache was not destroyed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
2017-04-13 15:59:40,035  ERROR [solr.util.ConcurrentLRUCache] [Finalizer] ConcurrentLRUCache was not destroyed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
2017-04-13 15:59:40,035  ERROR [solr.util.ConcurrentLRUCache] [Finalizer] ConcurrentLRUCache was not destroyed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
2017-04-13 15:59:40,035  ERROR [solr.util.ConcurrentLRUCache] [Finalizer] ConcurrentLRUCache was not destroyed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
2017-04-13 15:59:40,036  ERROR [solr.util.ConcurrentLRUCache] [Finalizer] ConcurrentLRUCache was not destroyed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
2017-04-13 15:59:40,038  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-10] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130249 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:59:40,038  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-10] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130249 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130249 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 15:59:57,974  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-10] Processing request (GET) http://localhost:8080/alfresco/s/api/people/originator/preferences?alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 15:59:57,974  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/people/originator/preferences
2017-04-13 15:59:57,974  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-10] Content Type: null
2017-04-13 15:59:57,974  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Agent: null
2017-04-13 15:59:57,974  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Invoking Web Script org/alfresco/repository/preference/preferences.get (format json, style: argument, default: json)
2017-04-13 15:59:57,976  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-10] Executing script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js
2017-04-13 15:59:57,977  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-10] preferences.get.js Start
2017-04-13 15:59:57,981  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-10] preferences.get.js End 3 ms
2017-04-13 15:59:57,981  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-10] Executed script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js in 3.600679ms
2017-04-13 15:59:57,982  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-10] Cache - set response header Cache-Control: no-cache
2017-04-13 15:59:57,982  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-10] Cache - set response header Pragma: no-cache
2017-04-13 15:59:57,982  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-10] Rendering response: content type=application/json, status=200
2017-04-13 15:59:57,982  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-10] Rendering template 'org/alfresco/repository/preference/preferences.get.json'
2017-04-13 15:59:57,983  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-10] Rendered template org/alfresco/repository/preference/preferences.get.json in 1.159316ms
2017-04-13 15:59:57,983  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Web Script org/alfresco/repository/preference/preferences.get executed in 9.079099ms
2017-04-13 15:59:57,983  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Processed script url (GET) /api/people/originator/preferences in 9.374166ms
2017-04-13 15:59:58,421  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-9] Processing request (GET) http://localhost:8080/alfresco/s/api/workflow-instances/activiti$199153?includeTasks=true&noCache=1492113598403&alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 15:59:58,421  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/workflow-instances/activiti$199153
2017-04-13 15:59:58,421  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-9] Web Script index lookup for uri /api/workflow-instances/activiti$199153 took 0.165494ms
2017-04-13 15:59:58,421  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-9] WebScript uriIndexCache size: 52
2017-04-13 15:59:58,421  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-9] Content Type: application/json
2017-04-13 15:59:58,421  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Agent: Firefox
2017-04-13 15:59:58,421  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Invoking Web Script org/alfresco/repository/workflow/workflow-instance.get (format json, style: any, default: json)
2017-04-13 15:59:58,628  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-9] Caching script null for web script org/alfresco/repository/workflow/workflow-instance.get and request mimetype application/json
2017-04-13 15:59:58,630  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-9] Cache - set response header Cache-Control: no-cache
2017-04-13 15:59:58,630  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-9] Cache - set response header Pragma: no-cache
2017-04-13 15:59:58,630  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-9] Rendering response: content type=application/json, status=200
2017-04-13 15:59:58,630  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-9] Rendering template 'org/alfresco/repository/workflow/workflow-instance.get.json'
2017-04-13 15:59:58,657  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-9] Rendered template org/alfresco/repository/workflow/workflow-instance.get.json in 26.852852ms
2017-04-13 15:59:58,658  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Web Script org/alfresco/repository/workflow/workflow-instance.get executed in 236.5787ms
2017-04-13 15:59:58,658  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Processed script url (GET) /api/workflow-instances/activiti$199153 in 237.04524ms
2017-04-13 15:59:58,859  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-7] Processing request (GET) http://localhost:8080/alfresco/s/api/people/originator/preferences?alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 15:59:58,859  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/people/originator/preferences
2017-04-13 15:59:58,859  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-7] Content Type: application/json
2017-04-13 15:59:58,859  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Agent: Firefox
2017-04-13 15:59:58,859  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Invoking Web Script org/alfresco/repository/preference/preferences.get (format json, style: argument, default: json)
2017-04-13 15:59:58,861  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-7] Executing script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js
2017-04-13 15:59:58,863  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-7] preferences.get.js Start
2017-04-13 15:59:58,867  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-7] preferences.get.js End 3 ms
2017-04-13 15:59:58,867  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-7] Executed script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js in 3.266697ms
2017-04-13 15:59:58,867  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-7] Cache - set response header Cache-Control: no-cache
2017-04-13 15:59:58,867  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-7] Cache - set response header Pragma: no-cache
2017-04-13 15:59:58,867  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-7] Rendering response: content type=application/json, status=200
2017-04-13 15:59:58,867  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-7] Rendering template 'org/alfresco/repository/preference/preferences.get.json'
2017-04-13 15:59:58,868  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-7] Rendered template org/alfresco/repository/preference/preferences.get.json in 0.312601ms
2017-04-13 15:59:58,868  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Web Script org/alfresco/repository/preference/preferences.get executed in 9.280942ms
2017-04-13 15:59:58,868  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-7] Processed script url (GET) /api/people/originator/preferences in 9.478936ms
2017-04-13 15:59:58,951  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-6] Processing request (GET) http://localhost:8080/alfresco/s/api/task-instances/activiti$start199153?alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 15:59:58,951  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/task-instances/activiti$start199153
2017-04-13 15:59:58,952  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-6] Web Script index lookup for uri /api/task-instances/activiti$start199153 took 0.2801ms
2017-04-13 15:59:58,952  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-6] WebScript uriIndexCache size: 53
2017-04-13 15:59:58,952  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-6] Content Type: null
2017-04-13 15:59:58,952  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Agent: null
2017-04-13 15:59:58,952  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Invoking Web Script org/alfresco/repository/workflow/task-instance.get (format json, style: any, default: json)
2017-04-13 15:59:58,983  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-6] Caching script null for web script org/alfresco/repository/workflow/task-instance.get and request mimetype null
2017-04-13 15:59:58,985  DEBUG [extensions.webscripts.ScriptConfigModel] [http-apr-8080-exec-6] org.springframework.extensions.webscripts.ScriptConfigModel@73274123 created:
config service: org.springframework.extensions.config.xml.XMLConfigService@7836a2be
global config: null
script config: null
2017-04-13 15:59:58,985  DEBUG [extensions.webscripts.TemplateConfigModel] [http-apr-8080-exec-6] org.springframework.extensions.webscripts.TemplateConfigModel@666e6a98 created:
config service: org.springframework.extensions.config.xml.XMLConfigService@7836a2be
global config: null
script config: null
2017-04-13 15:59:58,985  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-6] Cache - set response header Cache-Control: no-cache
2017-04-13 15:59:58,985  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-6] Cache - set response header Pragma: no-cache
2017-04-13 15:59:58,985  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-6] Rendering response: content type=application/json, status=200
2017-04-13 15:59:58,985  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-6] Rendering template 'org/alfresco/repository/workflow/task-instance.get.json'
2017-04-13 15:59:58,995  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-6] Rendered template org/alfresco/repository/workflow/task-instance.get.json in 9.957887ms
2017-04-13 15:59:58,996  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Web Script org/alfresco/repository/workflow/task-instance.get executed in 43.664ms
2017-04-13 15:59:58,996  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Processed script url (GET) /api/task-instances/activiti$start199153 in 44.245583ms
2017-04-13 15:59:59,058  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-1] Processing request (POST) http://localhost:8080/alfresco/s/api/formdefinitions?alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 15:59:59,059  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] (Runtime=ServletRuntime, Container=Repository) Processing script url (POST) /api/formdefinitions
2017-04-13 15:59:59,059  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-1] Web Script index lookup for uri /api/formdefinitions took 0.362206ms
2017-04-13 15:59:59,059  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-1] WebScript uriIndexCache size: 54
2017-04-13 15:59:59,059  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-1] Content Type: application/json
2017-04-13 15:59:59,059  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] Agent: null
2017-04-13 15:59:59,059  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] Invoking Web Script org/alfresco/repository/forms/formdefinition.post (format json, style: any, default: json)
2017-04-13 15:59:59,064  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-1] Caching script classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/formdefinition.post.json.js for web script org/alfresco/repository/forms/formdefinition.post and request mimetype application/json
2017-04-13 15:59:59,064  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-1] Executing script classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/formdefinition.post.json.js
2017-04-13 15:59:59,068  DEBUG [extensions.webscripts.ScriptConfigModel] [http-apr-8080-exec-1] org.springframework.extensions.webscripts.ScriptConfigModel@30bf4905 created:
config service: org.springframework.extensions.config.xml.XMLConfigService@7836a2be
global config: null
script config: null
2017-04-13 15:59:59,068  DEBUG [extensions.webscripts.TemplateConfigModel] [http-apr-8080-exec-1] org.springframework.extensions.webscripts.TemplateConfigModel@1360fed9 created:
config service: org.springframework.extensions.config.xml.XMLConfigService@7836a2be
global config: null
script config: null
2017-04-13 15:59:59,068  DEBUG [repo.jscript.RhinoScriptProcessor] [http-apr-8080-exec-1] Resolving and compiling script path: jar:file:/D:/alfresco-community/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-remote-api-5.1.g.jar!/alfresco/templates/webscripts/org/alfresco/repository/forms/formdefinition.post.json.js
2017-04-13 15:59:59,090  DEBUG [repo.jscript.RhinoScriptProcessor] [http-apr-8080-exec-1] Imports resolved, adding resource '_root
2017-04-13 15:59:59,111  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-1] formdefinition.post.json.js Start
2017-04-13 15:59:59,116  DEBUG [repo.jscript.ScriptLogger] [http-apr-8080-exec-1] Generating form for item:
2017-04-13 15:59:59,117  DEBUG [repo.jscript.ScriptLogger] [http-apr-8080-exec-1]      kind = task
2017-04-13 15:59:59,117  DEBUG [repo.jscript.ScriptLogger] [http-apr-8080-exec-1]      id = activiti$start199153
2017-04-13 15:59:59,125  DEBUG [repo.jscript.ScriptLogger] [http-apr-8080-exec-1] fields = lec:ecn,lec:processchange,lec:urgent,lec:customer,lec:ecnnumber,bpm:workflowDescription,lec:slipartnumber,lec:slirevision,lec:custpartnumber,lec:customerrevision,lec:dateandtime,lec:originator,lec:finishedgoodsorrawinventory,lec:purge,lec:rmasinhouse,lec:notes,lec:wip,lec:deviation,lec:phaseinnextkit,lec:phaseinnotes,lec:phaseinuseupstock,lec:buildquantity,lec:reasonforchange,lec:officialcustomerdocuments,lec:descriptionofchange,lec:oeiseffectted,lec:pre_approval_actions,lec:pre_approvalnotes,lec:pre_approvalinitial&dateorn/a,lec:amdcustapprovalrequired,lec:amdcustnotes,lec:custintlanddtorna,lec:amdnewfilestoeng,lec:amdfilesnotes,lec:filesintlanddtorna,lec:engfirsttimebuildeng,lec:engfirsttimebuildnotes,lec:engbuildintlanddtorna,lec:engprocessvalidationreqd,lec:engvalnotes,lec:valintlanddtorna,lec:engassemblydrawingchanges,lec:engassemblynotes,lec:assemblyintlanddtorna,lec:engbomchanges,lec:engbomnotes,lec:bomintlanddtorna,lec:engnewpcb,lec:engpcbnotes,lec:pcbintlanddtorna,lec:engnewstencils,lec:engstencilsnotes,lec:stencilsintlanddtorna,lec:engprepchanges,lec:engprepnotes,lec:prepintlanddtorna,lec:engvisualchanges,lec:engvisualnotes,lec:visualintlanddtorna,lec:engtoolingchanges,lec:engtoolingnotes,lec:toolingintlanddtorna,lec:engassemblytime,lec:engasmbltimenotes,lec:asmbtimeintlanddtorna,lec:testrevimpact,lec:testrevnotes,lec:revintlanddtorna,lec:testnrecharges,lec:testnrenotes,lec:nreintlanddtorna,lec:testintorextchipprg,lec:testintorextnotes,lec:intorextintlanddtorna,lec:testlaborordurchange,lec:testlaborordurnotes,lec:lbrordurintlanddtorna,lec:docm2mchanges,lec:docm2mnotes,lec:m2mintlanddtorna,lec:docbom,lec:docbomnotes,lec:docbomintldtorna,lec:docrouter,lec:docrouternotes,lec:routerintlanddtorna,lec:docfilesoremailssaved,lec:docfilesnotes,lec:docfilesintlanddtorna,lec:docprerelactions,lec:docrelnotes,lec:relintlanddtorna,lec:matqtyaffected,lec:matqtynotes,lec:qtyintlanddtorna,lec:puropenorders,lec:purordersnotes,lec:ordersintlanddtorna,lec:purorphanparts,lec:purorphannotes,lec:orphanintlanddtorna,lec:purexcesscomplby,lec:purexcesscompldate,lec:purcustomer,lec:purlectronics,lec:qtetoolingcost,lec:reworkmaterial,lec:reworklabor,lec:reworktotalper,lec:newasmblmaterial,lec:newasmbllabor,lec:newasmbltotalper,lec:amdnewsalesprice,lec:presidentsignoff,lec:accountmanager,lec:amdatetime,lec:manufacturing,lec:mafdatetime,lec:engineering,lec:engdatetime,lec:quality,lec:qtydatetime,lec:pre_releaseimplactions,lec:pre_releasenotes,lec:pre_releaseinitial&dateorn/a,lec:matsalesordersaligned,lec:matsalesordersnotes,lec:matsalesintlanddtorna,lec:matupdatejobbomorjobrt,lec:matjobnotes,lec:jobintlanddtorna,lec:matrawmaterialneedbydate,lec:matrawnotes,lec:matrawinitlanddtorna,lec:postreleaseimplactions,lec:postreleasenotes,lec:postreleaseinitial&dateorn/a,lec:docworkinstructionsupdated,lec:docworknotes,lec:docworkintlanddateorna,lec:docsmtprogramsupdated,lec:docsmtnotes,lec:docsmtintlanddateorna,lec:docaoiprogramsupdated,lec:docaoinotes,lec:docaoiintlanddateorna,lec:docprocessvalidationsheets,lec:docprocessnotes,lec:processintlanddateorna,lec:doccogiscan,lec:doccogiscannotes,lec:cogiscanintlanddateorna,lec:smtprogramsupdated,lec:smtnotes,lec:smtintlanddateorna,lec:smtaoiprogramsupdated,lec:smtaoinotes,lec:smtaoiintlanddateorna,lec:modaxialprogramsupdated,lec:modaxielnotes,lec:axielintlanddateorna,lec:modssmprogramsupdated,lec:modssmnotes,lec:ssmintlanddateorna,lec:modrsmprogramsupdated,lec:modrsmnotes,lec:rsmintlanddateorna,lec:modwaveprogramsupdated,lec:modwavenotes,lec:waveintlanddateorna,lec:modccprogramsupdated,lec:modccnotes,lec:ccintlanddateorna,lec:hsdaoiprogramsupdated,lec:hsdaoinotes,lec:aoiintlanddateorna,lec:hsdrouterprgmsupdated,lec:hsdrouternotes,lec:routerintlanddateorna,lec:testprocorprgupdated,lec:testprocorprgmsnotes,lec:procprgintlanddateorna,lec:testevaltimestds,lec:testevalnotes,lec:evalintlanddateorna,lec:qadfinalqaverification,lec:qadqanotes,lec:qavernintlanddateorna,lec:stkattachedtotravelers,lec:stktravelernotes,lec:travelerintlanddateorna,lec:stkmtrlorwippurgereqd,lec:stkmaterialnotes,lec:materialintlanddateorna,lec:stkorphanpartspulled,lec:stkorphanpartsnotes,lec:orphanintlanddateorna,lec:shporstkredecnscanned,lec:shporstkscannednotes,lec:shporstkintlanddateorna,bpm:comment,transitions
2017-04-13 15:59:59,229  DEBUG [repo.jscript.ScriptLogger] [http-apr-8080-exec-1] formModel = {"item": "api\/task-instances\/activiti$start199153", "submissionUrl": "\/api\/task\/activiti%24start199153\/formprocessor", "type": "lec:start", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@755ca1a", "formData": {"prop_lec_ecn": false, "prop_lec_processchange": false, "prop_lec_urgent": false, "prop_lec_customer": "Morgan", "prop_lec_ecnnumber": "E-17-00069", "prop_bpm_workflowDescription": "E-17-00069:  SLI Part: 5 SLI: Revision: 56", "prop_lec_slipartnumber": "5", "prop_lec_slirevision": "56", "prop_lec_custpartnumber": "56", "prop_lec_customerrevision": "56", "prop_lec_dateandtime": "04\/13\/2017 13:35", "prop_lec_originator": "originator", "prop_lec_finishedgoodsorrawinventory": false, "prop_lec_purge": "", "prop_lec_rmasinhouse": false, "prop_lec_notes": "", "prop_lec_wip": false, "prop_lec_deviation": "", "prop_lec_phaseinnextkit": false, "prop_lec_phaseinnotes": "", "prop_lec_phaseinuseupstock": false, "prop_lec_buildquantity": "", "prop_lec_reasonforchange": "", "prop_lec_officialcustomerdocuments": "", "prop_lec_descriptionofchange": "", "prop_lec_oeiseffectted": "", "prop_lec_amdcustapprovalrequired": false, "prop_lec_amdnewfilestoeng": false, "prop_lec_engfirsttimebuildeng": false, "prop_lec_engprocessvalidationreqd": false, "prop_lec_engassemblydrawingchanges": false, "prop_lec_engbomchanges": false, "prop_lec_engnewpcb": false, "prop_lec_engnewstencils": false, "prop_lec_engprepchanges": false, "prop_lec_engvisualchanges": false, "prop_lec_engtoolingchanges": false, "prop_lec_engassemblytime": false, "prop_lec_testrevimpact": false, "prop_lec_testnrecharges": false, "prop_lec_testintorextchipprg": false, "prop_lec_testlaborordurchange": false, "prop_lec_docm2mchanges": false, "prop_lec_docbom": false, "prop_lec_docrouter": false, "prop_lec_docfilesoremailssaved": false, "prop_lec_docprerelactions": false, "prop_lec_matqtyaffected": false, "prop_lec_puropenorders": false, "prop_lec_purorphanparts": false, "prop_lec_purcustomer": false, "prop_lec_purlectronics": false, "prop_lec_qtetoolingcost": "", "prop_lec_amdatetime": "", "prop_lec_mafdatetime": "", "prop_lec_engdatetime": "", "prop_lec_qtydatetime": "", "prop_lec_matsalesordersaligned": false, "prop_lec_matupdatejobbomorjobrt": false, "prop_lec_matrawmaterialneedbydate": false, "prop_lec_docworkinstructionsupdated": false, "prop_lec_docsmtprogramsupdated": false, "prop_lec_docaoiprogramsupdated": false, "prop_lec_docprocessvalidationsheets": false, "prop_lec_doccogiscan": false, "prop_lec_smtprogramsupdated": false, "prop_lec_smtaoiprogramsupdated": false, "prop_lec_modaxialprogramsupdated": false, "prop_lec_modssmprogramsupdated": false, "prop_lec_modrsmprogramsupdated": false, "prop_lec_modwaveprogramsupdated": false, "prop_lec_modccprogramsupdated": false, "prop_lec_hsdaoiprogramsupdated": false, "prop_lec_hsdrouterprgmsupdated": false, "prop_lec_testprocorprgupdated": false, "prop_lec_testevaltimestds": false, "prop_lec_qadfinalqaverification": false, "prop_lec_stkattachedtotravelers": false, "prop_lec_stkmtrlorwippurgereqd": false, "prop_lec_stkorphanpartspulled": false, "prop_lec_shporstkredecnscanned": false, "prop_bpm_comment": "", "prop_transitions": "Next|Task Done", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}
2017-04-13 15:59:59,229  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-1] formdefinition.post.json.js End 117 ms
2017-04-13 15:59:59,229  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-1] Executed script classpath*:alfresco/templates/webscripts/org/alfresco/repository/forms/formdefinition.post.json.js in 160.58899ms
2017-04-13 15:59:59,230  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-1] Cache - set response header Cache-Control: no-cache
2017-04-13 15:59:59,230  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-1] Cache - set response header Pragma: no-cache
2017-04-13 15:59:59,230  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-1] Rendering response: content type=application/json, status=200
2017-04-13 15:59:59,230  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-1] Rendering template 'org/alfresco/repository/forms/formdefinition.post.json'
2017-04-13 15:59:59,280  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-1] Rendered template org/alfresco/repository/forms/formdefinition.post.json in 50.124695ms
2017-04-13 15:59:59,281  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] Web Script org/alfresco/repository/forms/formdefinition.post executed in 222.25682ms
2017-04-13 15:59:59,281  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-1] Processed script url (POST) /api/formdefinitions in 222.98463ms
2017-04-13 16:00:00,020  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-11] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130250 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 16:00:00,021  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-11] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130250 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130250 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 16:00:04,850  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-8] Processing request (GET) http://localhost:8080/alfresco/s/api/people/originator/preferences?alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 16:00:04,850  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-8] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/people/originator/preferences
2017-04-13 16:00:04,850  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-8] Content Type: null
2017-04-13 16:00:04,851  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-8] Agent: null
2017-04-13 16:00:04,851  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-8] Invoking Web Script org/alfresco/repository/preference/preferences.get (format json, style: argument, default: json)
2017-04-13 16:00:04,853  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-8] Executing script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js
2017-04-13 16:00:04,853  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-8] preferences.get.js Start
2017-04-13 16:00:04,856  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-8] preferences.get.js End 2 ms
2017-04-13 16:00:04,856  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-8] Executed script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js in 2.752253ms
2017-04-13 16:00:04,857  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-8] Cache - set response header Cache-Control: no-cache
2017-04-13 16:00:04,857  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-8] Cache - set response header Pragma: no-cache
2017-04-13 16:00:04,857  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-8] Rendering response: content type=application/json, status=200
2017-04-13 16:00:04,857  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-8] Rendering template 'org/alfresco/repository/preference/preferences.get.json'
2017-04-13 16:00:04,858  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-8] Rendered template org/alfresco/repository/preference/preferences.get.json in 1.062671ms
2017-04-13 16:00:04,858  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-8] Web Script org/alfresco/repository/preference/preferences.get executed in 7.578531ms
2017-04-13 16:00:04,858  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-8] Processed script url (GET) /api/people/originator/preferences in 7.823137ms
2017-04-13 16:00:05,566  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-6] Processing request (GET) http://localhost:8080/alfresco/s/api/workflow-instances/activiti$198761?includeTasks=true&noCache=1492113605531&alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 16:00:05,566  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/workflow-instances/activiti$198761
2017-04-13 16:00:05,566  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-6] Web Script index lookup for uri /api/workflow-instances/activiti$198761 took 0.153093ms
2017-04-13 16:00:05,566  DEBUG [extensions.webscripts.DeclarativeRegistry] [http-apr-8080-exec-6] WebScript uriIndexCache size: 55
2017-04-13 16:00:05,566  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-6] Content Type: application/json
2017-04-13 16:00:05,566  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Agent: Firefox
2017-04-13 16:00:05,566  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Invoking Web Script org/alfresco/repository/workflow/workflow-instance.get (format json, style: any, default: json)
2017-04-13 16:00:05,593  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-6] Caught exception; decorating with appropriate status template : java.lang.NullPointerException
     at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.getFormKey(ActivitiTypeConverter.java:753)
     at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.getFormKey(ActivitiTypeConverter.java:728)
     at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getTaskDefinitions(ActivitiWorkflowEngine.java:703)
     at org.alfresco.repo.workflow.WorkflowServiceImpl.getTaskDefinitions(WorkflowServiceImpl.java:410)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
     at org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor.invoke(WorkflowPermissionInterceptor.java:129)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at com.sun.proxy.$Proxy71.getTaskDefinitions(Unknown Source)
     at org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder.buildDetailed(WorkflowModelBuilder.java:383)
     at org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder.buildDetailed(WorkflowModelBuilder.java:325)
     at org.alfresco.repo.web.scripts.workflow.WorkflowInstanceGet.buildModel(WorkflowInstanceGet.java:60)
     at org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.executeImpl(AbstractWorkflowWebscript.java:81)
     at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
     at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:505)
     at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
     at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:580)
     at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649)
     at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421)
     at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)
     at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
     at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
     at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
     at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
     at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     at java.lang.Thread.run(Unknown Source)

2017-04-13 16:00:05,594  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Web Script org/alfresco/repository/workflow/workflow-instance.get executed in 27.288612ms
2017-04-13 16:00:05,594  ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Exception from executeScript - redirecting to status template error: 03130002 Wrapped Exception (with status template): null
org.springframework.extensions.webscripts.WebScriptException: 03130002 Wrapped Exception (with status template): null
     at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138)
     at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
     at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:505)
     at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
     at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:580)
     at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649)
     at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421)
     at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)
     at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
     at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
     at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
     at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
     at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
     at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.getFormKey(ActivitiTypeConverter.java:753)
     at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.getFormKey(ActivitiTypeConverter.java:728)
     at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getTaskDefinitions(ActivitiWorkflowEngine.java:703)
     at org.alfresco.repo.workflow.WorkflowServiceImpl.getTaskDefinitions(WorkflowServiceImpl.java:410)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
     at org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor.invoke(WorkflowPermissionInterceptor.java:129)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at com.sun.proxy.$Proxy71.getTaskDefinitions(Unknown Source)
     at org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder.buildDetailed(WorkflowModelBuilder.java:383)
     at org.alfresco.repo.web.scripts.workflow.WorkflowModelBuilder.buildDetailed(WorkflowModelBuilder.java:325)
     at org.alfresco.repo.web.scripts.workflow.WorkflowInstanceGet.buildModel(WorkflowInstanceGet.java:60)
     at org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.executeImpl(AbstractWorkflowWebscript.java:81)
     at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
     ... 34 more
2017-04-13 16:00:05,594  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-6] Content Type: application/json
2017-04-13 16:00:05,595  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Force success status header in response: false
2017-04-13 16:00:05,595  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Sending status 500 (Template: /json.status.ftl)
2017-04-13 16:00:05,595  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Rendering response: content type=application/json
2017-04-13 16:00:05,595  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-6] Cache - set response header Cache-Control: no-cache
2017-04-13 16:00:05,595  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-6] Cache - set response header Pragma: no-cache
2017-04-13 16:00:05,603  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-6] Processed script url (GET) /api/workflow-instances/activiti$198761 in 37.532585ms
2017-04-13 16:00:06,028  DEBUG [webscripts.servlet.WebScriptServlet] [http-apr-8080-exec-9] Processing request (GET) http://localhost:8080/alfresco/s/api/people/originator/preferences?alf_ticket=TICKET_4135a7e617a1cf804e0d09facfeda1bea69e21c2
2017-04-13 16:00:06,028  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/people/originator/preferences
2017-04-13 16:00:06,028  DEBUG [webscripts.servlet.WebScriptServletRequest] [http-apr-8080-exec-9] Content Type: application/json
2017-04-13 16:00:06,028  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Agent: Firefox
2017-04-13 16:00:06,028  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Invoking Web Script org/alfresco/repository/preference/preferences.get (format json, style: argument, default: json)
2017-04-13 16:00:06,030  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-9] Executing script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js
2017-04-13 16:00:06,031  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-9] preferences.get.js Start
2017-04-13 16:00:06,036  DEBUG [jscript.RhinoScriptProcessor.calls] [http-apr-8080-exec-9] preferences.get.js End 4 ms
2017-04-13 16:00:06,036  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-9] Executed script classpath*:alfresco/templates/webscripts/org/alfresco/repository/preference/preferences.get.js in 4.850653ms
2017-04-13 16:00:06,036  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-9] Cache - set response header Cache-Control: no-cache
2017-04-13 16:00:06,037  DEBUG [webscripts.servlet.WebScriptServletResponse] [http-apr-8080-exec-9] Cache - set response header Pragma: no-cache
2017-04-13 16:00:06,037  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-9] Rendering response: content type=application/json, status=200
2017-04-13 16:00:06,037  DEBUG [extensions.webscripts.DeclarativeWebScript] [http-apr-8080-exec-9] Rendering template 'org/alfresco/repository/preference/preferences.get.json'
2017-04-13 16:00:06,038  DEBUG [extensions.webscripts.AbstractWebScript] [http-apr-8080-exec-9] Rendered template org/alfresco/repository/preference/preferences.get.json in 0.917702ms
2017-04-13 16:00:06,038  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Web Script org/alfresco/repository/preference/preferences.get executed in 9.654694ms
2017-04-13 16:00:06,038  DEBUG [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Processed script url (GET) /api/people/originator/preferences in 9.84157ms
2017-04-13 16:00:20,015  ERROR [quartz.core.JobRunShell] [SolrTrackerScheduler_Worker-12] Job Solr.CoreWatcher threw an unhandled Exception:
org.alfresco.service.cmr.dictionary.DictionaryException: 03130251 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
2017-04-13 16:00:20,015  ERROR [quartz.core.ErrorLogger] [SolrTrackerScheduler_Worker-12] Job (Solr.CoreWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.cmr.dictionary.DictionaryException: 03130251 d_dictionary.model.err.parse.failure]
     at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 03130251 d_dictionary.model.err.parse.failure
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:106)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:92)
     at org.alfresco.solr.tracker.ModelTracker.loadPersistedModels(ModelTracker.java:114)
     at org.alfresco.solr.tracker.ModelTracker.(ModelTracker.java:85)
     at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:123)
     at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
     at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
     ... 1 more
Caused by: org.jibx.runtime.JiBXException: Error parsing document (line 1, col 1)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:295)
     at org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:446)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2750)
     at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900)
     at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:101)
     ... 7 more
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1)
     at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519)
     at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.next(XMLPullReaderFactory.java:291)
     ... 11 more
dhrobbins
Active Member II

Re: Permissions Error with Parallel Gateway

Jonathan, stderr shows no errors during time I have tested.

dhrobbins
Active Member II

Re: Permissions Error with Parallel Gateway

I don't mean to be spamming you but I have some interesting discoveries.  This first version of BPM is functional and allows the originator standard ability of viewing Workflow Details.  The second version contains an additional Alfresco ServiceTask and UserTask and exhibits and denies the originator access to Workflow History.

Working BPM

<?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="SLM 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="acctPreEdit"></sequenceFlow>
    <userTask id="acctPreEdit" 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="acctPreEdit" 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="engPreEdit"></sequenceFlow>
    <userTask id="engPreEdit" 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="engPreEdit" 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="docCtrlPreEdit" 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="docCtrlPreEdit" 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="origFinalReview" 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'));

if(execution.getVariable("lec_approvedResult")){
     
}]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sequenceFlow19" sourceRef="origFinalReview" targetRef="exclusivegateway8"></sequenceFlow>
    <endEvent id="end"></endEvent>
    <userTask id="testPreEdit" 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="testPreEdit"></sequenceFlow>
    <sequenceFlow id="flow3" sourceRef="testPreEdit" targetRef="exclusivegateway2"></sequenceFlow>
    <userTask id="mastPreEdit" 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="mastPreEdit" targetRef="exclusivegateway4"></sequenceFlow>
    <userTask id="purchPreEdit" 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="purchPreEdit" targetRef="exclusivegateway5"></sequenceFlow>
    <userTask id="quotePreEdit" 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="quotePreEdit" targetRef="exclusivegateway6"></sequenceFlow>
    <userTask id="acctPresSign" 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="acctPresSign" targetRef="exclusivegateway7"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow8" name="Rework" sourceRef="exclusivegateway1" targetRef="acctPreEdit">
      <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="engPreEdit">
      <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>
    <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="mastPreEdit">
      <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="purchPreEdit">
      <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="quotePreEdit">
      <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="flow24" name="Rework" sourceRef="exclusivegateway8" targetRef="acctPresSign">
      <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="testPreEdit">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow27" sourceRef="serviceTask4" targetRef="mastPreEdit"></sequenceFlow>
    <sequenceFlow id="flow28" name="Rework" sourceRef="exclusivegateway4" targetRef="docCtrlPreEdit">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == true}]]></conditionExpression>
    </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="docCtrlPreEdit"></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="purchPreEdit"></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="quotePreEdit"></sequenceFlow>
    <sequenceFlow id="flow34" sourceRef="alfrescoMailtask4" targetRef="acctPresSign"></sequenceFlow>
    <sequenceFlow id="flow35" sourceRef="alfrescoMailtask5" targetRef="origFinalReview"></sequenceFlow>
    <sequenceFlow id="flow36" name="Approve" sourceRef="exclusivegateway8" targetRef="end">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${execution.getVariable('lec_sendforrework') == false}]]></conditionExpression>
    </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="acctPreEdit" id="BPMNShape_acctPreEdit">
        <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="engPreEdit" id="BPMNShape_engPreEdit">
        <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="docCtrlPreEdit" id="BPMNShape_docCtrlPreEdit">
        <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="origFinalReview" id="BPMNShape_origFinalReview">
        <omgdc:Bounds height="60.0" width="100.0" x="1300.0" y="244.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
        <omgdc:Bounds height="35.0" width="35.0" x="1470.0" y="267.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="testPreEdit" id="BPMNShape_testPreEdit">
        <omgdc:Bounds height="60.0" width="100.0" x="830.0" y="5.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="mastPreEdit" id="BPMNShape_mastPreEdit">
        <omgdc:Bounds height="55.0" width="105.0" x="61.0" y="257.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="purchPreEdit" id="BPMNShape_purchPreEdit">
        <omgdc:Bounds height="55.0" width="105.0" x="444.0" y="254.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="quotePreEdit" id="BPMNShape_quotePreEdit">
        <omgdc:Bounds height="55.0" width="105.0" x="741.0" y="250.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="acctPresSign" id="BPMNShape_acctPresSign">
        <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="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: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="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="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="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="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="1430.0" y="331.0"></omgdi:waypoint>
        <omgdi:waypoint x="1430.0" y="284.0"></omgdi:waypoint>
        <omgdi:waypoint x="1470.0" y="284.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="1438.0" y="310.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

 

Non functional BPM with addition ServiceTask and User Task

jearles
Established Member II

Re: Permissions Error with Parallel Gateway

What first and second versions are you referring to?

If I'm being honest here David; I'm honestly not entirely sure what your issue is, I'm just going to be playing around with things and seeing I can pull any sense out of why this would be happening. Hopefully we can get you worked out Smiley Happy

-JEarles

dhrobbins
Active Member II

Re: Permissions Error with Parallel Gateway

Sorry saved comment too soon.  I attached a zip file.  First, I really appreciate your time.  My issue is that the originator of the workflow - initiator of the StartEvent - cannot open the workflow with View History.  The only change I made was to add additional user tasks.  That "broke" the normal behavior.  When I remove steps the workflow functions normally; that is, the originator has the normal ability to click View History and receive no permission errors.  That behavior is with my sample "Good BMP".  The second sample -  "Broken BPM" - is where the originator is denied access and receives a permissions error when View History is clicked.  Essentially the originator is blocked from manager a workflow that they have spawned.  

Thanks again for your time.  This is very puzzling, and I appreciate your efforts.

vikash_patel
Established Member II

Re: Permissions Error with Parallel Gateway

I also faced the same issue today so, commenting for future queries, In your last task which you added is "usertask1" you forgot to mention "Form Key", please add form key attribute value and error will be solved.