Commit 6e12f55521d3c8940bfdf8c722eda3bd9fa39837

Authored by Carlos Alberto
1 parent e70e4438
Exists in master

Correção no envio de email

cit-esi-api/src/main/java/br/com/centralit/esi/api/execution/service/task/WorkItemEmailTaskServiceImpl.java
@@ -70,7 +70,7 @@ public class WorkItemEmailTaskServiceImpl extends WorkItemServiceImpl<EmailTask> @@ -70,7 +70,7 @@ public class WorkItemEmailTaskServiceImpl extends WorkItemServiceImpl<EmailTask>
70 template = notificationTemplateService.findByName(element.getTemplateName()); 70 template = notificationTemplateService.findByName(element.getTemplateName());
71 } 71 }
72 72
73 - if (template != null && !UtilString.isNullOrEmpty(template.getText())) { 73 + if (template != null && (!UtilString.isNullOrEmpty(template.getText()) || !UtilString.isNullOrEmpty(template.getHTMLText()))) {
74 text = runtimeEnvironment.parseString(template.getText()); 74 text = runtimeEnvironment.parseString(template.getText());
75 HTMLText = runtimeEnvironment.parseString(template.getHTMLText()); 75 HTMLText = runtimeEnvironment.parseString(template.getHTMLText());
76 from = runtimeEnvironment.parseString(EsiAppUtils.BPE_EMAIL_FROM); 76 from = runtimeEnvironment.parseString(EsiAppUtils.BPE_EMAIL_FROM);