From e0cfa4d719441491424bd1e592f33b37aec4e7fe Mon Sep 17 00:00:00 2001 From: Charitha Goonetilleke Date: Thu, 21 Mar 2024 07:33:01 +0530 Subject: [PATCH] Add generated task id to dynamicTask object --- .../core/task/mgt/core/service/TaskManagementServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/task-mgt/task-manager/io.entgra.device.mgt.core.task.mgt.core/src/main/java/io/entgra/device/mgt/core/task/mgt/core/service/TaskManagementServiceImpl.java b/components/task-mgt/task-manager/io.entgra.device.mgt.core.task.mgt.core/src/main/java/io/entgra/device/mgt/core/task/mgt/core/service/TaskManagementServiceImpl.java index 2b5a521507..c794a4e934 100755 --- a/components/task-mgt/task-manager/io.entgra.device.mgt.core.task.mgt.core/src/main/java/io/entgra/device/mgt/core/task/mgt/core/service/TaskManagementServiceImpl.java +++ b/components/task-mgt/task-manager/io.entgra.device.mgt.core.task.mgt.core/src/main/java/io/entgra/device/mgt/core/task/mgt/core/service/TaskManagementServiceImpl.java @@ -89,6 +89,7 @@ public class TaskManagementServiceImpl implements TaskManagementService { // add into the dynamic task tables TaskManagementDAOFactory.beginTransaction(); dynamicTaskId = dynamicTaskDAO.addTask(dynamicTask, tenantId); + dynamicTask.setDynamicTaskId(dynamicTaskId); dynamicTaskPropDAO.addTaskProperties(dynamicTaskId, dynamicTask.getProperties(), tenantId); try {