# Multiple timer event with Mail Task issues

**URL:** <https://forum.flowable.org/t/multiple-timer-event-with-mail-task-issues/9848>\
**Category:** Flowable Engine\
**Created:** [October 26, 2022, 8:11pm UTC](https://forum.flowable.org/t/multiple-timer-event-with-mail-task-issues/9848 "2022-10-26T20:11:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sikkanders](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sikkanders](https://forum.flowable.org/u/sikkanders)\
**Post date:** [October 26, 2022, 8:11pm UTC](https://forum.flowable.org/t/multiple-timer-event-with-mail-task-issues/9848/1 "2022-10-26T20:11:06Z")

</div>

Hi Team,  
I am new to flowable. My requirement almost similar [Escalation Email content for different time cycle](https://forum.flowable.org/t/escalation-email-content-for-different-time-cycle/9772) and in addition to that we need to reassign same task to superuser/task owner through system task when 3rd SLA failed to meet by task owner. This is recursion and will continue until complete task. Please find the bpmn diagram for same.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/d/d3c3b0cf85beb05ee420f15940b1df12153269d1.png)

**Below are my Issues in this implementation and request for your suggestion/ solutions**  
By selecting the exclusive property option for Resolve Claim user task, the entire flow is executing some extent but still there are below mentioned issues requires your suggestions/solutions

The 3rd email which attached with Parrell gateway is executing 3 times for SLA fails and getting 3 emails rather one.

The Auto reassign service task attached with Parrell gateway is executing / calling and creates the Resolve Claims user task only two times and no further call getting invoked that.

There is inconsistence in the email receiving. example before receiving 1 Email notification getting 2nd email content and sometime 2nd email is not at all receiving.

I am looking for your response.

**snapshot for Auto reassign service task:**  
try {   
String taskId = (String) execution.getVariable(PRCS\_CRNT\_TSK);  
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();  
if (null != task) {  
assignee = task.getAssignee();  
}   
if (null != assignee && !assignee.isEmpty()) {  
TaskActionRequest actionRequest = new TaskActionRequest();  
actionRequest.setAction(TSK\_ACTION\_COMPLETE);  
actionRequest.setAssignee(task.getAssignee());

```
			additionalVariables = new HashMap<>();
			additionalVariables.put("ORG_SID", " ******");
			additionalVariables.put("USR_ACNT_SID", " ******");
			additionalVariables.put("USR_EMAIL_ID", " ******");	
			additionalVariables.put("escalateTO", " ******");
			taskService.setVariables(taskId, additionalVariables);
			
			String l_sUsrName = " ******";
			String l_sOrgUnitName = " ******";
			
			Map<String, Object> varaiblesMap = new HashMap<>();
			varaiblesMap.put("ASSIGNEE", l_sUsrName);
			varaiblesMap.put("ORG_UNIT", l_sOrgUnitName);
			varaiblesMap.put("reason", "Auto Reassign to super Administator due to SLA breach");
			varaiblesMap.put("ACTION", "REASSIGN");
			
			String processInstanceId = task.getProcessInstanceId();
			processEngineUtil.updateProcessInstanceVariable(processInstanceId, varaiblesMap);
			taskResource.executeTaskAction(taskId, actionRequest);				
											
		}else {
			throw new FlowableForbiddenException("Task not assigned to any User.");
		}
	}Catch{
	
	}

```
