Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031564Openbravo ERPA. Platformpublic2015-11-24 12:202015-12-07 09:38
gorkaion 
gorkaion 
normalminorN/A
closedfixed 
20Gentoo
 
3.0PR16Q13.0PR16Q1 
mtaal
Core
No
0031564: Add ability to inject logic to an import entry processor when the process has finished and committed
Currently it is possible to implement ImportEntryPreProcessor to execute logic when an Import Entry is added.

It should be possible to be able to implement custom logic to be executed when the Import Entry has been processed and committed.
N/A
Create an abstract ImportEntryPostProcessor class.

Extend the ImportEntryProcessRunnable class to execute the classes implementing ImportEntryPostProcessor after the processEntry() has been executed. At this point the Import Entry process has finished and the commit has been done, so it is possible to add new logic.

The classes are filtered by a Qualifier based on the typeOfData of the import entry.
No tags attached.
related to design defect 0041109 new Triage Platform Base Improvements in ImportEntryPreProcessor/ImportEntryPostProcessor 
? issue-31564.export (4,109) 2015-11-24 14:08
https://issues.openbravo.com/file_download.php?file_id=8768&type=bug
Issue History
2015-11-24 12:20gorkaionNew Issue
2015-11-24 12:20gorkaionAssigned To => gorkaion
2015-11-24 12:20gorkaionModules => Core
2015-11-24 12:20gorkaionTriggers an Emergency Pack => No
2015-11-24 13:04gorkaionFile Added: issue-31564.export
2015-11-24 13:54gorkaionFile Deleted: issue-31564.export
2015-11-24 13:54gorkaionFile Added: issue-31564.export
2015-11-24 14:08gorkaionFile Deleted: issue-31564.export
2015-11-24 14:08gorkaionFile Added: issue-31564.export
2015-11-24 16:54hgbotCheckin
2015-11-24 16:54hgbotNote Added: 0082300
2015-11-24 16:54hgbotStatusnew => resolved
2015-11-24 16:54hgbotResolutionopen => fixed
2015-11-24 16:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/53de6573ff6e36d23f2b68c8b75d47cf59540231 [^]
2015-11-24 17:31mtaalReview Assigned To => mtaal
2015-11-25 15:11hudsonbotCheckin
2015-11-25 15:11hudsonbotNote Added: 0082329
2015-12-07 09:37mtaalNote Added: 0082583
2015-12-07 09:38mtaalNote Added: 0082584
2015-12-07 09:38mtaalStatusresolved => closed
2015-12-07 09:38mtaalFixed in Version => 3.0PR16Q1
2019-06-17 17:04caristuRelationship addedrelated to 0041109

Notes
(0082300)
hgbot   
2015-11-24 16:54   
Repository: erp/devel/pi
Changeset: 53de6573ff6e36d23f2b68c8b75d47cf59540231
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Nov 24 16:53:46 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/53de6573ff6e36d23f2b68c8b75d47cf59540231 [^]

Fixed issue 31564.Added ImportEntryPostProcessor hook.

Added new ImportEntryPostProcessor hook. This hook is executed in the
ImportEntryProcessRunnable class after the processEntry() method is called.
This hook is then executed after the main Import Entry process is executed and
finished and it is committed.

---
M src/org/openbravo/service/importprocess/ImportEntryProcessor.java
A src/org/openbravo/service/importprocess/ImportEntryPostProcessor.java
---
(0082329)
hudsonbot   
2015-11-25 15:11   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1c9b33d2091d [^]
Maturity status: Test
(0082583)
mtaal   
2015-12-07 09:37   
Added small docs:
http://wiki.openbravo.com/wiki/How_to_Add_Data_Synchronization_Tasks#Import_Entry_Post_Processing [^]
(0082584)
mtaal   
2015-12-07 09:38   
Reviewed