Unable to use the IEventTopics.IMPORT_* (I_Inventory, I_BPartner...) - seens that are being ignored

33 views
Skip to first unread message

Gabriel Strozi Schneider

unread,
Feb 11, 2015, 8:38:43 AM2/11/15
to idem...@googlegroups.com
Hi all,

I need to create some validations with an own eventhandler using the IMPORT_AFTER_IMPORT, IMPORT_AFTER_VALIDATE, IMPORT_BEFORE_IMPORT and IMPORT_BEFORE_VALIDATE topics but it looks like that this functionality is not working as expected, the topics are ignored.

MyEvent handler is running ok, i can ensure, because if I change the topic for example to PO_BEFORE_CHANGE, and change some record. Te code is executed.

But with IMPORT* topics, nothing happens.

I already tryied to register using:
        registerEvent(IEventTopics.IMPORT_AFTER_IMPORT,null);
and
        registerTableEvent(IEventTopics.IMPORT_AFTER_IMPORT,X_I_Inventory.Table_Name);

both with no success.



Also, i'm looking inside the code to solve, but until now with no succes. The only different thing that i found is at the class ModelValidadeEngine.java a condition is avoiding the new OSGI event handlers to run if no old style validator is registered

method fireImportValidate (line 772), condition that i commented out:

        if (m_impValidateListeners.size() == 0)
            return;


even with this modification, the IMPORT_* is stil not working.


may someone experienced this problem and can help me to solve  ?


thank you
Reply all
Reply to author
Forward
0 new messages