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

@@ -316,7 +316,11 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
@Override
public Void execute() throws Throwable
{
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
// 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);
@@ -325,7 +329,10 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
}
else
{
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
if (nodeService.exists(actionedUponNodeRef) == true)
{
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
}
}
}