Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0045667Openbravo ERPA. Platformpublic2020-12-30 15:542021-01-24 21:24
nicola_uva 
nicola_uva 
normalminoralways
closedno change required 
5
pi 
pi 
Core
No
0045667: [EDL] In case of errors the output content is not stored even if storeSendingData method return true
In case of the external system answer with an error the output content is not stored even if storeSendingData method return true.
1)In the ERP create a new EDL process and configure the output content as WSRest
2)Implement a new class that extend OutputDataProcessor with qualifier WSRest and
 Override the method storeSendingData adding return true
3)Create the ItemProcessor override the outputExtraActions and throw an error
4)The tab Request Line output content(window EDL request) is empty
No tags attached.
Issue History
2020-12-30 15:54nicola_uvaNew Issue
2020-12-30 15:54nicola_uvaAssigned To => Retail
2020-12-30 15:54nicola_uvaResolution time => 1610578800
2020-12-30 15:54nicola_uvaTriggers an Emergency Pack => No
2020-12-30 16:46marvintmProjectRetail Modules => Openbravo ERP
2020-12-30 16:47marvintmModules => Core
2020-12-30 16:47marvintmCategoryWeb POS => A. Platform
2020-12-30 16:47marvintmAssigned ToRetail => platform
2021-01-12 09:09javietxeIssue Monitored: javietxe
2021-01-12 16:59AugustoMauchNote Added: 0125397
2021-01-12 16:59AugustoMauchAssigned Toplatform => nicola_uva
2021-01-12 16:59AugustoMauchStatusnew => feedback
2021-01-24 21:24AugustoMauchNote Added: 0125739
2021-01-24 21:24AugustoMauchStatusfeedback => closed
2021-01-24 21:24AugustoMauchResolutionopen => no change required

Notes
(0125397)
AugustoMauch   
2021-01-12 16:59   
To prevent rolling back the changes after an exception is thrown by an ItemProcessor or an OutputDataProcessor, the ProcessInterruptedException exception must be thrown.

Can you check if by wrapping your exception in ProcessInterruptedException is enough to keep the output content?
(0125739)
AugustoMauch   
2021-01-24 21:24   
As mentioned in the previous note, it is already possible to achieve the behaviour described by the reporter