ALF-11108: Notification when item is updated, even though 'when' states 'items are created or enter this folder'

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32039 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2011-11-16 23:25:10 +00:00
parent ca5627829e
commit a16fd2d139

View File

@@ -315,8 +315,12 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
{
@Override
public Void execute() throws Throwable
{
// Only try and send the email if the actioned upon node reference still exists
if (nodeService.exists(actionedUponNodeRef) == true)
{
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
}
return null;
}
}, false, true);
@@ -324,10 +328,13 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
});
}
else
{
if (nodeService.exists(actionedUponNodeRef) == true)
{
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
}
}
}
private boolean sendAfterCommit(Action action)
{