public String notifyWhenNotCompleted(String containerId, Number taskId, String timeExpression, String payload, String marshallingType) {
logger.debug("About to unmarshall payload '{}' to EmailNotification (when not completed) of task inputs", payload);
containerId = context.getContainerId(containerId, new ByTaskIdContainerLocator(taskId.longValue()));
EmailNotification emailNotification = marshallerHelper.unmarshal(containerId, payload, marshallingType, EmailNotification.class, new ByTaskIdContainerLocator(taskId.longValue()));
logger.debug("Email notification to be added to a task {} is {}", taskId, emailNotification);
org.kie.internal.task.api.model.EmailNotification email = buildEmail(emailNotification);
Long id = userTaskAdminService.notifyWhenNotCompleted(containerId, taskId.longValue(), timeExpression, email);
logger.debug("Email notification (when not completed) {} added successfully to task {} to be fired after {}", emailNotification, taskId, timeExpression);
String response = marshallerHelper.marshal(containerId, marshallingType, id, new ByTaskIdContainerLocator(taskId.longValue()));
return response;
}