|
42 | 42 | <bpmn:script>var system = java.lang.System; |
43 | 43 | var clientEmail= execution.getVariable('contactPersonEmailAddress'); |
44 | 44 | execution.setVariable('clientEmail',clientEmail); |
| 45 | +var aaEmail= execution.getVariable('approvingAuthorityEmailAddress'); |
45 | 46 | var emailsToArray = []; |
46 | | -emailsToArray.push(clientEmail) |
| 47 | +emailsToArray.push(clientEmail); |
| 48 | + |
| 49 | + |
47 | 50 | execution.setVariable('emailTo',JSON.stringify(emailsToArray)); |
48 | 51 | var siteOwnerEmail = execution.getVariable('ownerEmailAddress'); |
49 | 52 | execution.setVariable('siteOwnerEmail',siteOwnerEmail); |
@@ -74,13 +77,20 @@ var emailsIdsToProcess = []; |
74 | 77 | emailsIdsToProcess.push(clientEmail); |
75 | 78 |
|
76 | 79 | emailsIdsToProcess.push(siteOwnerEmail); |
| 80 | + |
| 81 | +var section5DeclarationSectionLocalGovernmentPermits = execution.getVariable('section5DeclarationSectionLocalGovernmentPermits'); |
| 82 | +if(section5DeclarationSectionLocalGovernmentPermits === true || section5DeclarationSectionLocalGovernmentPermits === "true") |
| 83 | +{ |
| 84 | + emailsIdsToProcess.push(aaEmail); |
| 85 | +} |
| 86 | + |
77 | 87 | execution.setVariable('emailsIdsToProcess',JSON.stringify(emailsIdsToProcess)); |
78 | 88 |
|
79 | 89 | var emailsIdsToProcessForSO = []; |
80 | 90 | emailsIdsToProcessForSO.push(siteOwnerEmail); |
81 | 91 | execution.setVariable('emailsIdsToProcessSO',JSON.stringify(emailsIdsToProcessForSO)); |
82 | 92 |
|
83 | | -var aaEmail= execution.getVariable('approvingAuthorityEmailAddress'); |
| 93 | + |
84 | 94 | var emailsIdsToProcessForTaskAssignmentArr = []; |
85 | 95 |
|
86 | 96 | emailsIdsToProcessForTaskAssignmentArr.push(aaEmail); |
@@ -489,6 +499,10 @@ execution.setVariable('siteAddress',siteAddress); |
489 | 499 | <dc:Bounds x="190" y="90" width="980" height="410" /> |
490 | 500 | <bpmndi:BPMNLabel /> |
491 | 501 | </bpmndi:BPMNShape> |
| 502 | + <bpmndi:BPMNEdge id="Flow_1qps1ys_di" bpmnElement="Flow_1qps1ys"> |
| 503 | + <di:waypoint x="378" y="700" /> |
| 504 | + <di:waypoint x="520" y="700" /> |
| 505 | + </bpmndi:BPMNEdge> |
492 | 506 | <bpmndi:BPMNEdge id="Flow_0r4070a_di" bpmnElement="Flow_0r4070a"> |
493 | 507 | <di:waypoint x="480" y="590" /> |
494 | 508 | <di:waypoint x="410" y="590" /> |
@@ -632,10 +646,6 @@ execution.setVariable('siteAddress',siteAddress); |
632 | 646 | <dc:Bounds x="527" y="441" width="18" height="14" /> |
633 | 647 | </bpmndi:BPMNLabel> |
634 | 648 | </bpmndi:BPMNEdge> |
635 | | - <bpmndi:BPMNEdge id="Flow_1qps1ys_di" bpmnElement="Flow_1qps1ys"> |
636 | | - <di:waypoint x="378" y="700" /> |
637 | | - <di:waypoint x="520" y="700" /> |
638 | | - </bpmndi:BPMNEdge> |
639 | 649 | <bpmndi:BPMNShape id="BPMNShape_0zk5qh7" bpmnElement="Activity_1ozfgid"> |
640 | 650 | <dc:Bounds x="303" y="222" width="100" height="80" /> |
641 | 651 | <bpmndi:BPMNLabel /> |
|
0 commit comments