Hi everyone.
I'm working in an email notification task.
I'm trying to know if a task is assigned to a user or not.
If the task is assigned to a user I need the email of this user to send the notification, or if the task is unassigned I'm sending the notification to all the possible users.
If I want to extract this information from another task, i found the method getHumanTaskInstance from the processAPI(), but I need the activityInstanceId from the other task to obtain the information.
How can I get the activityInstanceId from another task?