Transfer event re-ordering:

- enter success/error/cancel state event fired before report events
- but, success/error/cancel events still fired after report events

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2010-09-10 17:44:28 +00:00
parent 691df52ef0
commit 2704bd37db
3 changed files with 32 additions and 30 deletions

View File

@@ -776,14 +776,14 @@ public class TransferServiceImpl2 implements TransferService2
destinationReport = persistDestinationTransferReport(reportName, transfer, target);
if (destinationReport != null)
{
eventProcessor.writeReport(destinationReport, TransferEventReport.ReportType.DESTINATION);
eventProcessor.writeReport(destinationReport, TransferEventReport.ReportType.DESTINATION, endEventImpl.getTransferState());
}
logger.debug("now persist the client side transfer report");
sourceReport = persistTransferReport(reportName, transfer, target, definition, transferReportEvents, manifest, failureException);
if (sourceReport != null)
{
eventProcessor.writeReport(sourceReport, TransferEventReport.ReportType.SOURCE);
eventProcessor.writeReport(sourceReport, TransferEventReport.ReportType.SOURCE, endEventImpl.getTransferState());
}
}
catch(Exception e)